...
Code Block | ||
---|---|---|
| ||
#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
#Unarchive the NMIS tarball
cd ~
tar xvf nmis-8.4.1g.tar.gz
mkdir /usr/local/nmis8/models-install
# Patch the Code Base
cp nmis8.4.1g/admin/* /usr/local/nmis8/admin
cp nmis8.4.1g/bin/* /usr/local/nmis8/bin
cp nmis8.4.1g/cgi-bin/* /usr/local/nmis8/cgi-bin
cp -r nmis8.4.1g/install/* /usr/local/nmis8/install
cp -r nmis8.4.1g/lib/* /usr/local/nmis8/lib
cp -r nmis8.4.1g/menu/* /usr/local/nmis8/menu
cp nmis8.4.1g/models-install/* /usr/local/nmis8/models-install |
...