SNMP::Info::Layer3::Juniper - SNMP Interface to L3 Juniper Devices
Bill Fenner
# Let SNMP::Info determine the correct subclass for you. my $juniper = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myrouter', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $juniper->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Subclass for Juniper Devices running JUNOS
See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.
See "Required MIBs" in SNMP::Info::LLDP for its own MIB requirements.
These are methods that return scalar value from SNMP
Returns 'juniper'
Returns 'junos'
Checks forwarding table for Layer 2 support since some routers with switches do not report layers properly.
Returns the software version extracted first from sysDescr or lldpLocSysDesc if not available in sysDescr.
sysDescr
lldpLocSysDesc
Returns the model from sysObjectID, with jnxProductName removed from the beginning.
sysObjectID
jnxProductName
Returns serial number
(jnxBoxSerialNo)
jnxBoxSerialNo
Returns the MAC address used by this bridge when it must be referred to in a unique fashion.
(dot1dBaseBridgeAddress)
dot1dBaseBridgeAddress
The name, model, or detailed description of the device.
(jnxBoxDescr)
jnxBoxDescr
(jnxVirtualChassisMemberSWVersion)
jnxVirtualChassisMemberSWVersion
(jnxVirtualChassisMemberModel)
jnxVirtualChassisMemberModel
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
See documentation in "GLOBALS" in SNMP::Info::LLDP for details.
These are methods that return tables of information in the form of a reference to a hash.
Returns reference to hash: key = FDB ID, value = VLAN ID.
Returns (jnxL2aldVlanTag) or (jnxExVlanTag) depending upon switch software version
jnxL2aldVlanTag
jnxExVlanTag
Returns (jnxL2aldVlanName) or (jnxExVlanName) depending upon switch software version
jnxL2aldVlanName
jnxExVlanName
Returns (jnxL2aldVlanType) or (jnxExVlanType) depending upon switch software version
jnxL2aldVlanType
jnxExVlanType
(jnxExVlanPortAccessMode)
jnxExVlanPortAccessMode
Returns a mapping between ifIndex and the PVID or default VLAN.
ifIndex
Returns reference to hash of arrays: key = ifIndex, value = array of VLAN IDs. These are the VLANs which are members of the egress list for the port.
Returns reference to hash of arrays: key = ifIndex, value = array of VLAN IDs. These are the VLANs which are members of the untagged egress list for the port.
Returns reference to a hash: key= PowerEthernet MIB interface number, value = ifIndex. As Juniper does not provide a mapping function, this does it manually. For example, ge-0/0/1 registers as PowerEthernet interface '1.2'
These methods emulate ENTITY-MIB Physical Table methods using JUNIPER-MIB and JUNIPER-VIRTUALCHASSIS-MIB.
Returns reference to hash. Key: IID, Value: Integer, Indices are combined into a eight digit integer, each index is two digits padded with leading zero if required.
Returns reference to hash. Key: IID, Value: General hardware type.
Returns reference to hash. Key: IID, Value: Human friendly name
Returns reference to hash. Key: IID, Value: Hardware version
Returns reference to hash. Key: IID, Value: juniper
Returns reference to hash. Key: IID, Value: Serial number
Returns reference to hash. Key: IID, Value: The relative position among all entities sharing the same parent.
Returns reference to hash. Key: IID, Value: Type of component/sub-component as defined in JUNIPER-CHASSIS-DEFINES-MIB.
Returns reference to hash. Key: IID, Value: The value of e_index() for the entity which 'contains' this entity. A value of zero indicates this entity is not contained in any other entity.
BOOLEAN. Is a Field Replaceable unit?
(entPhysicalFRU)
entPhysicalFRU
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
See documentation in "TABLE METHODS" in SNMP::Info::LLDP for details.
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.