Skip to main content

Command line

The command line format for Snow Inventory Agent for Unix is:

(java -jar) [/opt/snow/]snowagent.jar [options] [<command> [<arguments>]]

Global options

Global optionDescription
-w <dir>Override working directory otherwise inherited from shell/environment
-vEnable verbose mode, bump all logging to max level (enable all tags)
-c snowagent.configRead the configuration file from the given location instead of the default one.
This should be considered a one-time operation as it does not change other behaviors of the agent.
-data-dir <dir>Override data directory (regardless of configuration)
-? or -hPrint help text and exit

Commands

CommandDescription
copyrightShow copyright notice
manifestPrint the manifest in JSON format and exit
scanScan the current device and create a snowpack file in the target destination (as set by configuration). This will start a scan regardless of any schedule or other configuration. It will not start a scan if there is a running scan in progress. After the scan is completed the agent will exit. The scan result is not automatically sent.
sendSend files from the data directory. Files that are successfully sent are deleted
testRun a self-test. Check configuration and server connectivity, then exit with a 0 (if successful) otherwise with a non-zero exit code
updateCheck for updates now, and install if any are found.
  • Option: -package <location>
    Function: Use an update package from a specific location
Updates can be provided from Snow Inventory Server or a local .snowpack file.
Note: When updating snowagent.jar and other JAR files, such as the Snow Inventory Oracle Scanners, the accompanying SIGN file must also be included.
versionPrint the current snowagent version and exit