1Info::Layer3::Timetra(3U)ser Contributed Perl DocumentatiIonnfo::Layer3::Timetra(3)
2
3
4
6 SNMP::Info::Layer3::Timetra - SNMP Interface to Alcatel-Lucent SR
7
9 Bill Fenner
10
12 # Let SNMP::Info determine the correct subclass for you.
13 my $alu = new SNMP::Info(
14 AutoSpecify => 1,
15 Debug => 1,
16 # These arguments are passed directly to SNMP::Session
17 DestHost => 'myswitch',
18 Community => 'public',
19 Version => 2
20 )
21 or die "Can't connect to DestHost.\n";
22
23 my $class = $alu->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 Subclass for Alcatel-Lucent Service Routers
28
29 Inherited Classes
30 SNMP::Info::Layer3
31
32 Required MIBs
33 TIMETRA-GLOBAL-MIB
34 Inherited Classes' MIBs
35 See "Required MIBs" in SNMP::Info::Layer3 for its own MIB
36 requirements.
37
39 These are methods that return scalar value from SNMP
40
41 $alu->vendor()
42 Returns 'alcatel-lucent'
43
44 $alu->os()
45 Returns 'TiMOS'
46
47 $alu->os_ver()
48 Grabs the version string from "sysDescr".
49
50 $alu->model()
51 Tries to reference $alu->id() to one of the product MIBs listed
52 above
53
54 Removes 'tmnxModel' from the name for readability.
55
56 Globals imported from SNMP::Info::Layer3
57 See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
58
60 These are methods that return tables of information in the form of a
61 reference to a hash.
62
63 $alu->interfaces()
64 Returns "ifName", since the default Layer3 "ifDescr" varies based
65 upon the transceiver inserted.
66
67 Table Methods imported from SNMP::Info::Layer3
68 See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
69
70
71
72perl v5.12.0 2009-06-12 Info::Layer3::Timetra(3)