SNMP::...::C4000(3pm)
π SNMP::...::C4000 π
ok so bestie, you're looking at the SNMP::...::C4000(3pm) page β it's part of the User Contributed Perl Documentation, and it's literally your backstage pass to talking to Cisco Catalyst 4000 Layer 2/3 switches π
β¨ NAME β¨
SNMP::Info::Layer3::C4000 β the SNMP Interface to Cisco Catalyst 4000 Layer 2/3 Switches running IOS. that's the whole vibe. no cap. π
πΈ AUTHOR πΈ
Bill Fenner π«Ά (yes, a real human, and we're obsessed with them)
π SYNOPSIS π
here's the little ritual you do to summon the thing β¨
# Let SNMP::Info determine the correct subclass for you.
my $c4000 = 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 = $c4000->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
likeβ¦ it literally figures out the right subclass for you so you don't have to. it's giving "I'll handle it, babe" π
π¦ DESCRIPTION π¦
It's the abstraction subclass for Cisco Catalyst 4000 Layer 2/3 Switches. that's its whole job and it does it beautifully β¨
π§ Inherited Classes
SNMP::Info::Layer3::CiscoSwitchSNMP::Info::MAU
π Required MIBs
- Inherited Classes' MIBs
- Peep "Required MIBs" in
SNMP::Info::Layer3::CiscoSwitchfor its own MIB requirements π - Peep "Required MIBs" in
SNMP::Info::MAUfor its own MIB requirements π
- Peep "Required MIBs" in
β GLOBALS β
these are methods that return scalar value from SNMP. lil single-value besties πΈ
π Overrides
$c4000->fan()β returns fan status π¬οΈ (yes it knows if the fan is ok, icon behaviour)
π Globals imported from SNMP::Info::Layer3::CiscoSwitch
See documentation in "GLOBALS" in SNMP::Info::Layer3::CiscoSwitch for details.
π Globals imported from SNMP::Info::MAU
See documentation in "GLOBALS" in SNMP::Info::MAU for details.
π₯ TABLE METHODS π₯
these ones return tables of information in the form of a reference to a hash. whole meals, basically π½οΈ
π Overrides
$c4000->i_duplex()β parsesmau_indexandmau_linkto return the duplex information for interfaces. slay π$c4000->i_duplex_admin()β parses"mac_index","mau_autostat","mau_type_admin"in order to find the admin duplex setting for all the interfaces.
Returns either (auto,full,half). pick your fighter β¨
$c4000->i_speed_admin()β returns administrative speed for interfaces. zoom zoom ποΈ$c4000->set_i_speed_admin(speed, ifIndex)β sets port speed, must be supplied with speed and port"ifIndex".
Speed choices are '10', '100', '1000', 'auto'.
$c4000->set_i_duplex_admin(duplex, ifIndex)β sets port duplex, must be supplied with duplex and port"ifIndex".
Duplex choices are 'auto', 'half', 'full'.
π Table Methods imported from SNMP::Info::Layer3::CiscoSwitch
See documentation in "TABLE METHODS" in SNMP::Info::Layer3::CiscoSwitch for details.
π Table Methods imported from SNMP::Info::MAU
See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.
ok that's the whole page bestie, go be the main character of your network π«Άβ¨
π cute sign-off: this isperl v5.40.1, dated2026-02-28, and the page itself isSNMP::...::C4000(3pm). iykyk π
π¦ 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