Top
Systemwalker Runbook Automation Reference Guide
Systemwalker

1.4.12 swrba_ipmiimport (IPMI Information Import Command)

Description

CMDB imports IPMI information about managed servers by this command. File format for input is CSV.

You can update and add IPMI information by editing IPMI information that was exported by swrba_ipmiexport and importing IPMI information by using swrba_ipmiimport.

Synopsis

swrba_ipmiimport -f Input file [-e Character code of Input file]

Options

-f Input file

Specify the file for input that has IPMI information of server that is registration object. File format for input is CSV.


The example of the input file is shows below.

192.168.0.1,192.168.1.1,user001,xe3539caeb
192.168.0.2,192.168.1.2,user002,ex3535akft
192.168.0.3,192.168.1.3,user001,xe359jsg35
192.168.0.4,192.168.1.4,user002,djh847wag4


The specifications of CSV are shown below.

  • Delimit column by comma (,).

  • You can't input linefeed character in the column data.


The positions of column in CSV are shown below.

1 column

2 column

3 column

4 column

Item

IP address of server

IP address of IPMI

User

Password

example

192.168.0.1

192.168.1.1

user001

xe3539caeb

The definition rule of each column is shown below.

column

item

Omission

Omission Value

Inputted Contents

Check Contents

Condition

1

IP address

NG

-

Specify the IP address of server.

Number of input characters

From 1 to 255 characters

Type of characters

Normal-width alphabetic character (It distinguishes capital letter and small letter), the normal-width figure, and the normal-width sign.

Contents

When LogicalServer-CI of specified Internet Protocol address is not registered in CMDB, an error is displayed.

2

IP address

NG

-

Specify the IPMI IP address

Number of input characters

From 1 to 255 characters

Type of characters

Normal-width alphabetic character (It distinguishes capital letter and small letter), the normal-width figure, and the normal-width sign.

3

User

NG

-

Specify the user account for the authentication server.

Number of input characters

From 1 to 255 characters

Type of characters

The one-byte character and the em-size character can be used.

The blank cannot be used.

uniqueness

Two or more same users cannot be registered in a server concerned.

4

Password

OK

-

Specify the password for the user.

When you omit password, this command operates as follows.

  • When you newly register user account information, the omission is improper. the registration of user account information fails.

  • When you update registered user account information, this command doesn't change the password.

Number of input characters

From 1 to 255 characters

Remarks:

When an error exists in the IPMI information in inputted file, only IPMI information with the error fails to be imported. Other IPMI information is imported.

-e Character code of Input file

Specify the character code of the inputted file. The following character-codes can be specified.

  • UTF-8

  • SJIS

  • EUC

If this option is omitted, the character code of the input file will be as follows:

[Windows]

SJIS

[Linux]

The character code specified in the LANG environment variable

If the LANG environment variable has not been set, or character code cannot be recognized, then UTF-8 will be used.

Return Values

0:

Normal termination

1:

Warning termination

  • IPMI information that fails in import exists.

2:

Parameter error

3:

Errors other than 1 and 2

Notification of Error Information

When there is an error in information to be imported, error information is notified to the standard error output.

Correct IPMI information on the input file referring to error information output to the standard error output, and do the import again by this command.

Example: If the error occurs on multiple lines, then these multiple lines will be notified.

> swrba_ipmiimport -f importcsv.txt

Error: Failed to register the IPMI information. Detail=The registration destination LogicalServer[192.168.0.1] cannot be found.

Error: Failed to register the IPMI information. Detail=The registration destination LogicalServer[192.168.0.2] cannot be found.

IPMI information was successfully registered. LogicalServer=192.168.0.3 IPAddress=192.168.1.3 User=user001

IPMI information was successfully registered. LogicalServer=192.168.0.4 IPAddress=192.168.1.4 User=user002

Failed to execute all or part of the processing.

Command Location

[Windows]

<Systemwalker Runbook Automation installation directory>\bin
Note: The default location is C:\Fujitsu\Systemwalker\SWRBAM

[Linux]

/opt/FJSVswrbam/bin


Privilege Required/Execution Environment

[Windows]

[Linux]

Note