探花大神

Understand Command Results

探花大神's Commands resource lets you run commands using PowerShell, Bash, and Shell across any number of devices (Windows, Mac or Linux) or Device Groups.  Every command returns an result code, also sometimes referred to as a result status, exit status, or exit code. Result codes can be useful in diagnosing issues with Commands.

Considerations:

  • Command results are not specific to 探花大神 and will vary depending on which OS or terminal the commands are executed on.
  • The Command Results page will timeout with an error if it takes too long to return all results. We recommend deleting command results that are no longer needed and trying again.
  • 探花大神 commands are executed on Windows as the NT\Authority user (unlike sudo for Linux/Mac); to function properly, command scripts will need to be written as user-agnostic.
  • Any change made via a command script will have to be applied to all users.
  • Command results and custom command scripts are outside the the scope of 探花大神 support.

Prerequisites

  • You need a managed device running on a supported OS to create a command.
  • You need to create device groups before you create a command. See Create a Device Group.

To see the status of all commands run on Devices:

  1. 颁濒颈肠办听DEVICE MANAGEMENT听&驳迟;听Commands听&驳迟;听Results聽to see all of the commands run.

    Image displays the Commands Results page.

Important:

The timestamps in the Command Results window display the current time on the device where the command ran. If you wish to view the time in UTC, select the聽Display Timestamps in UTC聽checkbox. Your time preference is saved across sessions until you change it.

  1. Click View to see the result details and log file.

    This image displays the details page.

Common Command Result Codes

Linux/Mac Result Codes

Result Code Description
0 The operation completed successfully
1 Catch-all for general errors
2 Misuse of shell built-ins (according to Bash documentation)
124 Function timeout
126 Command invoked cannot execute
127 Command not found
128 Invalid argument to exit
128+n Fatal error signal 鈥渘鈥
255\* Exit status out of range

Windows Result Codes

Result Code Description
0 The operation completed successfully
1 Incorrect function
2 The system cannot find the file specified
124 Function timeout
126 The specified module could not be found
127 The specified procedure could not be found
128 There are no child processes to wait for
Back to Top

List IconIn this Article

Still Have Questions?

If you cannot find an answer to your question in our FAQ, you can always contact us.

Submit a Case