Chapter 14: - Using 3rd Party Common Tools

SC

-y Answer yes to all questions without prompting.

Examples:

relog logfile.csv -c "\Processor(_Total)\% Processor Time" -o logfile.blg

relog logfile.blg -cf counters.txt -f bin

relog logfile.blg -f csv -o logfile.csv -t 2

relog logfile.blg -q -o counters.txt

SC

Note: This tool can be used in both Interactive Mode and Batch Mode. For details on scheduling this tool to run in batch mode see Using Batch Mode.

Communicates with the Service Controller and installed services. SC.exe retrieves and sets control information about services.

sc <server> [command] [service name] <option1> <option2>...

The option <server> has the form "\\ServerName".

Commands for SC:

query: Queries the status for a service, or enumerates the status for types of services.

queryex: Queries the extended status for a service, or enumerates the status for types of services.

start: Starts a service.

pause: Sends a PAUSE control request to a service.

interrogate: Sends an INTERROGATE control request to a service.

continue: Sends a CONTINUE control request to a service.

stop: Sends a STOP request to a service.

config: Changes the configuration of a service (persistent).

description: Changes the description of a service.

failure: Changes the actions taken by a service upon failure.

qc: Queries the configuration information for a service.

qdescription: Queries the description for a service.

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

242

Page 256
Image 256
Cisco Systems 2.1(1) manual Answer yes to all questions without prompting Examples, 242