You configure the Linux Agent during installation. However, you can change settings, such as host names or port numbers, after installation by one of the following methods:
Running the install script
Editing domain-config.x
You can re-enter all the agent setup information by typing the following command:
# source-dir/HALLinuxAgent-install.sh -setupAgent |
where source-dir is the installation source directory.
The install script prompts you for the settings and reseeds the Linux Agent if needed.
You can specify different settings after installation, by logging into the Linux Agent host and editing the text file /var/opt/PrimeAlert/cfg/domain-config.x. Edit this file only when you want to change the server context or server ports. You must reseed after changing host names or port numbers, see To Reseed After Changing Host Names or Port Numbers.
The following lines can be specified in domain-config.x:
agent = { snmpPort = "161" agentServer = "caspian" } trap = { trapServer = "balkan" snmpPort = "162" } event = { eventServer = "balkan" snmpPort = "163" } |
If you change the agentServer and the snmpPort values in the domain.config.x file of the Linux Agent host, you must reseed the Linux Agent.
On the Linux Agent host, type the following command in a UNIX shell as a super user:
# /opt/PrimeAlert/bin/pa usm-seed -s seed agent |
seed is the seed you used for your Sun Management Center server layer installation
Restart the Linux Agent.
Wait 5 –10 minutes for the server layer and the agent to authenticate before managing the agent from the console.