sdmgetlogs (collecting log information)
This command collects log information compressed in zip format for the smart device manager, communication server, JP1/ITDM2 - SDM (Smart Device Agent), or messaging server.
- Organization of this page
Functionality
This command collects log information compressed in zip format for the smart device manager, communication server, JP1/ITDM2 - SDM (Smart Device Agent), or messaging server.
Execute this command on the server for which you want to collect log information. To collect log data for JP1/ITDM2 - SDM (Smart Device Agent), execute the command on the communication server.
The following table lists the output file names:
Collection target |
file name |
---|---|
Smart device manager |
tsinfo_manager.zip |
Communication server |
tsinfo_comsrv.zip |
JP1/ITDM2 - SDM (Smart Device Agent) |
tsinfo_agent.zip |
Messaging server |
tsinfo_msgsrv.zip |
Format
sdmgetlogs -target log-collection-target[ -f output-folder]
Arguments
- -target log-collection-target
-
Specify the log collection target as follows:
Collection target
Specification
Smart device manager
Manager
Communication server
Comsrv
JP1/ITDM2 - SDM (Smart Device Agent)
Agent
Messaging server
Msgsrv
- -f output-folder
-
Specify the absolute path (within 161 bytes) to the output destination of the collected log information.
If this argument is omitted, log information will be output to one of the following folders created by the command:
Collection target
Output folder if this argument is omitted
Smart device manager
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\troubleshoot
Communication server
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\troubleshoot
JP1/ITDM2 - SDM (Smart Device Agent)
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\troubleshoot
Messaging server
JP1/ITDM2 - SDM (Messaging Server)-installation-folder\mss\troubleshoot
Storage location
The command is stored in the following locations:
Collection target |
Storage location |
---|---|
Smart device manager |
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\bin |
Communication server |
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\bin |
JP1/ITDM2 - SDM (Smart Device Agent) |
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\bin |
Messaging server |
JP1/ITDM2 - SDM (Messaging Server)-installation-folder\mss\bin |
Execution permissions
Administrator permissions (this command is executed from the administrator's console if the Windows UAC function is enabled)
Notes
-
To collect log information for JP1/ITDM2 - SDM (Smart Device Agent), you must send log information from JP1/ITDM2 - SDM (Smart Device Agent) to the communication server before executing the command.
-
Multiple instances of this command cannot be executed simultaneously.
Return values
Return value |
Description |
---|---|
0 |
The command finished normally. |
11 |
The format for specifying the command arguments is invalid. Alternatively, the length of the folder name specified for the command argument exceeds the upper limit. |
12 |
You do not have the permissions to execute this command. |
13 |
The specified server is not correct, or the operating environment of JP1/ITDM2 - SDM (Smart Device Manager) is invalid. |
14 |
The folder does not exist, or you do not have permission to access it. |
15 |
A file access error occurred, or the disk does not have sufficient capacity. |
18 |
Another command is being executed. |
150 |
Other error occurred. |
Example
-
The following shows an example of using the command to output log information for the smart device manager to the C:\work folder.
sdmgetlogs -target Manager -f C:\work
-
The following shows an example of using the command to output log information for the communication server to the C:\work folder.
sdmgetlogs -target Comsrv -f C:\work
-
The following shows an example of using the command to output log information for JP1/ITDM2 - SDM (Smart Device Agent) to the C:\work folder on the communication server.
sdmgetlogs -target Agent -f C:\work
-
The following shows an example of using the command to output log information for the messaging server to the C:\work folder.
sdmgetlogs -target Msgsrv -f C:\work
Related Topics