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::CiscoAgg
  • SNMP::Info::CiscoPortSecurity
  • SNMP::Info::Layer3::Cisco

🌸 Required MIBs 🌸

πŸ’œ Inherited Classes' MIBs

  • See "Required MIBs" in SNMP::Info::CiscoAgg for its own MIB requirements.
  • See "Required MIBs" in SNMP::Info::CiscoPortSecurity for its own MIB requirements.
  • See "Required MIBs" in SNMP::Info::Layer3::Cisco for its own MIB requirements.

πŸ‘‘ GLOBALS πŸ‘‘

These are methods that return scalar value from SNMP. Scalar. Singular. One lil value. πŸ’…

  • $switch->cisco_comm_indexing() β€” Returns 1. 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