Top
Systemwalker Software Configuration Manager Reference Guide
FUJITSU Software

1.2.6 swcfmg_hardware (Hardware Information Management Command)

Description

Registers, updates, deletes, and lists hardware information managed by Systemwalker Software Configuration Manager.

Synopsis

[Windows]

swcfmg_hardware.exe

{ -add -file <hardware info file> [-e <Character encoding>] |
-update -file <hardware info file>[-e <Character encoding>] |

-delete [-ip <IP address>] -serialno <serial number> [-os] |

-list [-file <output file>] [-e <Character encoding>] }

[Linux]

swcfmg_hardware

{ -add -file <hardware info file> [-e <Character encoding>] |
-update -file <hardware info file>[-e <Character encoding>] |

-delete [-ip <IP address>] -serialno <serial number> [-os] |

-list [-file <output file>] [-e<Character encoding>]

Options

-add -file <hardware info file>

Registers hardware information using the data entered in the specified hardware information file.

The hardware information file is in CSV format. For details on the hardware information file, refer to "2.2.4 Hardware Information File".

-update -file <hardware info file>

Updates hardware information using the data entered in the specified hardware information file.

The hardware information file is in CSV format. For details on the hardware information file, refer to "2.2.4 Hardware Information File".

-delete [-ip <IP address>] -serialno <serial number> [-os]

Delete the hardware information.

When deleting a chassis, specify the serial number of the management blade. The serial number of the management blade can be checked using the swcfmg_hardware -list command. It is different from the chassis serial number displayed on the management console. When -os is specified, the information of the OSs, hypervisors, and the guest OSs linked with the blade server or the rack mount server are also deleted.

When deleting blade servers and rack mount servers, specify the admin IP address and the serial number of the server.

The information of multiple pieces of hardware cannot be deleted at the same time.

-list [-file <output file>]

Outputs the hardware information registered using this command in CSV format.

If -file <output file> is omitted, the information is output to the standard output for this command.

If the specified file does not exist, a new file will be created. If the file exists, the existing file will be overwritten.

If the file cannot be output because of an error, either a new file will not be created or, if an existing file was to be overwritten, the existing file will be kept as it is, without being overwritten.

Refer to "2.2.4 Hardware Information File" for information on the output file.

-e <Character encoding>

Specify the character encoding for the file.

The following character encoding can be specified. (single-byte uppercase characters must be used):

    • UTF-8

    If this option is omitted, the character encoding of the execution environment of this command will be used.

    Return value

    Return value

    Meaning

    0

    The command has terminated normally.

    10

    A parameter error has occurred.

    20

    The specified I/O path is incorrect.

    30

    The specified character encoding is incorrect.

    50

    The file description is incorrect.

    70

    The specified IP address does not exist.

    71

    The specified serial number does not exist.

    100

    Systemwalker Software Configuration Manager is not running.

    101

    A command that cannot be executed at the same time as this command is already running.

    102

    You do not have the privileges required to execute this command.

    110

    A write error has occurred.

    200

    Setup has not been performed.

    255

    A system error has occurred.

    Command location

    Admin server

    [Windows]

    <Systemwalker Software Configuration Manager installation directory>\SWCFMGM\bin

    [Linux]

    /opt/FJSVcfmgm/bin

    Privilege required

    [Windows]

    [Linux]

    Notes

    Common notes
    Notes on registration
    Notes on update
    Notes on deletion
    Notes on list display
    Notes on registration and update errors

    Example

    Execution results/output format