formatlog command

Use the formatlog command to save the XML file, which is created by the getinfor command.

formatlog command syntax

OneCli.exe inventory formatlog [--srcdata][--output][--hldec]
Table 1. formatlog command parameters
Parameter Required/Optional Notes
--srcdata Required  
--output Optional By default, the log file output is saved to ../Onecli-%PID%-%date%-%time%/.

The Onecli-update-compare.xml file is saved in the /onecli folder. If any of the files already exist, they will be overwritten.

Example of the formatlog command

This example formats and saves the --srcdata xxx.xml file.

OneCli.exe inventory formatlog --srcdata xxx.xml --output d:\onecli\inventory