Related Documentation | \nVersion of up.time \naffected | \nAffected Platforms | \n
\n | All | \nSolaris | \n
This article outlines the commands used to control the up.time agent on Solaris 10.
\n \nChanging the agent port
\n \n-
\n
- Open the file
/etc/inet/services
in a text editor.
\n - Find the following entry in the file:
\n
uptimeagent 9998/tcp # up.time agent
\n
\n - Change the value of
9998/tcp
to the port on which you want the agent to listen.
\n
Change the agent user permissions
\n \nTo change agent user permissions, enter the following command at the command line:
\n \ninetadm -m svc:/network/uptimeagent/tcp:default user="username"\n \n
Where username
is the name of the new agent user.
Start the agent service
\n \nTo start the agent service, enter the following command at the command line:
\n \nsvcadm enable network/uptimeagent/tcp\n \n
Stop the agent service
\n \nTo stop the agent service, enter the following command at the command line:
\n \nsvcadm disable network/uptimeagent/tcp\n \n
Confirm that the agent service is running
\n \nsvcs -l network/uptimeagent/tcp\n \n
OR
\n \ninetadm\n \n
Confirm that the inetd service is running properly
\n \nEnter the following command at the command line to verify that the inetd-dependent services are running:
\n \nsvcs -l network/inetd\n \n
Confirm the status of security restrictions on the agent service
\n \nConfirm 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 \nTo 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
Where uptimeagent-tcp.xml
is the file that contains the settings for the uptimeagent service.
Delete the agent service manually
\n \nThe 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 \nUse 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 \nTo set the agent service to start with the operating system, enter the following command:
\n \nsvcadm enable <FMRI>\n \n
Where <FMRI>
is the Fault Management Resource Identifier, which is the formal name for a resource on which Solaris 10 can perform automated fault management.