SNMP::Info::Layer3::Netscreen - SNMP Interface to Juniper Netscreen Devices
Kent Hamilton
#Let SNMP::Info determine the correct subclass for you. my $netscreen = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $netscreen->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Provides abstraction to the configuration information obtainable from a Juniper Netscreen devices through SNMP.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $netscreen = new SNMP::Info::Layer3::Netscreen(...);
See "Required MIBs" in SNMP::Info::Layer3 for its MIB requirements.
See "Required MIBs" in SNMP::Info::IEEE802dot11 for its MIB requirements.
These are methods that return scalar value from SNMP
Tries to reference $netscreen->id() to NETSCREEN-PRODUCTS-MIB
Returns 'juniper'
'juniper'
Returns 'screenos'
'screenos'
Extracts the OS version from the description string.
Returns serial number.
Returns 01001110. Device doesn't report layers properly, modified to reflect Layer 2 and 3 functionality.
See "GLOBALS" in SNMP::Info::Layer3 for details.
See "GLOBALS" in SNMP::Info::IEEE802dot11 for details.
These are methods that return tables of information in the form of a reference to a hash.
Creates a map between the interface identifier (iid) and the physical port name.
Defaults to insIfDescr if available, uses nsIfName if not.
insIfDescr
nsIfName
Description of the interface. Uses insIfDescr if available, nsIfName if not.
Returns without defining any interfaces to ignore.
Default SNMP IID to Interface index.
(nsIfIndex)
nsIfIndex
The value of sysUpTime when this port last changed states (up,down), maps from ifIndex to nsIfIndex.
sysUpTime
ifIndex
(ifLastChange)
ifLastChange
MAC address of the interface. Note this is just the MAC of the port, not anything connected to it. Uses nsIfMAC if available, ifPhysAddress if not.
nsIfMAC
ifPhysAddress
INTEGER. Interface MTU value, maps from ifIndex to nsIfIndex.
(ifMtu)
ifMtu
Interface Name field.
(nsIfName)
Speed of the link, maps from ifIndex to nsIfIndex.
Interface type. Maps from ifIndex to nsIfIndex.
(ifType)
ifType
Link Status of the interface. Typical values are 'up' and 'down'.
(nsIfStatus)
nsIfStatus
Administrative status of the port. Checks both ifAdminStatus and nsIfStatus.
ifAdminStatus
Each entry in this table is an IP address in use on this device.
Maps the IP Table to the IID
Maps the Table to the IP address
(nsIfIp)
nsIfIp
Gives netmask setting for IP table entry.
(nsIfNetmask)
nsIfNetmask
Uses nsIpArpTable to emulate the forwarding table.
nsIpArpTable
Maps the Forwarding Table to the IID
Returns reference to hash of forwarding table MAC Addresses.
Returns reference to hash of forwarding table entries port interface identifier (IID).
Returns reference to hash of bridge port table entries map back to interface identifier (IID).
Returns reference to hash. Maps ARP table entries to Interface IIDs
If the device doesn't support ipNetToMediaIfIndex, this will try the proprietary nsIpArpIfIdx.
ipNetToMediaIfIndex
nsIpArpIfIdx
Returns reference to hash. Maps ARP table entries to MAC addresses.
If the device doesn't support ipNetToMediaPhysAddress, this will try the proprietary nsIpArpMac.
ipNetToMediaPhysAddress
nsIpArpMac
Returns reference to hash. Maps ARP table entries to IP addresses.
If the device doesn't support ipNetToMediaNetAddress, this will try the proprietary nsIpArpIp.
ipNetToMediaNetAddress
nsIpArpIp
Returns reference to hash. SSID's recognized by the radio interface. Remaps from ifIndex to nsIfIndex.
(dot11DesiredSSID)
dot11DesiredSSID
Returns reference to hash. Current operating frequency channel of the radio interface. Remaps from ifIndex to nsIfIndex.
See "TABLE METHODS" in SNMP::Info::Layer3 for details.
See "TABLE METHODS" in SNMP::Info::IEEE802dot11 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.