1SNMP::Info::Layer3::NetUsscerreeCno(n3t)ributed Perl DocSuNmMePn:t:aItnifoon::Layer3::Netscreen(3)
2
3
4
6 SNMP::Info::Layer3::Netscreen - SNMP Interface to Juniper Netscreen
7 Devices
8
10 Kent Hamilton
11
13 #Let SNMP::Info determine the correct subclass for you.
14
15 my $netscreen = new SNMP::Info(
16 AutoSpecify => 1,
17 Debug => 1,
18 DestHost => 'myswitch',
19 Community => 'public',
20 Version => 2
21 )
22
23 or die "Can't connect to DestHost.\n";
24
25 my $class = $netscreen->class();
26 print "SNMP::Info determined this device to fall under subclass : $class\n";
27
29 Provides abstraction to the configuration information obtainable from a
30 Juniper Netscreen device through SNMP.
31
32 Inherited Classes
33 SNMP::Info::Layer3
34 SNMP::Info::IEEE802dot11
35
36 Required MIBs
37 NETSCREEN-SMI
38 NETSCREEN-PRODUCTS-MIB
39 NETSCREEN-INTERFACE-MIB
40 NETSCREEN-SET-GEN-MIB
41 NETSCREEN-IP-ARP-MIB
42 Inherited Classes' MIBs
43 See "Required MIBs" in SNMP::Info::Layer3 for its MIB requirements.
44
45 See "Required MIBs" in SNMP::Info::IEEE802dot11 for its MIB
46 requirements.
47
49 These are methods that return scalar value from SNMP
50
51 $netscreen->model()
52 Tries to reference $netscreen->id() to NETSCREEN-PRODUCTS-MIB
53
54 $netscreen->vendor()
55 Returns 'juniper'
56
57 $netscreen->os()
58 Returns 'screenos'
59
60 $netscreen->os_ver()
61 Extracts the OS version from the description string.
62
63 $netscreen->serial()
64 Returns serial number.
65
66 Overrides
67 $netscreen->layers()
68 Returns 01001110. Device doesn't report layers properly, modified
69 to reflect Layer 2 and 3 functionality.
70
71 Globals imported from SNMP::Info::Layer3
72 See "GLOBALS" in SNMP::Info::Layer3 for details.
73
74 Globals imported from SNMP::Info::IEEE802dot11
75 See "GLOBALS" in SNMP::Info::IEEE802dot11 for details.
76
78 These are methods that return tables of information in the form of a
79 reference to a hash.
80
81 Overrides
82 Interface Information
83
84 $netscreen->interfaces()
85 Creates a map between the interface identifier (iid) and the
86 physical port name.
87
88 Defaults to "insIfDescr" if available, uses "nsIfName" if not.
89
90 $netscreen->i_description()
91 Description of the interface. Uses "insIfDescr" if available,
92 "nsIfName" if not.
93
94 $netscreen->i_index()
95 Default SNMP IID to Interface index.
96
97 ("nsIfIndex")
98
99 $netscreen->i_lastchange()
100 The value of "sysUpTime" when this port last changed states
101 (up,down), maps from "ifIndex" to "nsIfIndex".
102
103 ("ifLastChange")
104
105 $netscreen->i_mac()
106 MAC address of the interface. Note this is just the MAC of the
107 port, not anything connected to it. Uses "nsIfMAC" if available,
108 "ifPhysAddress" if not.
109
110 $netscreen->i_mtu()
111 INTEGER. Interface MTU value, maps from "ifIndex" to "nsIfIndex".
112
113 ("ifMtu")
114
115 $netscreen->i_name()
116 Interface Name field.
117
118 ("nsIfName")
119
120 $netscreen->i_speed()
121 Speed of the link, maps from "ifIndex" to "nsIfIndex".
122
123 $netscreen->i_type()
124 Interface type. Maps from "ifIndex" to "nsIfIndex".
125
126 ("ifType")
127
128 $netscreen->i_up()
129 Link Status of the interface. Typical values are 'up' and 'down'.
130
131 ("nsIfStatus")
132
133 $netscreen->i_up_admin()
134 Administrative status of the port. Checks both "ifAdminStatus" and
135 "nsIfStatus".
136
137 IP Address Table
138
139 Each entry in this table is an IP address in use on this device.
140
141 $netscreen->ip_index()
142 Maps the IP Table to the IID
143
144 $netscreen->ip_table()
145 Maps the Table to the IP address
146
147 ("nsIfIp")
148
149 $netscreen->ip_netmask()
150 Gives netmask setting for IP table entry.
151
152 ("nsIfNetmask")
153
154 Forwarding Table
155
156 Uses "nsIpArpTable" to emulate the forwarding table.
157
158 $netscreen->fw_index()
159 Maps the Forwarding Table to the IID
160
161 $netscreen->fw_mac()
162 Returns reference to hash of forwarding table MAC Addresses.
163
164 $netscreen->fw_port()
165 Returns reference to hash of forwarding table entries port
166 interface identifier (IID).
167
168 $netscreen->bp_index()
169 Returns reference to hash of bridge port table entries map back to
170 interface identifier (IID).
171
172 Arp Cache Table
173 $netscreen->at_index()
174 Returns reference to hash. Maps ARP table entries to Interface
175 IIDs
176
177 If the device doesn't support "ipNetToMediaIfIndex", this will try
178 the proprietary "nsIpArpIfIdx".
179
180 $netscreen->at_paddr()
181 Returns reference to hash. Maps ARP table entries to MAC
182 addresses.
183
184 If the device doesn't support "ipNetToMediaPhysAddress", this will
185 try the proprietary "nsIpArpMac".
186
187 $netscreen->at_netaddr()
188 Returns reference to hash. Maps ARP table entries to IP addresses.
189
190 If the device doesn't support "ipNetToMediaNetAddress", this will
191 try the proprietary "nsIpArpIp".
192
193 Wireless Information
194
195 $dot11->i_ssidlist()
196 Returns reference to hash. SSID's recognized by the radio
197 interface. Remaps from "ifIndex" to "nsIfIndex".
198
199 ("dot11DesiredSSID")
200
201 $dot11->i_80211channel()
202 Returns reference to hash. Current operating frequency channel of
203 the radio interface. Remaps from "ifIndex" to "nsIfIndex".
204
205 Table Methods imported from SNMP::Info::Layer3
206 See "TABLE METHODS" in SNMP::Info::Layer3 for details.
207
208 Table Methods imported from SNMP::Info::IEEE802dot11
209 See "TABLE METHODS" in SNMP::Info::IEEE802dot11 for details.
210
211
212
213perl v5.36.1 2023-07-17 SNMP::Info::Layer3::Netscreen(3)