SNMP::...tscreen(3pm)
π NAME π
okay so you clicked into the manual page for SNMP::...tscreen(3pm) (the header squished the name, but the real one is right here bestie π)
SNMP::Info::Layer3::Netscreen β an SNMP interface to Juniper Netscreen devices β¨
π AUTHOR π
Kent Hamilton π
β¨ SYNOPSIS β¨
#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";
likeβ¦ the vibe is: you let SNMP::Info sniff out the correct subclass all by itself, and if it can't reach your box it just dies with Can't connect to DestHost.\n. no notes. π
πΈ DESCRIPTION πΈ
It gives you an abstraction β a whole cute little layer β over all the configuration info you can pull off a Juniper Netscreen device through SNMP. that's the assignment and it ate. π
π¦ Inherited Classes π¦
SNMP::Info::Layer3SNMP::Info::IEEE802dot11
π Required MIBs π
NETSCREEN-SMINETSCREEN-PRODUCTS-MIBNETSCREEN-INTERFACE-MIBNETSCREEN-SET-GEN-MIBNETSCREEN-IP-ARP-MIB
π Inherited Classes' MIBs
See "Required MIBs" in SNMP::Info::Layer3 for its MIB requirements.
See "Required MIBs" in SNMP::Info::IEEE802dot11 for its MIB requirements.
(yes bestie, you need the MIBs from the parents too, they don't come free π«Ά)
π GLOBALS π
These are methods that return scalar value from SNMP β one value, no table energy, just a straight answer. β¨
$netscreen->model()β tries to reference$netscreen->id()toNETSCREEN-PRODUCTS-MIB$netscreen->vendor()β returns'juniper'$netscreen->os()β returns'screenos'$netscreen->os_ver()β extracts the OS version from the description string. π΅οΈββοΈ$netscreen->serial()β returns serial number.
π Overrides π
$netscreen->layers()β returns01001110. the device doesn't report layers properly, so this was modified to reflect Layer 2 and 3 functionality. lowkey iconic that it just lies and we handle it π
π Globals imported from SNMP::Info::Layer3 π
See "GLOBALS" in SNMP::Info::Layer3 for details.
π Globals imported from SNMP::Info::IEEE802dot11 π
See "GLOBALS" in SNMP::Info::IEEE802dot11 for details.
π¦ TABLE METHODS π¦
These are methods that return tables of information in the form of a reference to a hash. hashes on hashes on hashes, we love to see it π
π Overrides π
π Interface Information π
$netscreen->interfaces()β creates a map between the interface identifier (iid) and the physical port name.
Defaults to "insIfDescr" if available, uses "nsIfName" if not.
$netscreen->i_description()β description of the interface. Uses"insIfDescr"if available,"nsIfName"if not.$netscreen->i_index()β default SNMP IID to Interface index.
("nsIfIndex")
$netscreen->i_lastchange()β the value of"sysUpTime"when this port last changed states (up,down), maps from"ifIndex"to"nsIfIndex".
("ifLastChange")
$netscreen->i_mac()β 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. π$netscreen->i_mtu()β INTEGER. Interface MTU value, maps from"ifIndex"to"nsIfIndex".
("ifMtu")
$netscreen->i_name()β Interface Name field.
("nsIfName")
$netscreen->i_speed()β speed of the link, maps from"ifIndex"to"nsIfIndex".$netscreen->i_type()β interface type. maps from"ifIndex"to"nsIfIndex".
("ifType")
$netscreen->i_up()β link status of the interface. typical values are'up'and'down'. vibe check on the cable fr fr π₯
("nsIfStatus")
$netscreen->i_up_admin()β administrative status of the port. checks both"ifAdminStatus"and"nsIfStatus".
π IP Address Table π
Each entry in this table is an IP address in use on this device. π
$netscreen->ip_index()β maps the IP Table to the IID$netscreen->ip_table()β maps the Table to the IP address
("nsIfIp")
$netscreen->ip_netmask()β gives netmask setting for IP table entry.
("nsIfNetmask")
π Forwarding Table π
Uses "nsIpArpTable" to emulate the forwarding table. it's giving borrowed-but-make-it-work π
$netscreen->fw_index()β maps the Forwarding Table to the IID$netscreen->fw_mac()β returns reference to hash of forwarding table MAC Addresses.$netscreen->fw_port()β returns reference to hash of forwarding table entries port interface identifier (IID).$netscreen->bp_index()β returns reference to hash of bridge port table entries map back to interface identifier (IID).
πΈ Arp Cache Table πΈ
$netscreen->at_index()β returns reference to hash. maps ARP table entries to Interface IIDs
If the device doesn't support "ipNetToMediaIfIndex", this will try the proprietary "nsIpArpIfIdx".
$netscreen->at_paddr()β returns reference to hash. maps ARP table entries to MAC addresses.
If the device doesn't support "ipNetToMediaPhysAddress", this will try the proprietary "nsIpArpMac".
$netscreen->at_netaddr()β returns reference to hash. maps ARP table entries to IP addresses.
If the device doesn't support "ipNetToMediaNetAddress", this will try the proprietary "nsIpArpIp".
π Wireless Information π
(yeah bestie it's nested in here under Arp Cache β that's just where the page puts it, we don't make the rules π« )
$dot11->i_ssidlist()β returns reference to hash. SSID's recognized by the radio interface. remaps from"ifIndex"to"nsIfIndex".
("dot11DesiredSSID")
$dot11->i_80211channel()β returns reference to hash. current operating frequency channel of the radio interface. remaps from"ifIndex"to"nsIfIndex".
π Table Methods imported from SNMP::Info::Layer3 π
See "TABLE METHODS" in SNMP::Info::Layer3 for details.
π Table Methods imported from SNMP::Info::IEEE802dot11 π
See "TABLE METHODS" in SNMP::Info::IEEE802dot11 for details.
and that's the whole page, you're caught up bestie π«Ά this gem is from perl v5.40.1, dated 2026-02-28, and it's part of the User Contributed Perl Documentation β go be the main character in your SNMP stack now πβ¨π
π¦ where this page comes from
- ubuntu stonking: libsnmp-info-perl 3.975000-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms