1SNMP::Info::Layer3::VyOUSs(e3r)Contributed Perl DocumentSaNtMiPo:n:Info::Layer3::VyOS(3)
2
3
4
6 SNMP::Info::Layer3::VyOS - SNMP Interface to Vyatta Devices
7
9 # Let SNMP::Info determine the correct subclass for you.
10 my $vyos = new SNMP::Info(
11 AutoSpecify => 1,
12 Debug => 1,
13 DestHost => 'myrouter',
14 Community => 'public',
15 Version => 2
16 )
17 or die "Can't connect to DestHost.\n";
18
19 my $class = $vyos->class();
20 print "SNMP::Info determined this device to fall under subclass : $class\n";
21
23 Subclass for Vyatta Devices running VyOS.
24
25 Inherited Classes
26 SNMP::Info::Layer3
27
28 Inherited Classes' MIBs
29 See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.
30
32 These are methods that return scalar value from SNMP
33
34 $vyos->layers()
35 Returns support for 3, 4 and 7.
36
37 $vyos->os()
38 Returns 'VyOS' or 'Vyatta'.
39
40 $vyos->model()
41 Returns the OS.
42
43 $vyos->vendor()
44 Returns the OS.
45
46 $vyos->os_ver()
47 Returns the software version extracted from "sysDescr".
48
49 $vyos->serial()
50 Returns serial number.
51
52 Globals imported from SNMP::Info::Layer3
53 See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
54
56 Table Methods imported from SNMP::Info::Layer3
57 See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
58
59
60
61perl v5.34.0 2021-09-13 SNMP::Info::Layer3::VyOS(3)