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::AggregateSNMP::Info::Layer3SNMP::Info::MAU
π Required MIBs π
C1300-PRODUCTS-MIB- Inherited Classes' MIBs
- Peep
"Required MIBs"inSNMP::Info::Layer3for its own MIB requirements. π - Peep
"Required MIBs"inSNMP::Info::Aggregatefor its own MIB requirements. π - Peep
"Required MIBs"inSNMP::Info::MAUfor its own MIB requirements. π
- Peep
β 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"inSNMP::Infofor 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
- 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