Changeset 219 for trunk/klask
- Timestamp:
- Feb 18, 2017, 4:46:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r218 r219 2636 2636 =head1 NAME 2637 2637 2638 klask - port s manager and finder for switch2638 klask - port and search manager for switches, map management 2639 2639 2640 2640 2641 2641 =head1 USAGE 2642 2642 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] 2644 2644 klask exportdb --format [txt|html] 2645 2645 klask removedb computer* 2646 klask cleandb [--verbose ] --day number_of_day --repair-dns2647 2648 klask updatesw [--verbose ]2646 klask cleandb [--verbose|-v] --day number_of_day --repair-dns 2647 2648 klask updatesw [--verbose|-v] 2649 2649 klask exportsw --format [txt|dot] 2650 2650 2651 2651 klask searchdb --kind [host|mac] computer [mac-address] 2652 2652 klask search computer 2653 klask search-mac-on-switch [--verbose ] [--vlan|-i vlan-id] switch mac_addr2654 2655 klask ip-free [--verbose ] --day number_of_day --format [txt|html] [vlan_name]2656 2657 klask enable switch port2658 klask disable switch port2659 klask status switch port2653 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 2660 2660 2661 2661 … … 2680 2680 The C<fake-ip> parameter is defined in the config file. 2681 2681 2682 Klask has now a web site dedicated for it ! 2683 2684 http://servforge.legi.grenoble-inp.fr/projects/klask 2682 Klask has now a web site dedicated for it: L<http://servforge.legi.grenoble-inp.fr/projects/klask>! 2685 2683 2686 2684 … … 2696 2694 =head2 enable 2697 2695 2696 klask enable [--verbose|-v] switch port 2697 2698 2698 This command activate a port on a switch by SNMP. 2699 So you need to give the switch and a port on the command line.2699 So you need to give the switch name and a port on the command line. 2700 2700 See L<ABBREVIATION FOR PORT>. 2701 2701 2702 You need to have the SNMP write access on the switch in order to modify it's configuration. 2703 2702 2704 2703 2705 =head2 disable 2704 2706 2707 klask disable [--verbose|-v] switch port 2708 2705 2709 This command deactivate a port on a switch by SNMP. 2706 So you need to give the switch and a port on the command line.2710 So you need to give the switch name and a port on the command line. 2707 2711 See L<ABBREVIATION FOR PORT>. 2708 2712 2713 You need to have the SNMP write access on the switch in order to modify it's configuration. 2714 2709 2715 2710 2716 =head2 status 2711 2717 2718 klask status [--verbose|-v] switch port 2719 2712 2720 This 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. 2721 The return value could be C<enable> or C<disable> word. 2722 So you need to give the switch name and a port on the command line. 2714 2723 See L<ABBREVIATION FOR PORT>. 2724 2715 2725 2716 2726 =head2 updatedb … … 2718 2728 This command will scan networks and update a database. 2719 2729 To 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.2730 This file is easy to read and write because Klask use YAML format and not XML. 2721 2731 2722 2732 … … 2739 2749 Computer name beginning by 'float' are not really taken into account but could be remove. 2740 2750 2741 When reverse DNS has not be done, option --repair-dnsforce reverse DNS check on unkown host.2751 When reverse DNS has not be done, option C<--repair-dns> force reverse DNS check on unkown host. 2742 2752 2743 2753 =head2 updatesw … … 2750 2760 2751 2761 This 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 dotformat from the graphviz environnement.2762 One is just C<txt> for terminal and the other is the C<dot> format from the graphviz environnement. 2753 2763 2754 2764 klask exportsw --format dot > /tmp/map.dot … … 2756 2766 2757 2767 2758 2759 2768 =head1 CONFIGURATION 2760 2769 2761 Because klask need many parameters, it's not possible actually to use command line parameters for everything.2770 Because Klask need many parameters, it's not possible actually to use command line parameters for everything. 2762 2771 The configuration is done in a F</etc/klask/klask.conf> YAML file. 2763 2772 This format have many advantage over XML, it's easier to read and to write ! … … 2805 2814 Maybe I will make a delete line to suppress specific computers. 2806 2815 The switch section define your switch. 2807 You have to write the port number to ignore, this was important if your switchs are cascade 2816 You have to write the port number to ignore, this was important if your switchs are cascades 2808 2817 (right now, method C<updatesw> find them automatically) 2809 2818 and is still important if you have loop (with PVST or MSTP). … … 2844 2853 /var/lib/klask/switchdb 2845 2854 2855 2846 2856 =head1 SEE ALSO 2847 2857 2848 2858 Net::SNMP, Net::Netmask, Net::CIDR::Lite, NetAddr::IP, YAML 2849 2859 2860 =over 2861 2862 =item * 2863 2864 Web site: L<http://servforge.legi.grenoble-inp.fr/projects/klask> 2865 2866 =item * 2867 2868 Online Manual: L<http://servforge.legi.grenoble-inp.fr/pub/klask/klask.html> 2869 2870 =back 2871 2850 2872 2851 2873 =head1 VERSION
Note: See TracChangeset
for help on using the changeset viewer.