How to create and run script procedure in devices?
ITarian python procedures are available in ‘Predefined Procedures’ Folder. Additionally, Endpoint Manager User can create custom python procedure and run the same over enrolled devices.
Step1: Go to “Configuration Templates” > “Procedures” > “Create” > “Create Script Procedure” and fill the form
1. Procedure name – Type procedure name
2. Description – Type description of the procedure
3. Folder – Choose folder from the drop-down [Default value is My Procedure]
4. Click Create button – To submit the form
Step 2: Go to “View Procedure” tab and Click the ‘Edit’ icon.
1. Paste or type your python script using the text editor
2. User can also use the existing procedure with the new procedure by the steps below
a. Click Add Existing Script button
b. Type the name of the existing script
c. Choose the script and Click Add button
d. Once the script gets loaded into the text editor, modify and save the procedure
3. Click Save button to save the script
Step 3. Review and Approve the procedure by Clicking Ready to Review and Approve icon one after another.
Step 4: To run the procedure over “Selected Devices” or “All devices”, follow the steps below.
A) Go to ‘Configuration Templates’ > ‘Procedures’ and Choose the procedure from the list
B) Click ‘Run’ icon
C) Choose “All devices” to run the procedure over all devices or Choose Selected Devices to execute the procedure over selected devices.
D) Select “Run as system user’ to run the procedure as Endpoint Manager user (Administrator privilege) or Select ‘Run as logged in user’ to run the procedure as logged in user from the local machine.
E) Click ‘Run’ button to apply the procedure for the devices.
F) To Check procedure logs, follow the below steps.
a.Go to “Execution Log” tab
b.Click ‘Details’ link for more details for the specific log
c.Click (…) the Expand icon to view complete output of the execution
Step 5: To run the procedure from the specific device, follow the steps below,
A) Go to “Devices” > “Device List”
B) Click the specific device from the table
C) Click “Run Procedure” button
D) Once the popup form presents, Type and Choose required procedure from the search box.
E) Select “Run as system user’ to run the procedure as Endpoint Manager user (Complete privilege) or Select ‘Run as logged in user’ to run the procedure as logged in user of the local machine.
F) Click ‘Run’ to apply the procedure over devices.
G) Technician can view procedure logs from the navigation “Devices” > “Device list” and by the
a. Select the specific Device
b. Click Procedure Logs