You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Background

NMIS has been collecting CBQoS data from Cisco Devices for a very long time, to produce the necessary charts, it is only required to sent some of SNMP MIBS.  For more detailed reporting now supported in opReports, it is necessary to collect additional CBQoS MIBS.  The full list of MIBS supported for CBQoS collection after this patch is applied are:

  • PrePolicyByte 

  • DropByte 

  • PostPolicyByte

  • DropPkt 
  • NoBufDropPkt 

  • PrePolicyPkt 

Installing the Patch

Before you Begin

Download the nmis-8.4-cbqos.tar.gz patch; then copy the patch file to the server to be patched.  It is easy to process this file if you are the root user and the file is in the root user home directory which is /root

Applying the Patch

#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-cbqos.tar.gz
 
# Patch the Code Base
cd nmis-8.4-cbqos 
cp -r * /usr/local/nmis8

Updating the Production Model Files

If there are no customisations to your CBQoS model files, copy the new ones over the old ones, or you will need to merge the differences manually.

# Copy the model-install files over the production files.
cp /usr/local/nmis8/models-install/Common-cbqos-in.nmis /usr/local/nmis8/models/Common-cbqos-in.nmis
cp /usr/local/nmis8/models-install/Common-cbqos-out.nmis /usr/local/nmis8/models/Common-cbqos-out.nmis

Clean up and Test

# optionally audit your config
/usr/local/nmis8/bin/nmis.pl type=audit
# fix your config
/usr/local/nmis8/bin/nmis.pl type=config
# fix permissions
/usr/local/nmis8/admin/fixperms.pl
# test polling
/usr/local/nmis8/bin/nmis.pl type=collect debug=true node=<node to test>  
  • No labels