...
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 #Set NMIS version nmisver=8.4.6g #Unarchive the NMIS tarball cd ~ tar xvf nmis-$nmisvernmis$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 |
...
Code Block |
---|
# 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 /usr/local/nmis8/admin/updateconfig.pl /usr/local/nmis8/install/Access.nmis /usr/local/nmis8/conf/Access.nmis # update default config options that have been changed: /usr/local/nmis8/install/update_config_defaults.pl /usr/local/nmis8/installconf/Config.nmis |
Most of the config files will likely be the same as the install version, for these you can just copy the new versions
...