This article outlines the commands used to control the up.time agent on Solaris 10 and 11. These commands are not applicable for Solaris 8 or 9.
Changing the agent port
- Open the file
/etc/inet/servicesin a text editor.
Find the following entry in the file:
- Change the value of
9998/tcpto the port on which you want the agent to listen.
Change the agent user permissions
To change agent user permissions, enter the following command at the command line:
username is the name of the new agent user.
Start the agent service
To start the agent service, enter the following command at the command line:
Stop the agent service
To stop the agent service, enter the following command at the command line:
Confirm that the agent service is running
Confirm that the inetd service is running properly
Enter the following command at the command line to verify that the inetd-dependent services are running:
Confirm the status of security restrictions on the agent service
Confirm the status of any security restrictions on the agent service with the following commands:
Add the agent service manually
To manually add an agent, enter the following commands:
uptimeagent-tcp.xml is the file that contains the settings for the uptimeagent service.
Delete the agent service manually
The first command stops the agent service and the subsequent commands remove the agent service.
Refresh the agent settings
Use the following command to refresh the agent settings:
Set a service to start at boot
To set the agent service to start with the operating system, enter the following command:
<FMRI> is the Fault Management Resource Identifier, which is the formal name for a resource on which Solaris 10 can perform automated fault management.