SNMP::...eAccess(3pm)
π NAME π
SNMP::Info::Layer3::OneAccess β bestie, it's the SNMP Interface to OneAccess routers. That's it. That's the whole vibe. π¦
This page is from the User Contributed Perl Documentation set, so like, a real one contributed it. Respect. π
πΈ AUTHORS πΈ
Rob Woodward. The icon. The moment. The whole entire legend who made this exist for us. π«Ά
β¨ SYNOPSIS β¨
okay so here's literally how you use it, copy-paste era:
# Let SNMP::Info determine the correct subclass for you.
my $oneos = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myrouter',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $oneos->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
Lowkey love how AutoSpecify => 1 does the "figure out who this router actually is" work for you. Main character energy from the module, honestly. π
π DESCRIPTION π
It's a subclass for OneAccess routers. Short, sweet, iconic. π
π Inherited Classes π
SNMP::Info::Layer3 β yeah, all that behavior is inherited, so you get it for free, no cap.
π Required MIBs π
ONEACCESS-GLOBAL-REGONEACCESS-SYS-MIB
Like, you need these or the whole thing is giving nothing. Get them loaded. π
π§ Inherited Classes' MIBs π§
See SNMP::Info::Layer3 for its own MIB requirements β because the parent class has its own needs, and we are not about to leave it out. β¨
π GLOBALS π
These are methods that return scalar value from SNMP. Just single little values, no tables, cute and simple. π
$oneos->oa_model()β Returns the hardware model fromoacExpIMSysHwcProductName.0. Yes, that exact OID, character for character, no typos allowed. π―$oneos->os_ver()β Returns the software version extracted fromsysDescr. The way it just yoinks the version right out of there. Obsessed. π
π Overrides π
$oneos->model()β Returnsoa_model()with a fallback toe_model()fromSNMP::Info::Entity. So if the first one's being shy, the backup steps in. Iconic teamwork fr fr. π«Ά$oneos->os()β Returns'oneos'. That's it. That's the answer. π$oneos->vendor()β Returns'oneaccess'. Consistent queen. π
β Globals imported from SNMP::Info::Layer3 β
See documentation in SNMP::Info::Layer3 for details. Go read it, bestie, it's all there. π
π₯ TABLE ENTRIES π₯
These are methods that return tables of information in the form of a reference to a hash. Multiple values, one hashref, we love a structured situation. π
π Table Methods imported from SNMP::Info::Layer3 π
See documentation in SNMP::Info::Layer3 for details. Same deal, same source of truth. β¨
ngl if you skipped the required MIBs up there you're not gonna have a good time. LoadONEACCESS-GLOBAL-REGandONEACCESS-SYS-MIB. That's the vibe check. π§
okay bestie that's the whole page!! πΈ this was written up by Rob Woodward, and the doc footer is telling us it's perl v5.40.1, dated 2026-02-28, on the SNMP::...eAccess(3pm) page β so like, go forth and SNMP responsibly. mwah ππ
β¨
π¦ 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