Cool Solutions

Mirror iManager Plug-ins on local server


March 31, 2017 3:05 pm





Your environment runs fine, all hosts are up and running. You install the latest OES updates but then, you have to install a few iManager NPMs which are not delivered with the OES patches.

Normally you do not allow your iManager to connect to the internet. So you have to reconfigure iManager to use the proxy, maybe set a rule at the proxy … and afterwards switch it back to secure.

On the other hand, you can use the script below, put it into your SMT-Server and configure iManager to use the local URL.

#! /bin/bash
# Script downloads the iManager-Plugins, store them locally and edit the XML-File.
# (This is the bash3 version)
# by thopp, Maintainet AG (c)
# April 2017
# Version: b1-0.01

trap cleanup EXIT  

# Create temporary File which contain the XML-data after downloads and 
TMPXML=$(mktemp -p /tmp/ tmpXXX)
URLLST=$(mktemp -p /tmp/ tmpXXX)
URLNEW=http://<Your SMT-Server here>$PSTORE

# Cleanup 
cleanup() {
  # Delete TMP-File
  rm -r $TMPXML
  rm -r $URLLST

# Get the XML-File from Novell:
wget -O $TMPXML

# Extract the download URLs 
grep "http://" $TMPXML | cut -f 3 -d [ | cut -f 1 -d ] | sort | uniq > $URLLST

# Download the NPMs an store them incl. Path 
while read URL ; do
done < $URLLST

# Edit the XML-File
sed "s||$URLNEW/|g" $TMPXML > $NEWXML

exit 0

If you want to use this script do the following:

Copy and paste it in a file. Name it e.g. Put this file to your SMT-Server into the directory /usr/local/bin.

Set the Owner to root and the rights to R/O

#chown root:root /usr/local/bin/
#chmod 500 /usr/local/bin/

Edit at least the Variable URLNEW.

Create a cronjob for a regular run. (E.g. once a week)

At last configure iManager to use the custom Download-Site (Tab Download Plugins)

Good luck

1 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 5 (1 votes, average: 5.00 out of 5)
You need to be a registered member to rate this post.

Tags: ,
Categories: Collaboration, Cool Tools, End-user How-to, IT Operations Management, Messaging & Team Collaboration, Open Enterprise Server, Open Workgroup Suite

Disclaimer: This content is not supported by Micro Focus. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.