17.10 ioutils exportdevice (exporting device information)
This section describes the ioutils exportdevice command to export device information.
Functionality
This command exports device information to a CSV file. A file is exported even when no information items are available to export.
If you have multiple JP1/IT Desktop Management 2 systems configured, device information in one system can be reused in another system.
Execute this command on the management server.
Format
ioutils exportdevice -export export-file-name[ -filter filter-name][ -encoding character-encoding][ -s]
Argument
- -export export-file-name
-
Specify the absolute path (within 259 bytes) of the CSV file to export.
- -filter filter-name
-
Specify a filter name that is displayed in the menu area in the operation window, to export device information using a filter.
- -encoding character-encoding
-
Specify a character code for device information to export. The following types of character codes can be specified. When you do not specify this argument, the character code is set to UTF-8.
-
US-ASCII
-
ISO-8859-1
-
UTF-8
-
UTF-8N
-
UTF-16
-
UTF-16LE
-
UTF-16BE
-
MS932
-
Shift-JIS
-
EUC-JP
-
JIS
-
- -s
-
Overwrites the file even if a file with the same file name already exists at the export destination. If this argument is not specified and a file with the same file name already exists, an overwrite confirmation message appears. In this case, the system cancels the output or overwrites the file according to the administrator's reply.
Storage location
JP1/IT Desktop Management 2-installation-folder\mgr\bin\
You can execute this command without specifying the storage location of the file to be executed, by using the built-in command prompt provided by JP1/IT Desktop Management 2.
Notes
-
Execute this command when the management server setup is completed and the management server is stopped.
-
This command cannot be simultaneously executed by multiple users.
-
This command cannot be executed simultaneously with any of the following commands:
-
exportdb
-
importdb
-
ioassetsfieldutil export
-
ioassetsfieldutil import
-
ioutils exportasset
-
ioutils exportdevicedetail
-
ioutils exportfield
-
ioutils exportfilter
-
ioutils exportoplog
-
ioutils exportpolicy
-
ioutils exporttemplate
-
ioutils exportupdategroup
-
ioutils importasset
-
ioutils importfield
-
ioutils importfilter
-
ioutils importpolicy
-
ioutils importtemplate
-
ioutils importupdategroup
-
reorgdb
-
startservice
-
stopservice
-
updatesupportinfo
-
-
The argument -s cannot be specified in a cluster environment. If you specify this argument, the command fails.
Return value
The following table shows the return values of the ioutils exportdevice command.
Return value |
Description |
---|---|
0 |
The command finished normally. |
11 |
The specified format for the argument is incorrect. |
12 |
The specified folder is invalid, the disk does not have sufficient capacity, or the folder does not exist. |
15 |
A file access error occurred when outputting the file, or the disk does not have sufficient capacity. |
31 |
Another command is being executed. |
51 |
You do not have the permissions to execute this command. |
54 |
The management server has not been set up. |
70 |
The specified filter does not exist. |
101 |
Command execution failed because there is not enough memory, or due to some other reason. |
120 |
A database access error occurred. |
150 |
The command execution was interrupted due to some other error. |
Example
The following example shows use of this command to export device information to C:\temp\deviceexpo.csv.
ioutils exportdevice -export C:\temp\deviceexpo.csv -encoding UTF-8 -s
Related Topics: