|Related Documentation\n||Version of up.time \naffected\n||Affected Platforms\n|
This article outlines the commands used to control the up.time agent on Solaris 10.\n \n
Changing the agent port\n \n
- Open the file
/etc/inet/servicesin a text editor.
- Find the following entry in the file:
uptimeagent 9998/tcp # up.time agent\n
- Change the value of
9998/tcpto the port on which you want the agent to listen.
Change the agent user permissions\n \n
To change agent user permissions, enter the following command at the command line:\n \n
inetadm -m svc:/network/uptimeagent/tcp:default user="username"\n \n
username is the name of the new agent user.
Start the agent service\n \n
To start the agent service, enter the following command at the command line:\n \n
svcadm enable network/uptimeagent/tcp\n \n
Stop the agent service\n \n
To stop the agent service, enter the following command at the command line:\n \n
svcadm disable network/uptimeagent/tcp\n \n
Confirm that the agent service is running\n \n
svcs -l network/uptimeagent/tcp\n \n
Confirm that the inetd service is running properly\n \n
Enter the following command at the command line to verify that the inetd-dependent services are running:\n \n
svcs -l network/inetd\n \n
Confirm the status of security restrictions on the agent service\n \n
Confirm the status of any security restrictions on the agent service with the following commands:\n \n
\n# inetadm -l network/uptimeagent/tcp | grep wrappers \n# svcprop -p defaults inetd | grep wrappers \n# cat /etc/hosts.allow \n# cat /etc/hosts.deny \n\n \n
Add the agent service manually\n \n
To manually add an agent, enter the following commands:\n \n
\n# cp uptimeagent-tcp.xml /var/svc/manifest/network \n# svccfg import /var/svc/manifest/network/uptimeagent-tcp.xml \n\n \n
uptimeagent-tcp.xml is the file that contains the settings for the uptimeagent service.
Delete the agent service manually\n \n
The first command stops the agent service and the subsequent commands remove the agent service.\n \n
\n# svcadm disable network/uptimeagent/tcp \n# svccfg delete network/uptimeagent/tcp \n# rm ?f /var/svc/manifest/network/uptimeagent-tcp.xml \n\n \n
Refresh the agent settings\n \n
Use the following command to refresh the agent settings:\n \n
\nsvcadm refresh network/uptimeagent/tcp \n\n \n
Set a service to start at boot\n \n
To set the agent service to start with the operating system, enter the following command:\n \n
svcadm enable <FMRI>\n \n
<FMRI> is the Fault Management Resource Identifier, which is the formal name for a resource on which Solaris 10 can perform automated fault management.