Changeset 219


Ignore:
Timestamp:
Feb 18, 2017, 4:46:29 PM (7 years ago)
Author:
g7moreau
Message:
  • Update doc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r218 r219  
    26362636=head1 NAME
    26372637
    2638 klask - ports manager and finder for switch
     2638klask - port and search manager for switches, map management
    26392639
    26402640
    26412641=head1 USAGE
    26422642
    2643  klask updatedb [--verbose] [--verb-description|-d] [--chk-hostname|-h] [--chk-location|-l]
     2643 klask updatedb [--verbose|-v] [--verb-description|-d] [--chk-hostname|-h] [--chk-location|-l]
    26442644 klask exportdb --format [txt|html]
    26452645 klask removedb computer*
    2646  klask cleandb  [--verbose] --day number_of_day --repair-dns
    2647 
    2648  klask updatesw [--verbose]
     2646 klask cleandb  [--verbose|-v] --day number_of_day --repair-dns
     2647
     2648 klask updatesw [--verbose|-v]
    26492649 klask exportsw --format [txt|dot]
    26502650
    26512651 klask searchdb --kind [host|mac] computer [mac-address]
    26522652 klask search   computer
    2653  klask search-mac-on-switch [--verbose] [--vlan|-i vlan-id] switch mac_addr
    2654 
    2655  klask ip-free  [--verbose] --day number_of_day --format [txt|html] [vlan_name]
    2656 
    2657  klask enable  switch port
    2658  klask disable switch port
    2659  klask status  switch port
     2653 klask search-mac-on-switch [--verbose|-v] [--vlan|-i vlan-id] switch mac_addr
     2654
     2655 klask ip-free  [--verbose|-v] --day number_of_day --format [txt|html] [vlan_name]
     2656
     2657 klask enable  [--verbose|-v] switch port
     2658 klask disable [--verbose|-v] switch port
     2659 klask status  [--verbose|-v] switch port
    26602660
    26612661
     
    26802680The C<fake-ip> parameter is defined in the config file.
    26812681
    2682 Klask has now a web site dedicated for it !
    2683 
    2684  http://servforge.legi.grenoble-inp.fr/projects/klask
     2682Klask has now a web site dedicated for it: L<http://servforge.legi.grenoble-inp.fr/projects/klask>!
    26852683
    26862684
     
    26962694=head2 enable
    26972695
     2696 klask enable [--verbose|-v] switch port
     2697
    26982698This command activate a port on a switch by SNMP.
    2699 So you need to give the switch and a port on the command line.
     2699So you need to give the switch name and a port on the command line.
    27002700See L<ABBREVIATION FOR PORT>.
    27012701
     2702You need to have the SNMP write access on the switch in order to modify it's configuration.
     2703
    27022704
    27032705=head2 disable
    27042706
     2707 klask disable [--verbose|-v] switch port
     2708
    27052709This command deactivate a port on a switch by SNMP.
    2706 So you need to give the switch and a port on the command line.
     2710So you need to give the switch name and a port on the command line.
    27072711See L<ABBREVIATION FOR PORT>.
    27082712
     2713You need to have the SNMP write access on the switch in order to modify it's configuration.
     2714
    27092715
    27102716=head2 status
    27112717
     2718 klask status [--verbose|-v] switch port
     2719
    27122720This command return the status of a port number on a switch by SNMP.
    2713 So you need to give the switch and a port on the command line.
     2721The return value could be C<enable> or C<disable> word.
     2722So you need to give the switch name and a port on the command line.
    27142723See L<ABBREVIATION FOR PORT>.
     2724
    27152725
    27162726=head2 updatedb
     
    27182728This command will scan networks and update a database.
    27192729To know which are the cmputer scan, you have to configure the file F</etc/klask/klask.conf>.
    2720 This file is easy to read and write because klask use YAML format and not XML.
     2730This file is easy to read and write because Klask use YAML format and not XML.
    27212731
    27222732
     
    27392749Computer name beginning by 'float' are not really taken into account but could be remove.
    27402750
    2741 When reverse DNS has not be done, option --repair-dns force reverse DNS check on unkown host.
     2751When reverse DNS has not be done, option C<--repair-dns> force reverse DNS check on unkown host.
    27422752
    27432753=head2 updatesw
     
    27502760
    27512761This command print the content of the switch database. There is actually two format.
    2752 One is just txt for terminal and the other is the dot format from the graphviz environnement.
     2762One is just C<txt> for terminal and the other is the C<dot> format from the graphviz environnement.
    27532763
    27542764 klask exportsw --format dot > /tmp/map.dot
     
    27562766
    27572767
    2758 
    27592768=head1 CONFIGURATION
    27602769
    2761 Because klask need many parameters, it's not possible actually to use command line parameters for everything.
     2770Because Klask need many parameters, it's not possible actually to use command line parameters for everything.
    27622771The configuration is done in a F</etc/klask/klask.conf> YAML file.
    27632772This format have many advantage over XML, it's easier to read and to write !
     
    28052814Maybe I will make a delete line to suppress specific computers.
    28062815The switch section define your switch.
    2807 You have to write the port number to ignore, this was important if your switchs are cascade
     2816You have to write the port number to ignore, this was important if your switchs are cascades
    28082817(right now, method C<updatesw> find them automatically)
    28092818and is still important if you have loop (with PVST or MSTP).
     
    28442853 /var/lib/klask/switchdb
    28452854
     2855
    28462856=head1 SEE ALSO
    28472857
    28482858Net::SNMP, Net::Netmask, Net::CIDR::Lite, NetAddr::IP, YAML
    28492859
     2860=over
     2861
     2862=item *
     2863
     2864Web site: L<http://servforge.legi.grenoble-inp.fr/projects/klask>
     2865
     2866=item *
     2867
     2868Online Manual: L<http://servforge.legi.grenoble-inp.fr/pub/klask/klask.html>
     2869
     2870=back
     2871
    28502872
    28512873=head1 VERSION
Note: See TracChangeset for help on using the changeset viewer.