Changeset 247
- Timestamp:
- Sep 8, 2017, 11:46:07 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r246 r247 874 874 klask status [--verbose|-v] switch port 875 875 876 klask poe-enable [--verbose|-v] switch port 877 klask poe-disable [--verbose|-v] switch port 878 klask poe-status [--verbose|-v] switch port 879 876 880 klask vlan-getname switch vlan-id 877 881 klask vlan-list switch … … 1825 1829 if (defined $result and $result->{$search} ne 'noSuchInstance') { 1826 1830 my $poe = $result->{$search} || 'empty'; 1827 $poe =~ s/8/ on/;1828 $poe =~ s/2/ off/;1829 printf "%s %s ~~%s\n", $sw_name, $switch_port, $poe;1831 $poe =~ s/8/enable/; 1832 $poe =~ s/2/disable/; 1833 printf "%s %s poe %s\n", $sw_name, $switch_port, $poe; 1830 1834 } 1831 1835 else { 1832 print "Klask do not find P OE Status on switch $sw_name on port $switch_port\n";1836 print "Klask do not find PoE Status on switch $sw_name on port $switch_port\n"; 1833 1837 } 1834 1838 … … 2822 2826 klask status [--verbose|-v] switch port 2823 2827 2828 klask poe-enable [--verbose|-v] switch port 2829 klask poe-disable [--verbose|-v] switch port 2830 klask poe-status [--verbose|-v] switch port 2831 2824 2832 klask vlan-getname switch vlan-id 2825 2833 klask vlan-list switch … … 3014 3022 This functionality is not need if your switch use RADIUS 802.1X configuration... 3015 3023 3024 3025 =head2 poe-enable 3026 3027 klask poe-enable [--verbose|-v] switch port 3028 3029 This command activate the PoE (Power over Ethernet) on a switch port by SNMP. 3030 So you need to give the switch name and a port on the command line. 3031 See L</ABBREVIATION FOR PORT>. 3032 3033 Warning: Only NEXANS switches are supported (we do not have other switch for testing). 3034 You need to have the SNMP write access on the switch in order to modify it's configuration. 3035 3036 3037 =head2 poe-disable 3038 3039 klask poe-disable [--verbose|-v] switch port 3040 3041 This command deactivate the PoE (Power over Ethernet) on a switch port by SNMP. 3042 So you need to give the switch name and a port on the command line. 3043 See L</ABBREVIATION FOR PORT>. 3044 3045 Warning: Only NEXANS switches are supported (we do not have other switch for testing). 3046 You need to have the SNMP write access on the switch in order to modify it's configuration. 3047 3048 3049 =head2 poe-status 3050 3051 klask poe-status [--verbose|-v] switch port 3052 3053 This command return the status of the PoE (Power over Ethernet) on a switch port by SNMP. 3054 The return value could be C<enable> or C<disable> word. 3055 So you need to give the switch name and a port on the command line. 3056 See L</ABBREVIATION FOR PORT>. 3057 3058 If it's not possible to change the PoE status with command L</poe-enable> and L</poe-disable> 3059 (SNMP community read write access), 3060 it's always possible to have the PoE port status. 3061 3062 Warning: Only NEXANS switches are supported (we do not have other switch for testing). 3016 3063 3017 3064
Note: See TracChangeset
for help on using the changeset viewer.