SNMP::...oSwitch(3pm)
π NAME π
SNMP::Info::Layer3::CiscoSwitch β bestie, this is the base class for L3 Cisco switches. That's the whole vibe. π
π«Ά AUTHOR π«Ά
Eric Miller. Stan the icon who made this. π
β¨ SYNOPSIS β¨
okay so first things first, you let SNMP::Info figure out which subclass you actually belong to, instead of guessing like a fool:
# Let SNMP::Info determine the correct subclass for you.
my $switch = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
# These arguments are passed directly to SNMP::Session
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $switch->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
then you peek at $class and it literally tells you which subclass this device lives under. no cap. πΈ
π¦ DESCRIPTION π¦
Base subclass for Cisco Layer 2/3 switches. π
These devices have switch-specific characteristics beyond the ones in your traditional routers, which is what SNMP::Info::Layer3::Cisco covers. Like, for example? Port security interface info, straight from SNMP::Info::CiscoPortSecurity. Serving. π₯
Now listen β for speed, or for debugging, you can call the subclass directly. But not after you've already determined a more specific class using the method above, okay? Don't do that to yourself.
my $swich = new SNMP::Info::Layer3::CiscoSwitch(...);
(yes, $swich. we're keeping it. it's iconic now. π)
π Inherited Classes π
SNMP::Info::CiscoAggSNMP::Info::CiscoPortSecuritySNMP::Info::Layer3::Cisco
πΈ Required MIBs πΈ
π Inherited Classes' MIBs
- See "Required MIBs" in
SNMP::Info::CiscoAggfor its own MIB requirements. - See "Required MIBs" in
SNMP::Info::CiscoPortSecurityfor its own MIB requirements. - See "Required MIBs" in
SNMP::Info::Layer3::Ciscofor its own MIB requirements.
π GLOBALS π
These are methods that return scalar value from SNMP. Scalar. Singular. One lil value. π
$switch->cisco_comm_indexing()β Returns1. Use vlan indexing. that's it, that's the whole function, she's simple and she works bestie π
π Globals imported from SNMP::Info::CiscoPortSecurity π
See documentation in "GLOBALS" in SNMP::Info::CiscoPortSecurity for details.
π Globals imported from SNMP::Info::Layer3::Cisco π
See documentation in "GLOBALS" in SNMP::Info::Layer3::Cisco for details.
π TABLE METHODS π
These are methods that return tables of information in the form of a reference to a hash. We love a hash ref. We live for a hash ref. π
π Table Methods imported from SNMP::Info::CiscoAgg π
See documentation in "TABLE METHODS" in SNMP::Info::CiscoAgg for details.
π Table Methods imported from SNMP::Info::CiscoPortSecurity π
See documentation in "TABLE METHODS" in SNMP::Info::CiscoPortSecurity for details.
π Table Methods imported from SNMP::Info::Layer3::Cisco π
See documentation in "TABLE METHODS" in SNMP::Info::Layer3::Cisco for details.
okay bestie that's the whole page, you're officially certified π β¨
this was pulled from the User Contributed Perl Documentation fam, running on perl v5.40.1, dated 2026-02-28, filed under SNMP::...oSwitch(3pm) π«Ά go forth and poll something responsibly. π¦
π¦ where this page comes from
- ubuntu stonking: libsnmp-info-perl 3.975000-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms