Command line arguments for starting the PATROL Agent
This section lists the command line arguments for the PATROL Agent. It also explains about the RTServers configuration and environment variables.
The following table lists command line arguments for the PATROL Agent:
Command line arguments for starting PATROL Agent
Argument | Function |
---|---|
-config <changefile> <name> -batch | Processes a pconfig-style configuration file |
-help | Displays a list of command line arguments |
-i | Disables heartbeat |
-id <name> | The -id option enables you to override the agent service name that is registered with the RTserver. By default, PATROL Agents register with the RTserver as hostname_portno. For example, starting a PATROL Agent on host nebula with the following command: If you use the -id option, for example the command PATROLAgent -p 3181 -id newhost registers the agent with the name newhost. Use this feature if you have several hosts with the same name in different domains that are all running PATROL Agents and using the same RTserver. If each host tried to register with the same RTserver using the default service name, only one host could register. The -id option enables you to register an agent with the RTserver under a different name than the default. |
-install | Installs the agent as a service on Microsoft Windows platforms. |
-km <KM name> | Loads initial KM; to load multiple KMs, you must specify -km for each KM you want to load. For example: |
-O <LMP> | PSL Optimizer Options: -O[L#][M#][P#] |
-p <portNo> or -port <portNo> | Agent connection port (default port is 3181) |
-profiling [<logfile>] | Activates PSL profiling Data is only written to the file at agent termination. |
-integrationservice <protocol>:<host>:<portNumber>, <protocol2>:<host2>:<portNumber2> | Tells the agent which Integration Service(s) to connect to, for example: PatrolAgent -integrationservice tcp:houperfms318:3183. |
-remove | Removes the agent as a service |
-rtserver <protocol>:<host>:<portNo>, <protocol2>:<host2>:<portNo2> | Tells the agent which RTserver(s) to connect to, for example: PatrolAgent -rtserver tcp:nebula:2059. |
-share-sys-output | Shows the same system output window for all consoles that connect to the agent |
-v |
|
-RegServer | Registers COM server and exits |
-UnregServer | Unregisters COM server and exits (the PATROL installation automatically registers COM server) |
RTServers configuration variable
The /AgentSetup/rtServers variable tells the PATROL Agent to which RTserver(s) to connect. The advantage of setting the RTServers configuration variable is that you can reconfigure the RTserver connection(s) from a central point. If you change this variable, the change will not take effect until you restart the PATROL Agent.
Format and type of data | Text string, RTserver |
Default value | None |
Minimum and maximum | Not applicable |
Dependencies | None |
Recommendation | Use commas to separate multiple RTServers |
RTSERVERS environment variable
The RTSERVERS environment variable tells the agent which RTserver(s) to connect to, for example: tcp:nebula:2059.
The agent connects to the first RTserver in the list. If the connection breaks, the agent connects to the next RTserver in the list.
You must set the RTSERVERS environment variable in either of the following situations:
- You want to view PATROL Agent data from a PATROL 7.x Console.
- There is no RTserver installed on a computer in the same subnet.
- The RTserver is not using the default port number of 2059.
The PATROL Console Server, PATROL Agent, and PATROL 7.x Consoles can detect RTServers within their own subnets, but they cannot detect RTServers outside of their own subnets. If you have installed one of those components in a subnet that has no RTserver, the only way it can communicate with an RTserver is if you define the RTSERVERS environment variable. The format of the RTSERVERS environment variable is as follows:
tcp: computer_name: port_number
where computer_name is the name of a computer running an RTserver (a member of the RTserver cloud), and port_number is the port number that it is using to broadcast.
RTServer precedence
The PATROL Agent can be told to which RTserver to connect using three different methods: command line argument, configuration variable, and environment variable. If you use more than one method to specify RTserver connections, then the PATROL Agent uses the RTserver connection methods in the following order:
- Command line argument
- Configuration variable
- Environment variable
When a value is undefined, the next value is tried. When a value is defined but has no valid RTserver in the list (example unparseable syntax or unresolvable hostname), the next value is not tried. The PATROL Agent will start without using COS/RTserver. The PATROL Agent will also start without using COS/RTserver if none of the values are defined.