Top
Cloud Services Management V1.1.0 Operation Guide
FUJITSU Software

5.2.13 Accounting Code Operation Commands

Command Name

fscsm_accountingcode

Format
fscsm_accountingcode create -file input-file
fscsm_accountingcode modify -file input-file
fscsm_accountingcode delete -code accountingcode
fscsm_accountingcode export [-code accountingcode] -file output-file
fscsm_accountingcode list [-orgId organizationID]
Description

Performs addition, modification, deletion, and outputting of accounting codes.

Subcommands
create -file input-file

Adds accounting codes.

In input-file, enter the name of the file containing the accounting codes to be added. For details on the format of the file, refer to "5.3.9 Accounting Code Information".

modify -file input-file

Modifies accounting codes. Multiple accounting codes can be modified.

In input-file, enter the name of the file containing the accounting codes to be modified. For details on the format of the file, refer to "5.3.9 Accounting Code Information".

delete -code accountingcode

Deletes accounting codes.

In accountingcode, enter the accounting code to be deleted.

export [-code accountingcode] -file output-file

Outputs accounting code information as an XML file.

-Code accountingcode can be omitted. If specified, the information of the specified accounting codes will be output. If not specified, the information of all accounting codes will be output.

In output-file, specify the file name using a character string containing alphanumeric characters, hyphens ("-"), underscores ("_"), and periods ("."). For details on the format of the file, refer to "5.3.9 Accounting Code Information".

When the specified file already exists, an error occurs.

list [-orgId organizationID]

-orgId organizationID can be omitted. If specified, the information of the specified organizations will be output. If not specified, the information of all organizations will be output in a prompt window.

The following items are displayed in ascending order of accounting code.

  • Accounting Code

  • Organization ID

Example
  • When adding accounting codes

    >fscsm_accountingcode create -file addaccode.xml<RETURN>
  • When modifying accounting codes

    >fscsm_accountingcode modify -file updaccode.xml<RETURN>
  • When deleting organization information with accounting code ABC

    >fscsm_accountingcode delete -code ABC<RETURN>
  • When outputting the information of accounting code "ABC" as a file

    >fscsm_accountingcode export -code ABC -file accdata_A.xml<RETURN>
  • When outputting all accounting code information as a file

    >fscsm_accountingcode export -file orgdata_ALL.xml<RETURN>
  • When outputting accounting codes to the screen

    >fscsm_accountingcode list<RETURN>
    code                               orgId                               
    ----------------------------------------------------------------------------------------------
    ABC                                101                                
    ABD                                101                                
    ABE                                101                                
    B01                                201