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 |
sdmgetlogs command collects the following information for each server.
-
Smart Device Manager
Acquisition information
Acquisition file
Windows system configurations
systeminfo.log
Windows registry
reginfo.log
Windows Events log
systemlog.evtx
applicationlog.evtx
Process information
tasklist.log
Service state information
sc_query.log
Network configurations
netstat_a.log
netstat_nr.log
netstat_no.log
ipconfig_all.log
Information of Smart Device Manager
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\conf\*
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\log\*
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\uC\CC\admin\logs\*
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\uC\CC\server\public\ejb\jp1itdmsdmanager\*
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\uC\CC\web\redirector\logs\*
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\uC\conf\*
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\uC\httpsd\conf\httpsd.conf
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\uC\httpsd\logs\*
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\uC\log\install.log
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\db\sdmdbupgrade.out
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\db\CONF\*
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\db\SPOOL\*
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\db\UXPLDIR\*spool\*
-
Communication Server
Acquisition information
Acquisition file
Windows system configurations
systeminfo.log
Windows registry
reginfo.log
Windows Events log
systemlog.evtx
applicationlog.evtx
Process information
tasklist.log
Service state information
sc_query.log
Network configurations
netstat_a.log
netstat_nr.log
netstat_no.log
ipconfig_all.log
Information of Communication Server
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\conf\*
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\log\*
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\uC\CC\admin\logs\*
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\uC\CC\server\public\ejb\jp1itdmsdcomsrv\*
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\uC\CC\web\redirector\logs\*
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\uC\conf\*
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\uC\httpsd\conf\httpsd.conf
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\uC\httpsd\logs\*
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\uC\log\install.log
-
JP1/IT Desktop Management 2 - Smart Device Manager Smart Device Agent
Acquisition information
Acquisition file
Information of Smart Device Agent
JP1/ITDM2 - SDM (Communication Server)-installation-folder\cms\log\agent\*
-
Messaging Server
Acquisition information
Acquisition file
Windows system configurations
systeminfo.log
Windows registry
reginfo.log
Windows Events log
systemlog.evtx
applicationlog.evtx
Process information
tasklist.log
Service state information
sc_query.log
Network configurations
netstat_a .log
netstat_nr .log
netstat_no .log
ipconfig_all .log
Information of Messaging Server
JP1/ITDM2 - SDM (Messaging Server)-installation-folder\mss\conf\*
JP1/ITDM2 - SDM (Messaging Server)-installation-folder\mss\log\*
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 the specified by option -f directory exists, sdmgetlogs command overwrites the existing files in the directory.
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
When you use sdmexportdb and sdmgetlogs command without -f option, Output
directory will be under the installation-directory of JP1/IT Desktop Management 2 - Smart Device Manager. Thus, when you uninstall this product, automatically this output directory will be deleted. Save this directory before uninstall.
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