The svcwatch setstatus command changes the status of a test on the specified host.
This command has the following format:
svcwatch [options] -o setstatus index status
The setstatus command uses the following parameters:
Specifies the possible options for this command.
(Optional) Specifies the SystemEDGE host.
Default: localhost
(Optional) Specifies the SystemEDGE SNMP port.
Default: 161
(Optional) Specifies the SNMP community string for SNMP version 1 and 2c.
Default: public
(Optional) Specifies the SNMP version. Possible values are:
Default: 1
(Optional) Specifies the name of the SNMPv3 secure user.
(Optional) Specifies the level of security for SNMPv3. Possible values are:
(Optional) Specifies the instance name for a MIBMuxed agent.
(Optional) Identifies the authentication password required when SNMPv3 is selected with security AuthNoPriv or AuthPriv.
(Optional) Specifies the authentication protocol. Possible values are:
Default: MD5
(Optional) Specifies the privacy (encryption) password for SNMPv3 with security level 3 (AuthPriv).
(Optional) Specifies the use of encryption protocol for privacy. Possible values are:
(Optional) Specifies the FIPS mode. Possible values are:
Default: 0
(Optional) Specifies the SNMP command timeout.
Default: 10 seconds
(Optional) Specifies the log level for SNMP messages. Possible values are:
Default: 0
(Optional) Specifies the name of the logfile.
Default: sysedge_utility.log
(Optional) Detects the current locale of the console and language catalog if available. If a language catalog is not found, the utility falls back to English as a default language.
Specifies the new status of a test.
Specifies the svcRspTable index used as an identifier of the test.
Note: You overwrite an existing test with a new test, when you use the add command with the index of that test.
Specifies the status. Possible values are:
active (1),
notInService (2),
notReady (3),
createAndGo (4),
createAndWait (5),
destroy (6)
Example
Change the status of a test:
svcwatch -p 161 -c admin -o setstatus 1360739 2
Copyright © 2013 CA. All rights reserved. |
|