Changeset 226


Ignore:
Timestamp:
Feb 20, 2017, 10:24:41 AM (8 years ago)
Author:
g7moreau
Message:
  • A litle more doc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r225 r226  
    876876
    877877 klask updatedb [--verbose|-v] [--verb-description|-d] [--chk-hostname|-h] [--chk-location|-l]
    878  klask exportdb --format [txt|html]
     878 klask exportdb [--format|-f txt|html]
    879879 klask removedb IP* computer*
    880880 klask cleandb  [--verbose|-v] --day number_of_day --repair-dns
    881881
    882882 klask updatesw [--verbose|-v]
    883  klask exportsw --format [txt|dot]
    884 
    885  klask searchdb computer
     883 klask exportsw [--format|-f txt|dot]
     884
     885 klask searchdb [--kind|-k host|mac] computer [mac-address]
    886886 klask search   computer
    887  klask search-mac-on-switch switch mac_addr
    888 
    889  klask ip-free [--verbose|-v] [--day|-d days-to-death] --format [txt|html] [vlan_name]
     887 klask search-mac-on-switch [--verbose|-v] [--vlan|-i vlan-id] switch mac_addr
     888
     889 klask ip-free [--verbose|-v] [--day|-d days-to-death] [--format|-f txt|html] [vlan_name]
    890890
    891891 klask bad-vlan-id [--day|-d days_before_alert]
     
    26612661=head1 USAGE
    26622662
     2663 klask version
     2664 klask help
     2665
    26632666 klask updatedb [--verbose|-v] [--verb-description|-d] [--chk-hostname|-h] [--chk-location|-l]
    2664  klask exportdb --format [txt|html]
     2667 klask exportdb [--format|-f txt|html]
    26652668 klask removedb IP* computer*
    26662669 klask cleandb  [--verbose|-v] --day number_of_day --repair-dns
    26672670
    26682671 klask updatesw [--verbose|-v]
    2669  klask exportsw --format [txt|dot]
    2670 
    2671  klask searchdb --kind [host|mac] computer [mac-address]
     2672 klask exportsw [--format|-f txt|dot]
     2673
     2674 klask searchdb [--kind|-k host|mac] computer [mac-address]
    26722675 klask search   computer
    26732676 klask search-mac-on-switch [--verbose|-v] [--vlan|-i vlan-id] switch mac_addr
    26742677
    2675  klask ip-free [--verbose|-v] [--day|-d days-to-death] --format [txt|html] [vlan_name]
     2678 klask ip-free [--verbose|-v] [--day|-d days-to-death] [--format|-f txt|html] [vlan_name]
    26762679
    26772680 klask bad-vlan-id [--day|-d days_before_alert]
     
    27142717=head2 search
    27152718
     2719 klask search   computer
     2720
    27162721This command takes one or more computer in argument.
    27172722It search a computer on the network and give the port and the switch on which the computer is connected.
     2723
     2724=head2 search
     2725
     2726 klask search-mac-on-switch [--verbose|-v] [--vlan|-i vlan-id] switch mac_addr
     2727
     2728This command search a MAC address on a switch.
     2729The VLAN could help.
    27182730
    27192731
     
    27542766 klask updatedb [--verbose|-v] [--verb-description|-d] [--chk-hostname|-h] [--chk-location|-l]
    27552767
    2756 This command will scan networks and update a database.
    2757 To know which are the cmputer scan, you have to configure the file F</etc/klask/klask.conf>.
    2758 This file is easy to read and write because Klask use YAML format and not XML.
    2759 
    2760 Option are not stable and could be use manually when you have new switch.
     2768This command will scan networks and update the computer database.
     2769To know which are the cmputer scanned, you have to configure the file F</etc/klask/klask.conf>.
     2770This file is easy to read and write because Klask use YAML format and not XML
     2771(see L</CONFIGURATION>).
     2772
     2773Option are not stable and could be use manually when you have a new kind of switch.
    27612774Maybe some option will be transfered in a future C<checksw> command!
    27622775
    27632776=head2 exportdb
    27642777
    2765  klask exportdb --format [txt|html]
    2766 
    2767 This command print the content of the database. There is actually only two format : txt and html.
     2778 klask exportdb [--format|-f txt|html]
     2779
     2780This command print the content of the computer database.
     2781There is actually only two format : TXT and HTML.
     2782By default, format is TXT.
    27682783It's very easy to have more format, it's just need times...
    27692784
     
    27762791You can put as many IP as you want...
    27772792
    2778 DNS computer name could also a valid entry because a DNS resolver is done at the beginning.
     2793Computer DNS names are also a valid entry because a DNS resolver is executed at the beginning.
    27792794
    27802795=head2 cleandb
     
    27892804In the Klask database, the float DNS entries are less important.
    27902805
    2791 When reverse DNS has not be done by the past, option C<--repair-dns> force reverse DNS check on all unkown host.
     2806When reverse DNS has not been done by the past, option C<--repair-dns> force a reverse DNS check on all unkown host.
    27922807
    27932808=head2 updatesw
     
    27962811
    27972812This command build a map of your manageable switch on your network.
    2798 The list of the switches must be given in the file F</etc/klask/klask.conf>.
     2813The list of the switches must be given in the file F</etc/klask/klask.conf> (see L</CONFIGURATION>).
    27992814
    28002815
    28012816=head2 exportsw
    28022817
    2803  klask exportsw --format [txt|dot]
     2818 klask exportsw [--format|-f txt|dot]
    28042819
    28052820This command print the content of the switch database. There is actually two format.
    2806 One is just C<txt> for terminal and the other is the C<dot> format from the graphviz environnement.
     2821One is just TXT for terminal and the other is the DOT format from the graphviz environnement.
     2822By default, format is TXT.
    28072823
    28082824 klask exportsw --format dot > /tmp/map.dot
     
    28122828=head2 ip-free
    28132829
    2814  klask ip-free [--verbose|-v] [--day|-d days-to-death] --format [txt|html] [vlan_name]
     2830 klask ip-free [--verbose|-v] [--day|-d days-to-death] [--format|-f txt|html] [vlan_name]
    28152831
    28162832This command return IP address that was not use (detected by Klask) at this time.
Note: See TracChangeset for help on using the changeset viewer.