Changeset 226
- Timestamp:
- Feb 20, 2017, 10:24:41 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r225 r226 876 876 877 877 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] 879 879 klask removedb IP* computer* 880 880 klask cleandb [--verbose|-v] --day number_of_day --repair-dns 881 881 882 882 klask updatesw [--verbose|-v] 883 klask exportsw --format [txt|dot]884 885 klask searchdb computer883 klask exportsw [--format|-f txt|dot] 884 885 klask searchdb [--kind|-k host|mac] computer [mac-address] 886 886 klask search computer 887 klask search-mac-on-switch switch mac_addr888 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] 890 890 891 891 klask bad-vlan-id [--day|-d days_before_alert] … … 2661 2661 =head1 USAGE 2662 2662 2663 klask version 2664 klask help 2665 2663 2666 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] 2665 2668 klask removedb IP* computer* 2666 2669 klask cleandb [--verbose|-v] --day number_of_day --repair-dns 2667 2670 2668 2671 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] 2672 2675 klask search computer 2673 2676 klask search-mac-on-switch [--verbose|-v] [--vlan|-i vlan-id] switch mac_addr 2674 2677 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] 2676 2679 2677 2680 klask bad-vlan-id [--day|-d days_before_alert] … … 2714 2717 =head2 search 2715 2718 2719 klask search computer 2720 2716 2721 This command takes one or more computer in argument. 2717 2722 It 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 2728 This command search a MAC address on a switch. 2729 The VLAN could help. 2718 2730 2719 2731 … … 2754 2766 klask updatedb [--verbose|-v] [--verb-description|-d] [--chk-hostname|-h] [--chk-location|-l] 2755 2767 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. 2768 This command will scan networks and update the computer database. 2769 To know which are the cmputer scanned, you have to configure the file F</etc/klask/klask.conf>. 2770 This file is easy to read and write because Klask use YAML format and not XML 2771 (see L</CONFIGURATION>). 2772 2773 Option are not stable and could be use manually when you have a new kind of switch. 2761 2774 Maybe some option will be transfered in a future C<checksw> command! 2762 2775 2763 2776 =head2 exportdb 2764 2777 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 2780 This command print the content of the computer database. 2781 There is actually only two format : TXT and HTML. 2782 By default, format is TXT. 2768 2783 It's very easy to have more format, it's just need times... 2769 2784 … … 2776 2791 You can put as many IP as you want... 2777 2792 2778 DNS computer name could also a valid entry because a DNS resolver is doneat the beginning.2793 Computer DNS names are also a valid entry because a DNS resolver is executed at the beginning. 2779 2794 2780 2795 =head2 cleandb … … 2789 2804 In the Klask database, the float DNS entries are less important. 2790 2805 2791 When reverse DNS has not be done by the past, option C<--repair-dns> forcereverse DNS check on all unkown host.2806 When reverse DNS has not been done by the past, option C<--repair-dns> force a reverse DNS check on all unkown host. 2792 2807 2793 2808 =head2 updatesw … … 2796 2811 2797 2812 This 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> .2813 The list of the switches must be given in the file F</etc/klask/klask.conf> (see L</CONFIGURATION>). 2799 2814 2800 2815 2801 2816 =head2 exportsw 2802 2817 2803 klask exportsw --format [txt|dot]2818 klask exportsw [--format|-f txt|dot] 2804 2819 2805 2820 This 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. 2821 One is just TXT for terminal and the other is the DOT format from the graphviz environnement. 2822 By default, format is TXT. 2807 2823 2808 2824 klask exportsw --format dot > /tmp/map.dot … … 2812 2828 =head2 ip-free 2813 2829 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] 2815 2831 2816 2832 This command return IP address that was not use (detected by Klask) at this time.
Note: See TracChangeset
for help on using the changeset viewer.