Save scripts and run a task
Use the Script Library for code you expect to run again. Use New Task for one command or one library script on an online client. A job combines multiple steps and can run on a schedule.
Create a library script
Section titled “Create a library script”- Open Script Library at
/scriptlibrary, then choose New Script. - Give it a clear name and select its script type.
- Pick an existing folder, or enter a logical path such as
/operations/linux/. - Create the entry, edit its contents and choose Save.
Keep the script focused on a specific job. Put the operating-system requirement and expected inputs near the top so another operator can review it quickly.
For a first Linux shell check, the complete script can be:
hostnameuptimedf -hFor PowerShell, a simple identity and service check is:
$env:COMPUTERNAMEGet-Service | Select-Object -First 10 Name, StatusThese examples read information; use a client with the matching interpreter.
Run it
Section titled “Run it”- Open Orchestration → New Task at
/tasks/new. - Select the tenant, environment and online target. Check the hostname and operating system shown in the target panel.
- Select Library Script, choose Browse, then pick the saved script. For a one-off command, select Shell Command instead.
- Add the script’s required parameters. Under Advanced, review the preferred PowerShell interpreter if applicable.
- Submit the task and follow its recorded result. Open Task History at
/tasks/historyto return to it later.
Check the result
Section titled “Check the result”Read the final task state, exit code and output. Submission means NetRatel accepted the request; the execution result establishes what happened on the computer.
Scripts run under the native client’s account. PowerShell requires an installed interpreter: Auto prefers pwsh, with Windows PowerShell as a Windows fallback. Linux and macOS PowerShell scripts require pwsh. NetRatel reports an unavailable interpreter as a task failure without stopping the client.