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::CiscoSwitch
  • SNMP::Info::MAU

πŸ“ Required MIBs

  • Inherited Classes' MIBs
    • Peep "Required MIBs" in SNMP::Info::Layer3::CiscoSwitch for its own MIB requirements πŸ‘€
    • Peep "Required MIBs" in SNMP::Info::MAU for its own MIB requirements πŸ‘€

⭐ 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() β€” parses mau_index and mau_link to 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 is perl v5.40.1, dated 2026-02-28, and the page itself is SNMP::...::C4000(3pm). iykyk πŸ’–
πŸ“¦ where this page comes from