You must be a MyPeek member to download our extensibility solutions. Click here to learn more about the benefits of membership and find out how to sign up for free.
This file only available to MyPeek members.
Category : Scripts
Submitted By : Savvius
Downloaded : 21 Times
Rating : 5 of 5
The Insight Upgrade Script will upgrade one or more Insights.
The first step is to download the upgrade file from the Insight Support Portal. To do that, login to the portal, and select "Get the Insight 2.1 upgrade package" from the Download menu.
If the script is going to be used to upgrade more than one Insight, then create a file with the list of Insights. The file looks like this:
# The file with the list of Insights (insight_list.txt) is a comma separated file that might look like this: # 10.8.1.55,root,savvius 10.4.2.3,root,savvius1
usage: insight_upgrade.py [-h] [-z ZIPFILE] [-g GZFILE] [-e ENGINES] [-r RPATH] [-a ADDRESS] [-u USERNAME] [-p PASSWORD] Upgrade one or more Insights optional arguments: -h, --help show this help message and exit -z ZIPFILE, --zipfile ZIPFILE -g GZFILE, --gzfile GZFILE -e ENGINES, --engines ENGINES -r RPATH, --rpath RPATH -a ADDRESS, --address ADDRESS -u USERNAME, --username USERNAME -p PASSWORD, --password PASSWORD
How it works:
This script will take the credentials for a single Insight, or a file with a list of Insights, and perform an upgrade by using ftp to copy the upgrade file to the Insights, and then use gunzip and tar to unpackage the files
The Insight upgrade file on the Insight portal is a zip file. However, Insight does not have unzip, so if the -z parameter is used with a zip file, the script will unzip it, and repackage it as a compressed tar file, before doing the ftp.
Example command line:
Single Insight (passing it a zip)
python insight_upgrade.py -a 10.8.1.55 -username root -password savvius -z insight_upgrade.zip
Multiple Insights (passing it a tar.gz)
python insight_upgrade.py -e insight_list.txt -g insight_upgrade.tar.gz
12/5 - Posted version 1
What a great script! how about some more?
Posted by: Chris Bloom on Wednesday, December 13th, 2017 at 5:20 PM