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-MIBMIKROTIK-MIB
πΈ Inherited Classes' MIBs πΈ
- See
SNMP::Info::Layer3for 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::Layer3for 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::Layer3for 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
- 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