Command:

Description:

Example:

 

 

 

save

Saves the latest list command results to a

>save

 

services file in the application server's

OR

 

Repository.

 

>save <filename>

 

Saved output is stored as XML-formatted text.

 

 

 

If no file name is specified, output is saved to a

 

 

file named: ServicesList <host_name>

 

 

<timestamp>.xml.

 

 

If desired, you can include an argument that

 

 

specifies a file name.

 

 

 

 

files

Displays the list of services files in the

>files

 

application server's Repository.

 

 

 

 

view

Displays the contents of a services file from the

>view <filename>

 

Repository on the application server.

OR

 

 

 

Optionally, you can include an argument to dump

>view <filename>

 

this output to a local file. Output is stored as

<localfile_path\filename>

 

XML-formatted text.

 

 

 

 

 

remove, rm

Deletes a specified services file from the

>remove <filename>

 

Repository on the application server.

 

 

 

 

rename, ren

Renames a services file in the Repository on the

>rename <filename>

 

application server.

<new_filename>

 

 

 

read_file, read

Directs command input to another input file.

>read <filename>

 

For example, you can direct input to run a batch

 

 

file that contains a series of commands

 

 

executable by this utility.

 

 

 

 

silent

Executes command without displaying output.

><command> /silent

 

Note: Available in command-line mode only.

 

 

 

 

quit, q

Ends the program.

>quit

 

 

 

Examples

Viewing and Stopping a Service

The following table shows an example of viewing and stopping a service, with a description of each entry.

Command Option:

Description:

 

 

>servicecontrol

Invokes the Services utility.

 

 

>list

Returns a list of all services installed on the target system, along with

 

their current status.

 

 

>stop 01464 "snmp service"

Stops the specified service.

 

Note that due to an embedded space, the service name was placed in

 

quotes.

 

 

Cisco Support Tools 1.0 User Guide

How to Use the Services Utility from a Command Line 125

Page 125
Image 125
Cisco Systems 1.0 (1) manual Examples, Viewing and Stopping a Service