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() =item $mikrotik->cpu_temp()
57 Returns the appropriate temperature values
58
59 $mikrotik->serial()
60 Returns the device serial.
61
62 $mikrotik->firmware()
63 Returns the firmware version of hardware.
64
65 Globals imported from SNMP::Info::Layer3
66 See documentation in SNMP::Info::Layer3 for details.
67
69 These are methods that return tables of information in the form of a
70 reference to a hash.
71
72 Overrides
73 None.
74
75 Table Methods imported from SNMP::Info::Layer3
76 See documentation in SNMP::Info::Layer3 for details.
77
78
79
80perl v5.28.0 2018-11-29 SNMP::Info::Layer3::Mikrotik(3)