uk.co.westhawk.examplev2c
Class get_bulk
java.lang.Object
|
+--uk.co.westhawk.examplev2c.get_bulk
- All Implemented Interfaces:
- java.util.Observer
- public class get_bulk
- extends java.lang.Object
- implements java.util.Observer
The get_bulk application shows how to use the SNMPv2 GetBulk request.
The host, port, community, non-repeaters and max-repetitions name can
be configured
in the properties file.
A number of OIDs can be configured in the properties file as well by using
any OIDS in the range OID0 to OID9.
The name of the properties file can be passed as first argument to
this application. If there is no such argument, it will look for
get_bulk.properties
. If this file does not exist, the
application will use default parameters.
- Version:
- $Revision: 1.5 $ $Date: 2006/01/30 11:37:15 $
- Author:
- Birgit Arkesteijn
- See Also:
GetBulkPdu
Constructor Summary |
get_bulk(java.lang.String propertiesFilename)
Constructor. |
Method Summary |
void |
init()
|
static void |
main(java.lang.String[] args)
|
void |
update(java.util.Observable obs,
java.lang.Object ov)
Implementing the Observer interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NON
public static final java.lang.String NON
- See Also:
- Constant Field Values
MAX
public static final java.lang.String MAX
- See Also:
- Constant Field Values
system
public static final java.lang.String system
- See Also:
- Constant Field Values
sysUpTime
public static final java.lang.String sysUpTime
- See Also:
- Constant Field Values
ipNetToMediaNetAddress
public static final java.lang.String ipNetToMediaNetAddress
- See Also:
- Constant Field Values
ipNetToMediaType
public static final java.lang.String ipNetToMediaType
- See Also:
- Constant Field Values
ipRouteTable
public static final java.lang.String ipRouteTable
- See Also:
- Constant Field Values
get_bulk
public get_bulk(java.lang.String propertiesFilename)
- Constructor.
- Parameters:
propertiesFilename
- The name of the properties file. Can be
null.
init
public void init()
update
public void update(java.util.Observable obs,
java.lang.Object ov)
- Implementing the Observer interface. Receiving the response from
the Pdu.
- Specified by:
update
in interface java.util.Observer
main
public static void main(java.lang.String[] args)