SNMP::...r3::H3C(3pm)
π SNMP::Info::Layer3::H3C π
okay bestie, come SIT. this is the SNMP::Info::Layer3::H3C page from the User Contributed Perl Documentation, and it's giving SNMP Interface to L3 Devices, H3C & HP A-series πβ¨
like, if your network is full of H3C boxes and HP A-series switches and you want Perl to talk to them without you losing your mind β this is the class. it's the specific subclass that SNMP::Info hands you when it figures out what you're actually connected to. main character energy, honestly π
π AUTHORS π
Jeroen van Ingen π β the icon who made this happen. say thank you.
β¨ SYNOPSIS β¨
here's the vibe. let SNMP::Info do the detective work and pick the right subclass for you, fr fr:
# Let SNMP::Info determine the correct subclass for you.
my $h3c = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myrouter',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $h3c->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
one AutoSpecify => 1 and you're off. no cap. π₯
π¦ DESCRIPTION π¦
Subclass for H3C & HP A-series devices π
that's the whole vibe. you don't construct it yourself usually β SNMP::Info sniffs your device and slides this one to you.
πΈ Inherited Classes
your girl inherits from:
SNMP::Info::Layer3SNMP::Info::IEEE802dot3ad
all that ancestry, all that power. iconic. π
π Required MIBs
you're gonna need these loaded, bestie, or this whole thing is a shrug:
HH3C-LswDEVM-MIBHH3C-LswINF-MIBHH3C-LSW-DEV-ADM-MIBHH3C-PRODUCT-ID-MIBHH3C-ENTITY-VENDORTYPE-OID-MIB
π« Inherited Classes' MIBs
not everything comes from this page, so go read the family:
- See
SNMP::Info::IEEE802dot3adfor its own MIB requirements. - See
SNMP::Info::Layer3for its own MIB requirements.
π GLOBALS π
these are methods that return scalar values straight out of SNMP. little one-value gifts. π
$h3c->model()β hands you the model, pulled out ofsysObjectIDorentPhysicalClass. β¨$h3c->vendor()β gives you back the value forentPhysicalMfgName.1. πΈ$h3c->os()β the OS, extracted fromsysDescr. yes, scraped out of the description text, that's the move. π¦$h3c->os_ver()β the software version. it'll grabentPhysicalSoftwareRev.2or extract it fromsysDescr. whichever it can get, bestie. π$h3c->qb_fdb_index()β β οΈ this one is overwritten to always return an empty hash, because the implementation on h3c is broken. it's not you, it's them. π
π Globals imported from SNMP::Info::Layer3
See documentation in SNMP::Info::Layer3 for details. go read it, iykyk.
π Globals imported from SNMP::Info::IEEE802dot3ad
See documentation in SNMP::Info::IEEE802dot3ad for details. same deal.
π§ TABLE ENTRIES π§
these are the methods that return tables of info, in the form of a reference to a hash. big data, big vibes. π«Ά
π₯ Overrides
$h3c->i_ignore()β returns a reference to a hash. it increments the value of IID if the port is supposed to be ignored. and what does it ignore? loopback. bye π"agg_ports"β returns a HASH reference mapping from slave to master port for each member of a port bundle on the device. the keys are theifIndexof the slave ports, and the values are theifIndexof the corresponding master ports. port linkage, slay. π
π Table Methods imported from SNMP::Info::Layer3
See documentation in SNMP::Info::Layer3 for details.
π Table Methods imported from SNMP::Info::IEEE802dot3ad
See documentation in SNMP::Info::IEEE802dot3ad for details.
lowkey the whole point of this class: let it auto-detect, and don't fight it when qb_fdb_index() gives you nothing. that's the design. π«
and that's the page!! shoutout to perl v5.40.1, dated 2026-02-28, straight from the SNMP::...r3::H3C(3pm) manual β you read the whole thing, so that's a vibe check passed π
β¨πΈ mwah, go configure something. π
π¦ 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