Changeset 247


Ignore:
Timestamp:
Sep 8, 2017, 11:46:07 AM (3 years ago)
Author:
g7moreau
Message:
  • Add PoE doc command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r246 r247  
    874874 klask status  [--verbose|-v] switch port
    875875
     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
    876880 klask vlan-getname switch vlan-id
    877881 klask vlan-list switch
     
    18251829      if (defined $result and $result->{$search} ne 'noSuchInstance') {
    18261830         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;
    18301834         }
    18311835      else {
    1832          print "Klask do not find POE 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";
    18331837         }
    18341838
     
    28222826 klask status  [--verbose|-v] switch port
    28232827
     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
    28242832 klask vlan-getname switch vlan-id
    28252833 klask vlan-list switch
     
    30143022This functionality is not need if your switch use RADIUS 802.1X configuration...
    30153023
     3024
     3025=head2 poe-enable
     3026
     3027 klask poe-enable  [--verbose|-v] switch port
     3028
     3029This command activate the PoE (Power over Ethernet) on a switch port by SNMP.
     3030So you need to give the switch name and a port on the command line.
     3031See L</ABBREVIATION FOR PORT>.
     3032
     3033Warning: Only NEXANS switches are supported (we do not have other switch for testing).
     3034You 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
     3041This command deactivate the PoE (Power over Ethernet) on a switch port by SNMP.
     3042So you need to give the switch name and a port on the command line.
     3043See L</ABBREVIATION FOR PORT>.
     3044
     3045Warning: Only NEXANS switches are supported (we do not have other switch for testing).
     3046You 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
     3053This command return the status of the PoE (Power over Ethernet) on a switch port by SNMP.
     3054The return value could be C<enable> or C<disable> word.
     3055So you need to give the switch name and a port on the command line.
     3056See L</ABBREVIATION FOR PORT>.
     3057
     3058If it's not possible to change the PoE status with command L</poe-enable> and L</poe-disable>
     3059(SNMP community read write access),
     3060it's always possible to have the PoE port status.
     3061
     3062Warning: Only NEXANS switches are supported (we do not have other switch for testing).
    30163063
    30173064
Note: See TracChangeset for help on using the changeset viewer.