Top
Systemwalker Service Quality Coordinator Reference Guide
Systemwalker

1.1.2 sqcAPolicy (Response / Operation Information Collection Policy Setup Command)

Privileges required for execution

[Windows]

The privileges of a user belonging to the "Administrators" group are required to execute this command.

[UNIX]

The privileges of a system administrator (superuser) are required to execute this command.


Execution environment

This command can be executed on Enterprise Manager, Manager, and Proxy Manager.


Response and operation information collection policies are created using the following two types of information.

Syntax

[Windows]

<Installation directory>\bin\sqcAPolicy.bat

[UNIX]

/opt/FJSVssqc/bin/sqcAPolicy.sh


Function

This command creates response and operation information collection policies by importing a predefined managed object configuration information file (response and managed object configuration information).

Note

Do not execute multiple sqcAPolicy commands simultaneously.


Options

None.


Return values

Normal termination:0
Abnormal termination:1

When this command is executed, it checks the operational information for the services being monitored, based on the contents of the managed object configuration information file, and displays the results. Then there is a prompt that provides an opportunity to correct any errors in the settings.

If the results displayed are correct, select "yes", otherwise select "no."

If this command is used incorrectly, it will terminate with error code 1.

If any other kind of error occurs, the command will terminate with error code -1.


If this command terminates normally, the following message will be output:

sqcAPolicy succeeded.


If this command terminates abnormally, the following message will be output:

sqcAPolicy ServiceConf.xml error.

(There is an error in the content of ServiceConf.xml.)


Usage example

[Windows]

C:\>cd C:\Program Files\SystemwalkerSQC\bin

C:\Program Files\SystemwalkerSQC\bin>sqcAPolicy

HTTP_1,23

DNS_1,24

PORT_1,1

Do you apply to these configurations? (yes/no)

yes

SqcAPolicy succeeded.

C:\Program Files\SystemwalkerSQC\bin>

[UNIX]

# cd /opt/FJSVssqc/bin/

# ./sqcAPolicy.sh

HTTP_1,23

DNS_1,24

PORT_1,1

Do you apply to these configurations? (yes/no)

Yes

SqcAPolicy succeeded.

#

Point

The service name ("HTTP_1" in this example) is followed by a comma and then a number. This number indicates the response time of the service being monitored. Any number other than -1 indicates that the service is operating correctly. If -1 is displayed, then either the service being monitored is not running, or there may be an error with the content of the managed object configuration information file. In this case, correct the file and execute the command again.


File

If this command is successful, the following files will be created according to the content of the managed object configuration information file.


[Windows]

<Variable file storage directory>\control\WSLM.ini
<Variable file storage directory>\control\HTTPPING.ini
<Variable file storage directory>\control\DNSPING.ini
<Variable file storage directory>\control\PORTPING.ini
<Variable file storage directory>\control\SMTPPING.ini
<Variable file storage directory>\control\AlertTarget.csv

[UNIX]

/opt/FJSVssqc/control/HTTPPING.ini

/opt/FJSVssqc/control/DNSPING.ini

/opt/FJSVssqc/control/PORTPING.ini

/opt/FJSVssqc/control/SMTPPING.ini

/opt/FJSVssqc/control/AlertTarget.csv

After creating a response/operation information collection policy, run the sqcSetPolicy command by referring to "1.1.3 sqcSetPolicy (Policy Application Command)" below.