|
This is a sample application illustrating how to use the MibOperationsEJB to load MIBs and get the corresponding node details for the MibNode specified by the user. The following command runs the application.
|
java ejbNodeDetails -m mibs\RFC1213-MIB sysDescr |
The above command loads the RFC1213 MIB and retrieves the node details of sysDescr and prints them. For example, this example prints the following details.
|
syntax | Access| Status | OID | Node| Description |
To run the ejbNodeDetails application from another host where the application server runs, you can use the following command.
|
java ejbNodeDetails -EJBServer SERVER -m mibs\RFC1213-MIB sysDescr |
It is assumed that the application server runs on a machine SERVER and you want to get the node details on the server itself. The argument "localhost" specifies that ejbNodeDetails operation is performed on the "localhost" as seen by the application server.
Source
Refer the source code for the ejbNodeDetails example present in <examples/ejbclient/ejbNodeDetails.java> for more information.
|