1SNMP::Info::Layer3::JunUispeerr(C3o)ntributed Perl DocumSeNnMtPa:t:iIonnfo::Layer3::Juniper(3)
2
3
4

NAME

6       SNMP::Info::Layer3::Juniper - SNMP Interface to L3 Juniper Devices
7

AUTHOR

9       Bill Fenner
10

SYNOPSIS

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

DESCRIPTION

26       Subclass for Juniper Devices running JUNOS
27
28   Inherited Classes
29       SNMP::Info::Layer3
30       SNMP::Info::LLDP
31
32   Required MIBs
33       JUNIPER-VLAN-MIB dated "200901090000Z" or later.
34       JUNIPER-CHASSIS-DEFINES-MIB
35       JUNIPER-MIB
36       JUNIPER-VIRTUALCHASSIS-MIB
37       JUNIPER-L2ALD-MIB
38
39   Inherited Classes' MIBs
40       See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.
41
42       See "Required MIBs" in SNMP::Info::LLDP for its own MIB requirements.
43

GLOBALS

45       These are methods that return scalar value from SNMP
46
47       $juniper->vendor()
48           Returns 'juniper'
49
50       $juniper->os()
51           Returns 'junos'
52
53       $juniper->layers()
54           Checks forwarding table for Layer 2 support since some routers with
55           switches do not report layers properly.
56
57       $juniper->os_ver()
58           Returns the software version extracted first from "sysDescr" or
59           "lldpLocSysDesc" if not available in "sysDescr".
60
61       $juniper->model()
62           Returns the model from "sysObjectID", with "jnxProductName" removed
63           from the beginning.
64
65       $juniper->serial()
66           Returns serial number
67
68           ("jnxBoxSerialNo")
69
70       $juniper->mac()
71           Returns the MAC address used by this bridge when it must be
72           referred to in a unique fashion.
73
74           ("dot1dBaseBridgeAddress")
75
76       $juniper->box_descr()
77           The name, model, or detailed description of the device.
78
79           ("jnxBoxDescr")
80
81       $juniper->version()
82           ("jnxVirtualChassisMemberSWVersion")
83
84       $juniper->vc_model()
85           ("jnxVirtualChassisMemberModel")
86
87   Globals imported from SNMP::Info::Layer3
88       See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
89
90   Global Methods imported from SNMP::Info::LLDP
91       See documentation in "GLOBALS" in SNMP::Info::LLDP for details.
92

TABLE METHODS

94       These are methods that return tables of information in the form of a
95       reference to a hash.
96
97       $juniper->qb_fdb_index()
98           Returns reference to hash: key = FDB ID, value = VLAN ID.
99
100       $juniper->v_index()
101           Returns ("jnxL2aldVlanTag") or ("jnxExVlanTag") depending upon
102           switch software version
103
104       $juniper->v_name()
105           Returns ("jnxL2aldVlanName") or ("jnxExVlanName") depending upon
106           switch software version
107
108       $juniper->v_type()
109           Returns ("jnxL2aldVlanType") or ("jnxExVlanType") depending upon
110           switch software version
111
112       $juniper->i_trunk()
113           ("jnxExVlanPortAccessMode")
114
115       $juniper->i_vlan()
116           Returns a mapping between "ifIndex" and the PVID or default VLAN.
117
118       $juniper->i_vlan_membership()
119           Returns reference to hash of arrays: key = "ifIndex", value = array
120           of VLAN IDs.  These are the VLANs which are members of the egress
121           list for the port.
122
123       $juniper->i_vlan_membership_untagged()
124           Returns reference to hash of arrays: key = "ifIndex", value = array
125           of VLAN IDs.  These are the VLANs which are members of the untagged
126           egress list for the port.
127
128       $juniper->peth_port_ifindex()
129           Returns reference to a hash: key= PowerEthernet MIB interface
130           number, value = "ifIndex". As Juniper does not provide a mapping
131           function, this does it manually.  For example, ge-0/0/1 registers
132           as PowerEthernet interface '1.2'
133
134   Pseudo ENTITY-MIB information
135       These methods emulate ENTITY-MIB Physical Table methods using JUNIPER-
136       MIB and JUNIPER-VIRTUALCHASSIS-MIB.
137
138       $juniper->e_index()
139           Returns reference to hash.  Key: IID, Value: Integer, Indices are
140           combined into a eight digit integer, each index is two digits
141           padded with leading zero if required.
142
143       $juniper->e_class()
144           Returns reference to hash.  Key: IID, Value: General hardware type.
145
146       $juniper->e_descr()
147           Returns reference to hash.  Key: IID, Value: Human friendly name
148
149       $juniper->e_hwver()
150           Returns reference to hash.  Key: IID, Value: Hardware version
151
152       $juniper->e_vendor()
153           Returns reference to hash.  Key: IID, Value: juniper
154
155       $juniper->e_serial()
156           Returns reference to hash.  Key: IID, Value: Serial number
157
158       $juniper->e_pos()
159           Returns reference to hash.  Key: IID, Value: The relative position
160           among all entities sharing the same parent.
161
162       $juniper->e_type()
163           Returns reference to hash.  Key: IID, Value: Type of
164           component/sub-component as defined in JUNIPER-CHASSIS-DEFINES-MIB.
165
166       $juniper->e_parent()
167           Returns reference to hash.  Key: IID, Value: The value of e_index()
168           for the entity which 'contains' this entity.  A value of zero
169           indicates  this entity is not contained in any other entity.
170
171       $entity->e_fru()
172           BOOLEAN. Is a Field Replaceable unit?
173
174           ("entPhysicalFRU")
175
176   Table Methods imported from SNMP::Info::Layer3
177       See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
178
179   Table Methods imported from SNMP::Info::LLDP
180       See documentation in "TABLE METHODS" in SNMP::Info::LLDP for details.
181
182
183
184perl v5.28.0                      2018-11-29    SNMP::Info::Layer3::Juniper(3)
Impressum