SNMP::Info::Layer2::C1900(3pm) | User Contributed Perl Documentation | SNMP::Info::Layer2::C1900(3pm) |
SNMP::Info::Layer2::C1900 - SNMP Interface to data from Cisco Catalyst 1900 Network Switches running CatOS
Max Baker
# Let SNMP::Info determine the correct subclass for you. my $c1900 = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 1 ) or die "Can't connect to DestHost.\n"; my $class = $c1900->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Provides abstraction to the configuration information obtainable from a Catalyst 1900 device through SNMP. See SNMP::Info for full documentation
Note that most of these devices only talk SNMP version 1, but not all.
See "Required MIBs" in SNMP::Info::CDP for its MIB requirements.
See "Required MIBs" in SNMP::Info::CiscoStats for its MIB requirements.
See "Required MIBs" in SNMP::Info::CiscoConfig for its MIB requirements.
See "Required MIBs" in SNMP::Info::CiscoStpExtensions for its MIB requirements.
See "Required MIBs" in SNMP::Info::CiscoAgg for its MIB requirements.
See "Required MIBs" in SNMP::Info::Layer2 for its MIB requirements.
These are methods that return scalar value from SNMP
"STAND-ALONE-ETHERNET-SWITCH-MIB::upgradeFlashBankStatus"
See "GLOBALS" in SNMP::Info::CDP for details.
See "GLOBALS" in SNMP::Info::CiscoStats for details.
See "GLOBALS" in SNMP::Info::CiscoConfig for details.
See "GLOBALS" in SNMP::Info::CiscoStpExtensions for details.
See "GLOBALS" in SNMP::Info::Layer2 for details.
These are methods that return tables of information in the form of a reference to a hash.
Example: my $interfaces = $c1900->interfaces(); my $vlans = $c1900->i_vlan_membership(); foreach my $iid (sort keys %$interfaces) { my $port = $interfaces->{$iid}; my $vlan = join(',', sort(@{$vlans->{$iid}})); print "Port: $port VLAN: $vlan\n"; }
"swPortIfIndex"
("swPortDuplexStatus")
("swPortFullDuplex")
("swPortName")
("swPortAdminStatus")
("swPortMediaCapability")
("swPortConnectorType")
See "TABLE METHODS" in SNMP::Info::CDP for details.
See "TABLE METHODS" in SNMP::Info::CiscoStats for details.
See "TABLE METHODS" in SNMP::Info::CiscoConfig for details.
See "TABLE METHODS" in SNMP::Info::CiscoStpExtensions for details.
See "TABLE METHODS" in SNMP::Info::CiscoAgg for details.
See "TABLE METHODS" in SNMP::Info::Layer2 for details.
These are methods that provide SNMP set functionality for overridden methods or provide a simpler interface to complex set operations. See "SETTING DATA VIA SNMP" in SNMP::Info for general information on set operations.
Example: my %if_map = reverse %{$c1900->interfaces()}; $c1900->set_i_duplex_admin('auto', $if_map{'1'}) or die "Couldn't change port duplex. ",$c1900->error(1);
2023-09-30 | perl v5.36.0 |