pw agent
This command can be used only with the BMC ProactiveNet Integration Service (also called BMC ProactiveNet Agent) on a UNIX-based environment.
Run the following command to view help information associated with BMC ProactiveNet Agent:
usage:
pw agent start [-id <agent id>]|stop [-id <agent id>]|status [-all]|list
pw agent list
Run the pw agent list command to view the list of BMC ProactiveNet Agents installed on a system. The command also lists the following:
- AID (Agent ID) — This is unique to each agent.
- Owner - Name of the BMC ProactiveNet Agent owner
- Install Directory — The path of the directory where the BMC ProactiveNet Agent is installed
- Agent Version — The BMC ProactiveNet Agent version
- Port — The port number on which the agent runs
- Status — Indicates whether the agent is running or not
pw agent start
Run the following command to start the current agent:
Run the following command to start a particular agent installed on a system:
To obtain the agent ID, run the pw agent list command.
If the agent is already running, this command stops and then starts the BMC ProactiveNet Agent (UNIX) process.
Starting Proactive Agent ...
done.
# ./pw agent start -id 6
Stopping Proactive Agent ... done.
Starting Proactive Agent ...
done.
#
BMC ProactiveNet Agents can be started or stopped by other agents only when BMC ProactiveNet Agents are owned by the same user. For instance, BMC ProactiveNet Agents owned by root user cannot start or stop BMC ProactiveNet Agents owned by other users. Similarly, BMC ProactiveNet Agents owned by other users cannot start or stop BMC ProactiveNet Agents owned by root user.
Cannot start agent owned by different user.
#
pw agent status
Run the following command to view the status of the BMC ProactiveNet Agent on which you are running the command:
The command indicates whether the agent is running. If it is, then the output of the command displays the number of BMC ProactiveNet Agent (UNIX) processes currently running on the system.
To view the status of all BMC ProactiveNet Agents installed on the system, run the following command:
pw agent stop
Run the following command to stop the current agent:
Run the following command to stop a particular BMC ProactiveNet Agent on a system:
To obtain the agent ID, run the pw agent list command.
Stopping Proactive Agent ... done.
#
To reboot BMC ProactiveNet Agent (UNIX)
Enter the following command:
pw agent stop -id [Agent ID]A message displays that processes are being halted.
Continue to shut down the UNIX server by using standard UNIX commands.
Reboot the UNIX server. On reboot, all BMC ProactiveNet processes start automatically.