SNMP::...Sixnet(3pm)
π SNMP::...Sixnet(3pm) π
okay bestie, welcome to the User Contributed Perl Documentation glow-up of SNMP::...Sixnet(3pm) β yes that's the manual section, yes the name has three dots in it, we don't ask questions, we just vibe π¦
β¨ NAME β¨
SNMP::Info::Layer2::Sixnet β the SNMP Interface to Sixnet industrial switches. that's it, that's the whole name, it's giving exactly what it says on the tin π
π AUTHOR π
Eric Miller. thank you for your service, king π«Ά
πΈ SYNOPSIS πΈ
okay so here's the whole moment, copy it exactly, don't freestyle it:
my $sixnet = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $sixnet->class();
print " Using device sub class : $class\n";
notice that or die at the end?? yeah, if you can't connect to DestHost you literally die, no cap. that's not a suggestion bestie, that's the flow π
π DESCRIPTION π
so SNMP::Info::Layer2::Sixnet is a subclass of SNMP::Info that gives you an interface to Sixnet industrial switches. industrial!! like, switches that go in factories and stuff, not your little home router. main character energy fr fr π₯
π§ Inherited Classes π§
SNMP::Info::Layer2
that's the one, that's the lineage, it inherited its whole personality β¨
π Required MIBs π
SIXNET-MIB
you need this one, it's non-negotiable, the whole thing runs on it π
π¦ Inherited MIBs π¦
peep "Required MIBs" in SNMP::Info::Layer2 for what that class needs, because we're a subclass and we inherit the whole MIB situation, iykyk π
β GLOBALS β
these are the methods that hand you back a scalar value straight from SNMP. lil one-value cuties, one per call πΈ
- $sixnet->vendor() β returns
'sixnet'. iconic, no notes π - $sixnet->os() β returns
'sixnet'. again, consistent queen π - $sixnet->os_ver() β returns the software version that
"firmwareRevision"hands back. whatever firmware says, that's what you get π - $sixnet->model() β returns the model type. if
"sxid"exists it just returns that, easy. otherwise it cross references$sixnet->id()against theSIXNET-MIB. two paths, one answer, slay β¨ - $sixnet->ps1_status() β (
"p1status"). that's the whole description bestie, it returns the p1 status, we keep it exact π«Ά - $sixnet->ps2_status() β (
"p2status"). and here's the p2 one, matching energy π
π« Globals imported from SNMP::Info::Layer2 π«
the rest of the globals come pre-loaded from SNMP::Info::Layer2, so bounce over to "GLOBALS" in SNMP::Info::Layer2 for the deets π
π₯ TABLE METHODS π₯
these ones don't do lil scalars β they return tables of information, in the form of a reference to a hash. big data energy, hash refs only π€
π Table Methods imported from SNMP::Info::Layer2 π
the table methods are inherited from SNMP::Info::Layer2, so check "TABLE METHODS" in SNMP::Info::Layer2 for details. we don't reinvent the table, we inherit the table, periodt π
fr fr reminder bestie: the scalar methods live under GLOBALS, the hash-ref ones live under TABLE METHODS, and if you need more you go read the parent class doc. that's the whole assignment π
made with π by perl v5.40.1, dated 2026-02-28, and yeah the page itself is titled SNMP::...Sixnet(3pm) β three dots and all, we love her for it. go forth and SNMP, bestie π¦β¨
π¦ 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