This section demonstrates the format and use of the agentadmin command with the --listAgents option.
The following example illustrates the format of the agentadmin command with the --listAgents option:
No arguments are currently supported with the agentadmin command when using the --listAgents option.
Issuing the agentadmin command with the --listAgents option provides you with information about all the configured J2EE agents on that machine. For example, if two J2EE agents were configured on Sun Java System Application Server 8.1, the following text demonstrates the type of output that would result from issuing this command:
The following agents are configured on this Application Server. The following are the details for agent agent_001 :- Application Server Config Directory: /var/opt/SUNWappserver/domains/domain1/config Application Server Instance name: server1 The following are the details for agent agent_002 :- Application Server Config Directory: /var/opt/SUNWappserver/domains/domain1/config Application Server Instance name: server2
This example shows that two instances of the agent are configured: one for server1 and one for server2. Notice that the agentadmin program provides unique names, such as agent_001 and agent_002, to all the J2EE agents that protect the same instance of a deployment container, in this case Application Server 8.1. Each name uniquely identifies the J2EE agent instance.