SNMP::...::C1300(3pm)

✨ NAME ✨

SNMP::...::C1300 β€” it's the SNMP interface for C1300 Networks EOS, bestie πŸ’– (and yeah, it lives in the 3pm section of the perl manual, so that's the whole SNMP::...::C1300(3pm) vibe)

πŸŽ€ AUTHOR πŸŽ€

Bill Fenner β€” yes, that Bill Fenner, the icon who wrote this πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

# Let SNMP::Info determine the correct subclass for you.
my $C1300 = 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      = $C1300->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";

okay so real talk β€” you let SNMP::Info do the detective work and figure out which subclass this thing belongs in, instead of you guessing. main character energy fr fr πŸ‘‘

🌸 DESCRIPTION 🌸

It's a subclass for C1300 Networks EOS-based devices. That's the whole assignment and it ate. πŸ”₯

πŸ’œ Inherited Classes πŸ’œ

  • SNMP::Info::Aggregate
  • SNMP::Info::Layer3
  • SNMP::Info::MAU

πŸŽ€ Required MIBs πŸŽ€

  • C1300-PRODUCTS-MIB
  • Inherited Classes' MIBs
    • Peep "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements. πŸ‘€
    • Peep "Required MIBs" in SNMP::Info::Aggregate for its own MIB requirements. πŸ‘€
    • Peep "Required MIBs" in SNMP::Info::MAU for its own MIB requirements. πŸ‘€

⭐ GLOBALS ⭐

These are methods that return scalar values from SNMP. Little single-value girlies ✨

  • $C1300->vendor() β€” returns 'C1300'
  • $C1300->model() β€” tries to reference $C1300->id() to one of the product MIBs listed above. Also: it removes 'C1300' from the name for readability, because we're not doing clutter around here πŸ’…
  • $C1300->os() β€” returns 'EOS'
  • $C1300->os_ver() β€” grabs the os version from "sysDescr"

πŸ’– Global Methods imported from SNMP::Info::Layer3 πŸ’–

See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.

πŸ’– Global Methods imported from SNMP::Info::MAU πŸ’–

See documentation in "GLOBALS" in SNMP::Info::MAU for details.


🌈 TABLE METHODS 🌈

These are methods that return tables of information in the form of a reference to a hash. So many little hash refs, we're obsessed 🫢

  • $C1300->v_name() β€” the VLAN Names.
  • $C1300->i_duplex_admin() β€” returns info from MAU-MIB
  • $C1300->i_speed_admin() β€” returns info from MAU-MIB
  • $C1300->lldp_if() β€” returns the mapping to the SNMP Interface Table.
  • "agg_ports" β€” returns a HASH reference mapping from slave to master port for each member of a port bundle on the device. Keys are ifIndex of the slave ports, Values are ifIndex of the corresponding master ports. no cap, that's the exact mapping 🧚

πŸ’™ Table Methods imported from SNMP::Info::Layer3 πŸ’™

See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.

πŸ’™ Table Methods imported from SNMP::Info::MAU πŸ’™

See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.

πŸ‘‘ SET METHODS πŸ‘‘

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. Yes bestie, you can actually write stuff, not just read it 😭

  • set_i_vlan()

πŸ’€ forewarning bestie: set operations are the part where you can genuinely change things on the device, so know what you're doing before you start poking. The original points you at "SETTING DATA VIA SNMP" in SNMP::Info for the general rundown β€” go read it, iykyk πŸ™ˆ

and that's the whole page!! this one shipped as perl v5.40.1, dated 2026-02-28, in the SNMP::...::C1300(3pm) manual section of the User Contributed Perl Documentation. go off, you understood the whole thing, so proud πŸ₯ΉπŸ’–βœ¨

πŸ“¦ where this page comes from