Patching NMIS with 8.3.4G Update

NMIS 8.3.4G is being released to customers who require it, and this is essential when wanting to implement the new Opmantek Commercial modules like opMaps, opReports, opHA, opFlow, opSLA.

Patch NMIS8 with the NMIS8.3.4G update

#Backup current NMIS code and config including models
DATE=`date "+%Y-%m-%d-%H%M"`
cd /usr/local/nmis8
tar cvf ~/nmis8-backup-$DATE.tar ./admin ./bin ./cgi-bin ./conf ./install ./lib ./menu ./mibs ./models

#Make NMIS is working before you patch it.
/usr/local/nmis8/bin/nmis.pl type=collect debug=true node=<node to test>

#Get CP working right.
unalias cp

#Unarchive the NMIS tarball
cd ~
mkdir patch
cd patch 
tar xvf ../nmis-8.3.4g.tar.gz

# Patch the Code Base
cp nmis8/admin/* /usr/local/nmis8/admin
cp nmis8/bin/* /usr/local/nmis8/bin
cp nmis8/cgi-bin/* /usr/local/nmis8/cgi-bin
cp -r nmis8/install/* /usr/local/nmis8/install
cp -r nmis8/lib/* /usr/local/nmis8/lib
cp -r nmis8/menu/* /usr/local/nmis8/menu
cp nmis8/models/* /usr/local/nmis8/models

# merge changes for new NMIS Config options. 
/usr/local/nmis8/admin/updateconfig.pl /usr/local/nmis8/install/Config.nmis /usr/local/nmis8/conf/Config.nmis

# copy newer configuration files (check these files before running) 
cp /usr/local/nmis8/install/Users.nmis /usr/local/nmis8/conf
cp /usr/local/nmis8/install/Services.nmis /usr/local/nmis8/conf
cp /usr/local/nmis8/install/License.nmis /usr/local/nmis8/conf
cp /usr/local/nmis8/install/Modules.nmis /usr/local/nmis8/conf
cp /usr/local/nmis8/install/Escalations.nmis /usr/local/nmis8/conf
cp /usr/local/nmis8/install/Access.nmis /usr/local/nmis8/conf
cp /usr/local/nmis8/install/Portal.nmis /usr/local/nmis8/conf
cp /usr/local/nmis8/install/logrotate.conf /usr/local/nmis8/conf
cp /usr/local/nmis8/install/users.dat /usr/local/nmis8/conf

# fix permissions 
/usr/local/nmis8/admin/fixperms.pl 

# test polling
/usr/local/nmis8/bin/nmis.pl type=collect debug=true node=<node to test>