1SNMP::Info::Layer3::NetUsscerreeCno(n3t)ributed Perl DocSuNmMePn:t:aItnifoon::Layer3::Netscreen(3)
2
3
4

NAME

6       SNMP::Info::Layer3::Netscreen - SNMP Interface to Juniper Netscreen
7       Devices
8

AUTHOR

10       Kent Hamilton
11

SYNOPSIS

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

DESCRIPTION

29       Provides abstraction to the configuration information obtainable from a
30       Juniper Netscreen devices through SNMP.
31
32       For speed or debugging purposes you can call the subclass directly, but
33       not after determining a more specific class using the method above.
34
35       my $netscreen = new SNMP::Info::Layer3::Netscreen(...);
36
37   Inherited Classes
38       SNMP::Info::Layer3
39       SNMP::Info::IEEE802dot11
40
41   Required MIBs
42       NETSCREEN-SMI
43       NETSCREEN-PRODUCTS-MIB
44       NETSCREEN-INTERFACE-MIB
45       NETSCREEN-SET-GEN-MIB
46       NETSCREEN-IP-ARP-MIB
47       Inherited Classes' MIBs
48           See "Required MIBs" in SNMP::Info::Layer3 for its MIB requirements.
49
50           See "Required MIBs" in SNMP::Info::IEEE802dot11 for its MIB
51           requirements.
52

GLOBALS

54       These are methods that return scalar value from SNMP
55
56       $netscreen->model()
57           Tries to reference $netscreen->id() to NETSCREEN-PRODUCTS-MIB
58
59       $netscreen->vendor()
60           Returns 'juniper'
61
62       $netscreen->os()
63           Returns 'screenos'
64
65       $netscreen->os_ver()
66           Extracts the OS version from the description string.
67
68       $netscreen->serial()
69           Returns serial number.
70
71   Overrides
72       $netscreen->layers()
73           Returns 01001110.  Device doesn't report layers properly, modified
74           to reflect Layer 2 and 3 functionality.
75
76   Globals imported from SNMP::Info::Layer3
77       See "GLOBALS" in SNMP::Info::Layer3 for details.
78
79   Globals imported from SNMP::Info::IEEE802dot11
80       See "GLOBALS" in SNMP::Info::IEEE802dot11 for details.
81

TABLE METHODS

83       These are methods that return tables of information in the form of a
84       reference to a hash.
85
86   Overrides
87       Interface Information
88
89       $netscreen->interfaces()
90           Creates a map between the interface identifier (iid) and the
91           physical port name.
92
93           Defaults to "insIfDescr" if available, uses "nsIfName" if not.
94
95       $netscreen->i_description()
96           Description of the interface. Uses "insIfDescr" if available,
97           "nsIfName" if not.
98
99       $netscreen->i_ignore()
100           Returns without defining any interfaces to ignore.
101
102       $netscreen->i_index()
103           Default SNMP IID to Interface index.
104
105           ("nsIfIndex")
106
107       $netscreen->i_lastchange()
108           The value of "sysUpTime" when this port last changed states
109           (up,down), maps from "ifIndex" to "nsIfIndex".
110
111           ("ifLastChange")
112
113       $netscreen->i_mac()
114           MAC address of the interface.  Note this is just the MAC of the
115           port, not anything connected to it.  Uses "nsIfMAC" if available,
116           "ifPhysAddress" if not.
117
118       $netscreen->i_mtu()
119           INTEGER. Interface MTU value, maps from "ifIndex" to "nsIfIndex".
120
121           ("ifMtu")
122
123       $netscreen->i_name()
124           Interface Name field.
125
126           ("nsIfName")
127
128       $netscreen->i_speed()
129           Speed of the link, maps from "ifIndex" to "nsIfIndex".
130
131       $netscreen->i_type()
132           Interface type.  Maps from "ifIndex" to "nsIfIndex".
133
134           ("ifType")
135
136       $netscreen->i_up()
137           Link Status of the interface.  Typical values are 'up' and 'down'.
138
139           ("nsIfStatus")
140
141       $netscreen->i_up_admin()
142           Administrative status of the port.  Checks both "ifAdminStatus" and
143           "nsIfStatus".
144
145       IP Address Table
146
147       Each entry in this table is an IP address in use on this device.
148
149       $netscreen->ip_index()
150           Maps the IP Table to the IID
151
152       $netscreen->ip_table()
153           Maps the Table to the IP address
154
155           ("nsIfIp")
156
157       $netscreen->ip_netmask()
158           Gives netmask setting for IP table entry.
159
160           ("nsIfNetmask")
161
162       Forwarding Table
163
164       Uses "nsIpArpTable" to emulate the forwarding table.
165
166       $netscreen->fw_index()
167           Maps the Forwarding Table to the IID
168
169       $netscreen->fw_mac()
170           Returns reference to hash of forwarding table MAC Addresses.
171
172       $netscreen->fw_port()
173           Returns reference to hash of forwarding table entries port
174           interface identifier (IID).
175
176       $netscreen->bp_index()
177           Returns reference to hash of bridge port table entries map back to
178           interface identifier (IID).
179
180   Arp Cache Table
181       $netscreen->at_index()
182           Returns reference to hash.  Maps ARP table entries to Interface
183           IIDs
184
185           If the device doesn't support "ipNetToMediaIfIndex", this will try
186           the proprietary "nsIpArpIfIdx".
187
188       $netscreen->at_paddr()
189           Returns reference to hash.  Maps ARP table entries to MAC
190           addresses.
191
192           If the device doesn't support "ipNetToMediaPhysAddress", this will
193           try the proprietary "nsIpArpMac".
194
195       $netscreen->at_netaddr()
196           Returns reference to hash.  Maps ARP table entries to IP addresses.
197
198           If the device doesn't support "ipNetToMediaNetAddress", this will
199           try the proprietary "nsIpArpIp".
200
201       Wireless Information
202
203       $dot11->i_ssidlist()
204           Returns reference to hash.  SSID's recognized by the radio
205           interface.  Remaps from "ifIndex" to "nsIfIndex".
206
207           ("dot11DesiredSSID")
208
209       $dot11->i_80211channel()
210           Returns reference to hash.  Current operating frequency channel of
211           the radio interface.  Remaps from "ifIndex" to "nsIfIndex".
212
213   Table Methods imported from SNMP::Info::Layer3
214       See "TABLE METHODS" in SNMP::Info::Layer3 for details.
215
216   Table Methods imported from SNMP::Info::IEEE802dot11
217       See "TABLE METHODS" in SNMP::Info::IEEE802dot11 for details.
218
219
220
221perl v5.28.1                      2019-04-04  SNMP::Info::Layer3::Netscreen(3)
Impressum