Changeset 227
- Timestamp:
- Feb 20, 2017, 10:56:22 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r226 r227 2722 2722 It search a computer on the network and give the port and the switch on which the computer is connected. 2723 2723 2724 =head2 search 2724 =head2 search-mac-on-switch 2725 2725 2726 2726 klask search-mac-on-switch [--verbose|-v] [--vlan|-i vlan-id] switch mac_addr … … 2734 2734 klask enable [--verbose|-v] switch port 2735 2735 2736 This command activate a port on a switch by SNMP.2736 This command activate a port (or an agrregate bridge port) on a switch by SNMP. 2737 2737 So you need to give the switch name and a port on the command line. 2738 2738 See L</ABBREVIATION FOR PORT>. 2739 2739 2740 You need to have the SNMP write access on the switch in order to modify it's configuration.2740 Warning: You need to have the SNMP write access on the switch in order to modify it's configuration. 2741 2741 2742 2742 … … 2745 2745 klask disable [--verbose|-v] switch port 2746 2746 2747 This command deactivate a port on a switch by SNMP.2747 This command deactivate a port (or an agrregate bridge port) on a switch by SNMP. 2748 2748 So you need to give the switch name and a port on the command line. 2749 2749 See L</ABBREVIATION FOR PORT>. 2750 2750 2751 You need to have the SNMP write access on the switch in order to modify it's configuration.2751 Warning: You need to have the SNMP write access on the switch in order to modify it's configuration. 2752 2752 2753 2753 … … 2761 2761 See L</ABBREVIATION FOR PORT>. 2762 2762 2763 If it's not possible to change port status with command L</enable> and L</disable> 2764 (SNMP community read write access), 2765 it's always possible to have the port status even for bridge agrregate port. 2766 2763 2767 2764 2768 =head2 updatedb … … 2773 2777 Option are not stable and could be use manually when you have a new kind of switch. 2774 2778 Maybe some option will be transfered in a future C<checksw> command! 2779 2780 The network parameter C<scan-mode> can have two values: C<active> or C<passive>. 2781 By default, a network is C<active>. 2782 This means that an C<fping> command is done at the beginning on all the IP of the network 2783 and the computers that was not detected in this pass, but where their Klask entry is less than one week, 2784 will have an C<arping> 2785 (some OS do not respond to C<ping> but a computer have to respond to C<arping> if it want to interact with other). 2786 In the scan mode C<passive>, no C<fping> and no C<arping> are done. 2787 It's good for big subnet with few computer (telephone...). 2788 The idea of the C<active> scan mode is to force computer to regulary send packet over the network. 2775 2789 2776 2790 =head2 exportdb … … 2872 2886 snmpport: 161 2873 2887 float-regex: '(?^msx: ^float )' 2888 scan-mode: active 2874 2889 2875 2890 network: … … 2884 2899 schoolnet: 2885 2900 ip-subnet: 2886 - add: 192.168. 6.0/242887 - add: 192.168. 7.0/242901 - add: 192.168.3.0/24 2902 - add: 192.168.4.0/24 2888 2903 interface: eth0.38 2889 2904 vlan-id: 13 2890 2905 main-router: gw2.schoolnet.local 2906 scan-mode: passive 2907 2908 etunet: 2909 ip-subnet: 2910 - add: 192.168.5.0/24 2911 interface: eth2 2912 vlan-id: 14 2913 main-router: gw3.etunet.local 2914 scan-mode: passive 2891 2915 2892 2916 switch: 2893 2917 - hostname: sw1.klask.local 2918 location: BatY / 1 floor / K004 2894 2919 portignore: 2895 2920 - 1 … … 2897 2922 2898 2923 - hostname: sw2.klask.local 2899 location: Bat K / 2/ K2032924 location: BatY / 2 floor / K203 2900 2925 type: HP2424 2901 2926 portignore: … … 2903 2928 - 2 2904 2929 fake-ip: 192.168.9.14 2930 2931 - hostname: sw3.klask.local 2932 location: BatY / 2 floor / K203 2905 2933 2906 2934 I think it's pretty easy to understand.
Note: See TracChangeset
for help on using the changeset viewer.