We are here to help!

Find new ways to use Atera, Ask us anything.

Follow

Support for Bash Script Files (Mac)

Overview:

 

Atera now supports running Bash script files for Mac stations both via running an ad-hoc script or by adding scripts to a Profile.

Scripts can be created either by uploading an existing script, or by creating one online using the HTML editor in the Create Scripts form.

To learn how to:

  • Create a Bash Script Online
  • Upload a Bash Script
  • Run a Bash Script either directly from an Agent, or via an IT Automation Profile

follow the steps below:

 

Create a Bash Script Online

 

1. From the left-hand panel click Admin > Scripts
The Scripts page displays.
upscript6.jpg
3. Scroll to the bottom of the Scripts page and click the dropdown > Create Script 
The Create Script window displays. 
upscript7.jpg

4. Enter the Script Parameters:

  • Description: Enter the description 
  • File Name: Enter the filename without using spaces e.g. 'bashscript1'
  • File Type: Choose file type
  • Arguments: Optionally enter any arguments for the script
  • Batch File: Enter the script
You can paste into this field from your preferred text/script/html editor. 
5. Click Create
The script creation success message displays - you can now run and schedule the script in Atera.

 

Upload a Bash Script

 

1. From the left-hand panel click Admin > Scripts
The Scripts page displays.
upscript1.jpg
The Upload Script dialog box displays. 
upscript2.jpg
3. Upload the script file from your Mac and click Upload 

 

Run a Bash Script Ad Hoc (Send Direct to Mac Agent)

 

1. Navigate to the required Agent either directly from the devices tab on the left-hand panel, or via the Customer form.
bash2.jpg
2.Click the Manage dropdown, then click Run Script
The Run Script window displays.
 bash3.jpg
3. Select the required Bash script(s) and click Submit
Only Mac supported scripts are displayed.
The script is sent to the Agent and a confirmation message is displayed.
 bash4.jpg

 

Run a Bash Script via IT Automation Profile

 

1. From the left-hand panel click Admin > Patch Mgmt & IT Automation Management
The Patch Mgmt & IT Automation page displays.
agentv2.jpg
2. Select the required profile
The Profile page displays. Scroll to the bottom right of the screen to view the Scripts region.
scriptz1.jpg
3. Click Select
The Select Script window displays.
bashh.jpg
4. Select the Bash script and click Submit
The script is added to the profile.
bash44.jpg
 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request