Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeEmacs
#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 sure 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. (no prompts)
unalias cp

#Set NMIS version
nmisver=8.4.6g
   
#Unarchive the NMIS tarball
cd ~
tar xvf nmis-$nmisver.tar.gz

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

Checking Model Changes

NMIS 8.4.6g recent Recent releases have included many device modelling enhancements, improved graphs and more, if you have made no changes to your models you can overwrite your existing models, otherwise you will need to merge the new models with the existing models, that requires consideration outside this document (git could be your friend here).  To overwrite your existing models:

...