Chapter 12: - Using Cisco Tools from a Command Line

How to Use the Services Utility from a Command Line

 

Command:

Description:

Example:

 

Optionally, you can include an argument to dump this output to a

 

 

local file. Output is stored as XML-formatted text.

 

start

Starts a stopped service on the target system.

>start <pid>

 

 

<service_name>

 

 

Note: Enter "0" for the PID when

 

 

starting a service.

stop

Stops a started service on the target system.

>stop <pid> <service_name>

save

Saves the latest list command results to a services file in the

>save

 

application server's Repository.

OR

 

 

 

Saved output is stored as XML-formatted text.

 

 

 

>save <filename>

 

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

 

 

ServicesList <host_name> <timestamp>.xml.

 

 

Optionally, you can include an argument that specifies a file name.

 

files

Displays the list of services files in the application server's

>files

 

Repository.

 

view

Displays the contents of a services file from the Repository on the >view <filename>

 

application server.

OR

 

 

 

Optionally, you can include an argument to dump this output to a

 

 

local file. Output is stored as XML-formatted text.

>view <filename>

 

 

<localfile_path\filename>

remove, rm

Deletes a specified services file from the Repository on the

>remove <filename>

 

application server.

 

rename, ren

Renames a services file in the Repository on the application server. >rename <filename>

 

 

<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

Cisco Support Tools User Guide for Cisco Unified Software Release 2.1(1)

130

Page 144
Image 144
Cisco Systems 2.1(1) Starting a service, Stop Stops a started service on the target system, Quit, q Ends the program, 130