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 the SIXNET-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