Top
Systemwalker Runbook Automation Reference Guide
Systemwalker

3.4.25 Collect fingerprint

Description

Collects a fingerprint of the specified file.

Options

Basic Options

(1) hostname

Target host name or IP address where the operation component will be executed.

To execute the operation component on the Management Server, specify the following:

  • For IPv4: 'localhost' or '127.0.0.1'

  • For IPv6: 'localhost' or '::1'

An argument error occurs if this option is omitted.

This option can contain up to 1,024 characters. An argument error occurs if this limit is exceeded.

(2) filename

Full name of the file which fingerprint will be collected. You can specify text or binary files (such as compressed files or graphics files).

The following will cause an error:

  • If the file name is omitted

  • If a non-existing file name is specified

  • If more than 1,024 characters are specified for the file name

Advanced Options

(1) type

The hash algorithm that collects the fingerprint. Select [MD5] or [SHA-1].

If nothing was specified, the setting will be [MD5].

(2) ostype

Operating system of the host executing the operation component.

Specify Windows, Linux or Solaris. This option is not case sensitive.

If the OS type is omitted, the Configuration Management Data Base (CMDB) will be searched based on the specified host name or IP address, and Systemwalker Runbook Automation automatically sets the acquired OS type as the value.

This option can contain up to 1,024 characters. An argument error occurs if this limit is exceeded.

(3) username

Name of the user connecting with SSH or Windows PowerShell to the host executing the operation component.

If username or password is omitted, the hostname will be searched in the Configuration Management Data Base (CMDB), and the acquired user name will be used.

If using file transfer infrastructure to connect, username must have the value below (any other value specified in this option will be ignored):

  • For Linux and Solaris Business Servers: root

  • For Windows Business Server: SYSTEM user

This option can contain up to 1,024 characters. An argument error occurs if this limit is exceeded.

(4) password

Password of the user connecting with SSH or Windows PowerShell to the host executing the operation component.

Also, the password for users on remote hosts that occur in rexec.

If username or password is omitted, the hostname will be searched in the Configuration Management Data Base (CMDB), and the acquired password will be used.

If using file transfer infrastructure to connect, even if the password is specified, it will be invalid.

This option can contain up to 1,024 characters. An argument error occurs if this limit is exceeded.

(5) execusername

The user name for executing the command on the target host where the operation component is to be executed.

If execusername or execpassword is omitted, the hostname will be searched in Configuration Management Data Base (CMDB), and the acquired administrator user will be used. If the user is not registered on CMDB, the connected user name will be used.

If using file transfer infrastructure to connect and the specified hostname is running Windows, execution will be carried out by the SYSTEM user, and any value specified in this option will be ignored.

This option can contain up to 1,024 characters. An argument error occurs if this limit is exceeded.

(6) timeout

Maximum number of seconds to wait for the execution of operation components.

The valid range is from 300 to 86,400 (1 day).

For example, specify 600 for a completion timeout of 10 minutes.

If the operation component times out, the operation component process will be suspended with a return value of 201.

(7) retry

Number of times to try to execute the operation components.

Retry will only attempted if the operation component ends with a return value of 161.

The valid range is from 0 to 5.

As a result of retrying, if the operation components ended with return values other than 161, the execution of the operation components ends even if it doesn't reach the specified retry count. The return values of the operation components become the value executed at the end.

For example, specify 2 for retry twice to execute the components.

(8) retry_interval

Number of seconds to wait between retries.

Retry will only attempted if the operation component ends with a return value of 161.

The valid range is from 1 to 14400.

For example, specify 300 to wait 300 seconds between each retry.


If timeout, retry or retry_interval are omitted or a value outside the range is specified, then the default value specified in the operation components definition file will be used. Refer to "2.5 Definition File for Operation Components" for details.

Return Values

Icon

Name

Return value

Description

Success

0

Fingerprint successfully collected.

Failure

161

Fingerprint collection failed. A retry will be attempted if the retry option was specified.

171

Fingerprint collection failed because the specified file does not exist.

177

Failed to access the file.

178

Program terminated abnormally due to a command.

187

If using SSH or Windows PowerShell: Authentication failed during an operation component connection to a Business Server over the network.

If using file transfer infrastructure: An error occurred during an operation component communication with the Business Server. The error code for the file transfer infrastructure will be output to the execution results (refer to "3.21 Detailed Code of File Transfer Infrastructure" for information on error codes).

188

Network communication (SSH) with the Business Server was terminated during an operation component operation on a Business Server in which an RBA Agent is not installed,.

189

If using SSH or Windows PowerShell: Connection to Business Server network failed during an operation component operation.

If using file transfer infrastructure: An error occurred during an operation component communication with the Business Server. The error code for the file transfer infrastructure will be output to the execution results (refer to "3.21 Detailed Code of File Transfer Infrastructure" for information on error codes).

197

There is an error in the option content.

200

Command terminated abnormally.

-

-

201

Operation component timed out.

202

Failed to execute the operation component because there is a configuration problem in the component.

203

Failed to execute the operation component because there is a problem in the Management Server environment.

205

Failed to execute the operation component because there is a problem with the operation component input.

206

The operation component was not executed normally. There is a problem with the output information specification of the operation component.

207

The operation component was not executed. It is possible that the operation components are not registered in the Management Server.

208

The Automated Operation Process has been aborted because the Automated Operation Process was recovered while the operation component was executing.

Output Data

Variable

Description

message

This variable will be set to the following message if the fingerprint is obtained successfully:

The operation component was successful.

If collection of the fingerprint fails, error content is set as a string.

finger_print

Sets the collected fingerprint result. Fingerprint is displayed using half-width alphanumeric characters (lower case letters).

Output example:

3141f904eebe53206c25b58f8f3a6da0

returnCode

Sets return values

Notes