Changeset 223 for trunk/klask
- Timestamp:
- Feb 18, 2017, 7:29:40 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r222 r223 182 182 Readonly my $RE_IPv4_ADDRESS => qr{ [0-9]{1,3} \. [0-9]{1,3} \. [0-9]{1,3} \. [0-9]{1,3} }xms; 183 183 184 Readonly my $RE_FLOAT_HOSTNAME => qr{ ^float }xms;184 Readonly my $RE_FLOAT_HOSTNAME => $DEFAULT{'float-regex'} || qr{ ^float }xms; 185 185 186 186 ################################################################ … … 874 874 klask version 875 875 876 klask updatedb 876 klask updatedb [--verbose|-v] [--verb-description|-d] [--chk-hostname|-h] [--chk-location|-l] 877 877 klask exportdb --format [txt|html] 878 klask removedb computer*879 klask cleandb --day number_of_day --repair-dns --verbose878 klask removedb IP* computer* 879 klask cleandb [--verbose|-v] --day number_of_day --repair-dns 880 880 881 881 klask updatesw … … 890 890 klask bad-vlan-id 891 891 892 klask enable switch port893 klask disable switch port894 klask status switch port892 klask enable [--verbose|-v] switch port 893 klask disable [--verbose|-v] switch port 894 klask status [--verbose|-v] switch port 895 895 END 896 896 return; … … 2653 2653 klask updatedb [--verbose|-v] [--verb-description|-d] [--chk-hostname|-h] [--chk-location|-l] 2654 2654 klask exportdb --format [txt|html] 2655 klask removedb computer*2655 klask removedb IP* computer* 2656 2656 klask cleandb [--verbose|-v] --day number_of_day --repair-dns 2657 2657 … … 2704 2704 =head2 enable 2705 2705 2706 klask enable [--verbose|-v] switch port2706 klask enable [--verbose|-v] switch port 2707 2707 2708 2708 This command activate a port on a switch by SNMP. … … 2726 2726 =head2 status 2727 2727 2728 klask status [--verbose|-v] switch port2728 klask status [--verbose|-v] switch port 2729 2729 2730 2730 This command return the status of a port number on a switch by SNMP. … … 2736 2736 =head2 updatedb 2737 2737 2738 klask updatedb [--verbose|-v] [--verb-description|-d] [--chk-hostname|-h] [--chk-location|-l] 2739 2738 2740 This command will scan networks and update a database. 2739 2741 To know which are the cmputer scan, you have to configure the file F</etc/klask/klask.conf>. 2740 2742 This file is easy to read and write because Klask use YAML format and not XML. 2741 2743 2742 2743 =head2 exportdb --format [txt|html] 2744 2745 This command print the content of the database. There is actually only one format. 2744 Option are not stable and could be use manually when you have new switch. 2745 Maybe some option will be transfered in a future C<checksw> command! 2746 2747 =head2 exportdb 2748 2749 klask exportdb --format [txt|html] 2750 2751 This command print the content of the database. There is actually only two format : txt and html. 2746 2752 It's very easy to have more format, it's just need times... 2747 2753 2748 2754 =head2 removedb 2755 2756 klask removedb IP* computer* 2749 2757 2750 2758 This command remove an entry in the database. … … 2756 2764 =head2 cleandb 2757 2765 2758 Remove double entry (same MAC-Address) when the older one is older than X day (C<--day>) the new one. 2759 Computer name beginning by 'float' are not really taken into account but could be remove. 2760 2761 When reverse DNS has not be done, option C<--repair-dns> force reverse DNS check on unkown host. 2766 klask cleandb [--verbose|-v] --day number_of_day --repair-dns 2767 2768 Remove double entry (same MAC-Address) in the computer database when the older one is older than X day (C<--day>) the new one. 2769 Computer name beginning by 'float' (regex C<^float>) are not really taken into account but could be remove. 2770 This could be configure with the global regex parameter C<float-regex> in the configuration file F</etc/klask/klask.conf>. 2771 This functionality could be use when computer define in VLAN 1 2772 could have a float IP when they are connected on VLAN 2. 2773 In the Klask database, the float DNS entries are less important. 2774 2775 When reverse DNS has not be done by the past, option C<--repair-dns> force reverse DNS check on all unkown host. 2762 2776 2763 2777 =head2 updatesw … … 2788 2802 community-rw: private 2789 2803 snmpport: 161 2804 float-regex: '(?^msx: ^float )' 2790 2805 2791 2806 network:
Note: See TracChangeset
for help on using the changeset viewer.