Overview
This Python script automates the management of endpoints in JetPatch Manager by creating and assigning tags to endpoints and creating Smart Groups via the JetPatch Manager API.
The script eliminates manual processes, saving time and reducing human error while enabling efficient endpoint organization.
Prerequisites
- Python3
- Target Endpoint MUST have already been discovered by JetPatch Manager.
- The location for .py files is in the directory /opt/intigua-python-client/ on JetPatch Core Server 4.2.4 UR3 or later version.
| Note: Python scripts files archive is attached to this article. It can be manually copied into /opt/intigua-python-client/ directory on any previous JetPatch version. |
Usage Examples
Change to Script Directory
Change to /opt/intigua-python-client/ directory:
| cd /opt/intigua-python-client/ |
Single Operation
For performing a single operation (e.g., assign a single tag to a single endpoint, create a smart group based on a new tag):
| intigua_tagservers.py --apikey --url https:///vmanage-server/rest/rest-api --user username --list hostname,tag --createsmartgroup |
Multiple Operations
For performing multiple operations (e.g., assign a single tag to multiple endpoints):
| intigua_tagservers.py --apikey --url https:///vmanage-server/rest/rest-api --user username --list hostname,tag hostname,tag hostname,tag hostname,tag --createsmartgroup |
Important Notes:
|
Comments
0 comments
Please sign in to leave a comment.