1SNMP::Info::Layer3::MikUrsoetrikC(o3n)tributed Perl DocuSmNeMnPt:a:tIinofno::Layer3::Mikrotik(3)
2
3
4
6 SNMP::Info::Layer3::Mikrotik - SNMP Interface to Mikrotik devices
7
9 Jeroen van Ingen initial version based on SNMP::Info::Layer3::NetSNMP
10 by Bradley Baetz and Bill Fenner
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $mikrotik = new SNMP::Info(
15 AutoSpecify => 1,
16 Debug => 1,
17 DestHost => 'myrouter',
18 Community => 'public',
19 Version => 2
20 )
21 or die "Can't connect to DestHost.\n";
22
23 my $class = $mikrotik->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 Subclass for Mikrotik devices
28
29 Inherited Classes
30 SNMP::Info::Layer3
31
32 Required MIBs
33 HOST-RESOURCES-MIB
34 MIKROTIK-MIB
35 Inherited Classes' MIBs
36 See SNMP::Info::Layer3 for its own MIB requirements.
37
39 These are methods that return scalar value from SNMP
40
41 $mikrotik->vendor()
42 Returns 'mikrotik'.
43
44 $mikrotik->os()
45 Returns 'routeros'.
46
47 $mikrotik->model()
48 Tries to extract the device model from "sysDescr".
49
50 $mikrotik->os_ver()
51 Returns the value of "mtxrLicVersion".
52
53 $mikrotik->os_level()
54 Returns the value of RouterOS level "mtxrLicLevel"
55
56 $mikrotik->board_temp()
57 $mikrotik->cpu_temp()
58 Returns the appropriate temperature values
59
60 $mikrotik->serial()
61 Returns the device serial.
62
63 $mikrotik->firmware()
64 Returns the firmware version of hardware.
65
66 Globals imported from SNMP::Info::Layer3
67 See documentation in SNMP::Info::Layer3 for details.
68
70 These are methods that return tables of information in the form of a
71 reference to a hash.
72
73 Overrides
74 None.
75
76 Table Methods imported from SNMP::Info::Layer3
77 See documentation in SNMP::Info::Layer3 for details.
78
79
80
81perl v5.32.0 2020-07-28 SNMP::Info::Layer3::Mikrotik(3)