SNMP::Info::PortAccessEntity - SNMP Interface to data stored in IEEE8021-PAE-MIB.
Christian Ramseyer
# Let SNMP::Info determine the correct subclass for you. my $pae = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $pae->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
IEEE8021-PAE-MIB is used to describe Port Access Entities, aka NAC/dot1x features.
Create or use a device subclass that inherit this class. Do not use directly.
For debugging purposes you can call this class directly as you would SNMP::Info
my $pae = new SNMP::Info::PortAccessEntity (...);
none.
The administrative enable/disable state for Port Access Control in a System. Possible values are enabled and disabled.
dot1xPaeSystemAuthControl
These are methods that return tables of information in the form of a reference to a hash.
Authentication state: is the port authenticated, disconnected, etc.
dot1xAuthPaeState
Controlled Port status parameter for the Port: can only be authorized or unauthorized
dot1xAuthAuthControlledPortStatus
The User-Name representing the identity of the Supplicant PAE. This can be a pretty arbitrary string besides an actual username, e.g. a MAC address for MAB or a hostname for dot1x.
dot1xAuthSessionUserName
Helper method, guess if this a mac address bypass port: contains the string "mab" for indexes where the pae_authsess_user looks like a MAC address.
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.