Prerequisites
1. Python version 3.4 and up on the JetPatch server. Learn more on intigua-python-client RPM
2. SSH to JetPatch server and copy the attached shell script to /opt/intigua-python-client/
3. Maintenance Window names should already be created, this script just adds new entries
3. Create a CSV file
Format:
MaintenanceWindow_Name,SchduleEntry_Name,Start_Day,End_Day
Example:
AprilWindow,AllDays,2020-03-29 00:00:00,2020-03-31 04:30:00
5. Create API key, refer to Granting API Permission URL for more details.
Using Script:
In the script itself, there's a detailed usage section -
Run Script:
Execute the command from JetPatch Server (make sure you are under dir /opt/intigua-python-client/)
addSchedules.sh https://<DNS>/vmanage-server/rest/rest-api <username> <filename>.csv <action>
Troubleshooting
Test your credentials:
display_credentials.py --apikey <APIKEY> --url https://<DNS>/vmanage-server/rest/rest-api --user <username>
The result of this command should be:
Successfully fetched Credentials
Comments
0 comments
Please sign in to leave a comment.