public class GetAllInstalledSoftware
extends java.lang.Object
implements java.util.Observer
The GetAllInstalledSoftware application requests the information of all the currently installed software of a host, using the InstalledSoftwarePdu. This is written to test the DateAndTime functionality.
It walks the tree by creating a new InstalledSoftwarePdu out off the previous one, and it collects the values of all the interfaces.
The information will be printed to System.out .
The host, port, community name and sockettype can be configured in the
properties file.
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
GetAllInstalledSoftware.properties
. If this file does not exist, the
application will use default parameters.
Constructor and Description |
---|
GetAllInstalledSoftware(java.lang.String propertiesFilename)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
init() |
static void |
main(java.lang.String[] args)
Main.
|
void |
start() |
void |
update(java.util.Observable obs,
java.lang.Object ov)
Implementing the Observer interface.
|
public GetAllInstalledSoftware(java.lang.String propertiesFilename)
propertiesFilename
- The name of the properties file. Can be
null.public void init()
public void start()
public void update(java.util.Observable obs, java.lang.Object ov)
update
in interface java.util.Observer
obs
- the InstalledSoftwarePdu variableov
- the array of varbind (not used)InstalledSoftwarePdu
,
varbind
public static void main(java.lang.String[] args)
GetAllInstalledSoftware.properties
, pass the name as first argument.