How To
Summary
Execution of shell scripts on macOS devices as an action
Steps
MaaS360 adds support for a new dynamic action for enrolled macOS devices, allowing the administrators to remotely push shell scripts to macOS devices for execution right from the device view.
Note:
- The shell scripts are not executed if the device is offline.
- The shell script execution is only supported on MaaS360 for macOS agent version 2.35.100.003.
Users can locate the executed shell script and its output file in the following path:
/Library/Application\ Support/MaaS360/scriptTmp
Executing shell script
To execute a shell script,
1. In the MaaS360 portal, navigate to Devices > Inventory and select a device.
2. Click More > Execute Shell Script.
Result: The Execute Shell Script window is displayed.
3. Provide the following details:
- Name: Provide a name that describes the function of shell script.
- Number of days to expire: Specify the shell script expiration days between 1-90. If the device is online, the shell script is executed right away, else the script is scheduled for execution when the device comes back online until expiration.
Note: The shell script is not executed if the devices come online after the expiry date.
4. Select the shell script and click Submit.
Result: The shell script is successfully executed on the device. The execution status can be tracked in Device History.
Was this topic helpful?
Document Information
More support for:
IBM MaaS360
Software version:
All Versions
Operating system(s):
Mac OS
Document number:
739087
Modified date:
29 November 2018
UID
ibm10739087