Troubleshoot > HP Service Manager Doctor > Command References > Service Manager Runtime commands (sm)

Service Manager Runtime commands (sm)

Service Manager Runtime commands allow you to run regular Service Manager commands in the Service Manager Doctor Tool. Therefore, you can use this command-line mode as a command-line console, except that it provides tool-specific commands. For example, you can run sm -reportcache -reportlocks to check both the cache and locks in one single command.

We do not recommend that you run commands that require options or that return no command results, such as sm -version -log:version.txt and sm -httpport:XXX.

The timeout for Service Manager Runtime commands is 50 seconds.

Option Description Usage
-reportstatus Retrieves the Service Manager status. sm -reportstatus
-reportlbstatus Retrieves the Service Manager load balancer status. sm -reportlbstatus
-reportcache Retrieves the Service Manager cache data. sm -reportcache
-reportipc Retrieves the semaphore data. sm -reportipc
-reportlocks Retrieves the lock status. sm -reportlocks
-reportlic Retrieves the Service Manager license status. sm -reportlic
-version

Retrieves the Service Manager version.

Note

  • Always available regardless of whether the Service Manager service is running or not.
  • Currently supports the reporting of versions 7.1x and 9.30

sm -version
-appversion Retrieves the Service Manager application version. sm -appversion
-sqlverifyconnection Verifies the database connection. sm -sqlverifyconnection
-reportshm Retrieves the Service Manager shared memory. sm -reportshm
-reportsem Retrieves the Service Manager semaphore. sm -reportsem
-all Runs all Service Manager Runtime commands at one time and returns the results in the output. sm -all
-help

Displays Help information.

Note If the -help option is used together with other options, only Help information is returned.

sm -help
-dlog Outputs the command result to html and txt files. sm -all -dlog

Note The sm commands listed in the table above, except the -all, -help, and -dlog options, are enabled by default and will be run when you run the sm -all or run -sm command. These sm commands are defined in the CmdOnDemand.xml file. You can edit this file to enable additional commands to be run. The CmdOnDemand.xml file can even include commands to launch external diagnostic tools. For example, the Service Manager Doctor tool is shipped with a shell script tool (supportTool.sh), which collects diagnostic information, such as stack traces of core system files, logs, and configuration files, and saves it in a $HOSTNAME_smsupport.tar file. See CmdOnDemand.xml for more information.