SNMP::...krotik(3pm)

πŸ’– SNMP::Info::Layer3::Mikrotik πŸ’–

okay bestie, so this is the page for SNMP::...krotik(3pm) β€” that's the Perl doc for SNMP::Info::Layer3::Mikrotik, aka your SNMP interface to Mikrotik devices. yes it's a mouthful, no you don't have to say it out loud. πŸŽ€

✨ NAME ✨

SNMP::Info::Layer3::Mikrotik β€” the SNMP Interface to Mikrotik devices, babes. that's the whole vibe. πŸ¦‹

πŸ‘‘ AUTHORS πŸ‘‘

Jeroen van Ingen wrote the initial version, and it was based on SNMP::Info::Layer3::NetSNMP by Bradley Baetz and Bill Fenner. shoutout to the OGs, fr fr. 🫢

🌈 SYNOPSIS 🌈

here's how you actually use it, no cap:

# Let SNMP::Info determine the correct subclass for you.
my $mikrotik = new SNMP::Info(
                         AutoSpecify => 1,
                         Debug       => 1,
                         DestHost    => 'myrouter',
                         Community   => 'public',
                         Version     => 2
                       )
   or die "Can't connect to DestHost.\n";

my $class      = $mikrotik->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";

the way that AutoSpecify => 1 just finds the right subclass for you?? main character energy honestly. πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

bestie it's a subclass for Mikrotik devices. that's it, that's the description. lowkey iconic.

🧚 Inherited Classes 🧚

  • SNMP::Info::Layer3

πŸ’ Required MIBs πŸ’

  • HOST-RESOURCES-MIB
  • MIKROTIK-MIB

🌸 Inherited Classes' MIBs 🌸

  • See SNMP::Info::Layer3 for its own MIB requirements. yes bb, you gotta go read that one too, i don't make the rules. πŸ™ˆ

⭐ GLOBALS ⭐

these are methods that return scalar value from SNMP β€” little single-value lil guys, you know?

  • $mikrotik->vendor() β€” returns 'mikrotik'.
  • $mikrotik->os() β€” returns 'routeros'.
  • $mikrotik->model() β€” tries to extract the device model from "sysDescr". it's giving detective work. πŸ”
  • $mikrotik->os_ver() β€” returns the value of "mtxrLicVersion".
  • $mikrotik->os_level() β€” returns the value of RouterOS level "mtxrLicLevel".
  • $mikrotik->board_temp() / $mikrotik->cpu_temp() β€” returns the appropriate temperature values. temperature check but make it hardware πŸ”₯ (not the bad kind of πŸ”₯, hopefully)
  • $mikrotik->serial() β€” returns the device serial.
  • $mikrotik->firmware() β€” returns the firmware version of hardware.

πŸ¦‹ Globals imported from SNMP::Info::Layer3 πŸ¦‹

  • See documentation in SNMP::Info::Layer3 for details.

πŸŽ€ TABLE ENTRIES πŸŽ€

these are methods that return tables of information in the form of a reference to a hash. yes, a whole hashref, she's got range. πŸ’…

✨ Overrides ✨

None. nothing to see here, moving on bestie.

πŸ’– Table Methods imported from SNMP::Info::Layer3 πŸ’–

  • See documentation in SNMP::Info::Layer3 for details.

ok that's literally the whole page, you ate that πŸ’– go forth and poll your router, bestie. no cap. 🫢

this was perl v5.40.1 on 2026-02-28, mwah 😘

πŸ“¦ where this page comes from