Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

\n \n \n \n \n \n \n \n \n \n \n \n \n
Related DocumentationVersion of up.time \naffectedAffected Platforms
 AllSolaris
\n \n

This article outlines the commands used to control the up.time agent on Solaris 10.

\n \n

Changing the agent port

\n \n
    \n
  1. Open the file /etc/inet/services in a text editor.
  2. \n
  3. Find the following entry in the file: \n
    uptimeagent        9998/tcp        # up.time agent
    \n
  4. \n
  5. Change the value of 9998/tcp to the port on which you want the agent to listen.
  6. \n
\n \n

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

Where username is the name of the new agent user.

\n \n

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

OR

\n \n
inetadm
\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

Where uptimeagent-tcp.xml is the file that contains the settings for the uptimeagent service.

\n \n

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

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.

\n
  • No labels