1SNMP::Info::Layer3::JunUispeerr(C3o)ntributed Perl DocumSeNnMtPa:t:iIonnfo::Layer3::Juniper(3)
2
3
4
6 SNMP::Info::Layer3::Juniper - SNMP Interface to L3 Juniper Devices
7
9 Bill Fenner
10
12 # Let SNMP::Info determine the correct subclass for you.
13 my $juniper = new SNMP::Info(
14 AutoSpecify => 1,
15 Debug => 1,
16 DestHost => 'myrouter',
17 Community => 'public',
18 Version => 2
19 )
20 or die "Can't connect to DestHost.\n";
21
22 my $class = $juniper->class();
23 print "SNMP::Info determined this device to fall under subclass : $class\n";
24
26 Subclass for Juniper Devices running JUNOS
27
28 Inherited Classes
29 SNMP::Info::Layer3
30
31 Required MIBs
32 JUNIPER-VLAN-MIB dated "200901090000Z" or later.
33 JUNIPER-CHASSIS-DEFINES-MIB
34 JUNIPER-MIB
35 JUNIPER-VIRTUALCHASSIS-MIB
36 JUNIPER-L2ALD-MIB
37
38 Inherited Classes' MIBs
39 See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.
40
42 These are methods that return scalar value from SNMP
43
44 $juniper->vendor()
45 Returns 'juniper'
46
47 $juniper->os()
48 Returns 'junos'
49
50 $juniper->layers()
51 Checks forwarding table for Layer 2 support since some routers with
52 switches do not report layers properly.
53
54 $juniper->os_ver()
55 Returns the software version extracted first from "sysDescr" or
56 "lldpLocSysDesc" if not available in "sysDescr".
57
58 $juniper->model()
59 Returns the model from "sysObjectID", with "jnxProductName" removed
60 from the beginning.
61
62 $juniper->serial()
63 Returns serial number
64
65 ("jnxBoxSerialNo")
66
67 $juniper->mac()
68 Returns the MAC address used by this bridge when it must be
69 referred to in a unique fashion.
70
71 ("dot1dBaseBridgeAddress")
72
73 $juniper->box_descr()
74 The name, model, or detailed description of the device.
75
76 ("jnxBoxDescr")
77
78 $juniper->version()
79 ("jnxVirtualChassisMemberSWVersion")
80
81 $juniper->vc_model()
82 ("jnxVirtualChassisMemberModel")
83
84 Globals imported from SNMP::Info::Layer3
85 See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
86
88 These are methods that return tables of information in the form of a
89 reference to a hash.
90
91 $juniper->qb_fdb_index()
92 Returns reference to hash: key = FDB ID, value = VLAN ID.
93
94 $juniper->v_index()
95 Returns ("jnxL2aldVlanTag") or ("jnxExVlanTag") depending upon
96 switch software version
97
98 $juniper->v_name()
99 Returns ("jnxL2aldVlanName") or ("jnxExVlanName") depending upon
100 switch software version
101
102 $juniper->v_type()
103 Returns ("jnxL2aldVlanType") or ("jnxExVlanType") depending upon
104 switch software version
105
106 $juniper->i_trunk()
107 ("jnxExVlanPortAccessMode")
108
109 $juniper->i_vlan()
110 Returns a mapping between "ifIndex" and the PVID or default VLAN.
111
112 $juniper->i_vlan_membership()
113 Returns reference to hash of arrays: key = "ifIndex", value = array
114 of VLAN IDs. These are the VLANs which are members of the egress
115 list for the port.
116
117 $juniper->i_vlan_membership_untagged()
118 Returns reference to hash of arrays: key = "ifIndex", value = array
119 of VLAN IDs. These are the VLANs which are members of the untagged
120 egress list for the port.
121
122 $juniper->peth_port_ifindex()
123 Returns reference to a hash: key= PowerEthernet MIB interface
124 number, value = "ifIndex". As Juniper does not provide a mapping
125 function, this does it manually. For example, ge-0/0/1 registers
126 as PowerEthernet interface '1.2'
127
128 Pseudo ENTITY-MIB information
129 These methods emulate ENTITY-MIB Physical Table methods using JUNIPER-
130 MIB and JUNIPER-VIRTUALCHASSIS-MIB.
131
132 $juniper->e_index()
133 Returns reference to hash. Key: IID, Value: Integer, Indices are
134 combined into a eight digit integer, each index is two digits
135 padded with leading zero if required.
136
137 $juniper->e_class()
138 Returns reference to hash. Key: IID, Value: General hardware type.
139
140 $juniper->e_descr()
141 Returns reference to hash. Key: IID, Value: Human friendly name
142
143 $juniper->e_hwver()
144 Returns reference to hash. Key: IID, Value: Hardware version
145
146 $juniper->e_vendor()
147 Returns reference to hash. Key: IID, Value: juniper
148
149 $juniper->e_serial()
150 Returns reference to hash. Key: IID, Value: Serial number
151
152 $juniper->e_pos()
153 Returns reference to hash. Key: IID, Value: The relative position
154 among all entities sharing the same parent.
155
156 $juniper->e_type()
157 Returns reference to hash. Key: IID, Value: Type of
158 component/sub-component as defined in JUNIPER-CHASSIS-DEFINES-MIB.
159
160 $juniper->e_parent()
161 Returns reference to hash. Key: IID, Value: The value of e_index()
162 for the entity which 'contains' this entity. A value of zero
163 indicates this entity is not contained in any other entity.
164
165 $entity->e_fru()
166 BOOLEAN. Is a Field Replaceable unit?
167
168 ("entPhysicalFRU")
169
170 Table Methods imported from SNMP::Info::Layer3
171 See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
172
173
174
175perl v5.34.0 2022-01-21 SNMP::Info::Layer3::Juniper(3)