Symptom
NMS (Network Management Services) doesn't display the PSU 0/PM7 for NCS5508 chassis.
Conditions
8 PSU installed and NMS is used to monitor the device
Workaround
Workaround on the NMS side without fix on the NCS5508:
Here are the steps to apply the change:
1. Go to this location: cd /opt/CSCOlumos/tomcat/webapps/webacs/applications/storm/chassisview/com.cisco.prime.deviceprofile/NCS55XX_CE/Cisco_NCS_5508/data/
2. Take a backup. cp Cisco_NCS_5508.json Cisco_NCS_5508.json.orig
3. Edit Cisco_NCS_5508.json: vi Cisco_NCS_5508.json
change the line: "Rack_0-Power_Module_Slot_7":{
To this: "Rack_0-Power_MOdule_Slot_7":{
save and exit
This will bypass the issue.
NOTE! After restart of EPNM, the original file will be extracted once again. If we want to make this permanent, we can re-copy it in a crontab:
1. Make another copy with the fix: cp Cisco_NCS_5508.json Cisco_NCS_5508.json.fix
2. Create a sh file that copy the fix to the actual file: vi ps7-5508.sh
3. Put this content in the sh file:
cp /opt/CSCOlumos/tomcat/webapps/webacs/applications/storm/chassisview/com.cisco.prime.deviceprofile/NCS55XX_CE/Cisco_NCS_5508/data/Cisco_NCS_5508.json.fix /opt/CSCOlumos/tomcat/webapps/webacs/applications/storm/chassisview/com.cisco.prime.deviceprofile/NCS55XX_CE/Cisco_NCS_5508/data/Cisco_NCS_5508.json
4. save and exit. Give permission to the file: chmod +x ps7-5508.sh
5. Edit crontab: crontab -e
6. Add this line: 0,15,30,45 * * * * sh /opt/CSCOlumos/tomcat/webapps/webacs/applications/storm/chassisview/com.cisco.prime.deviceprofile/NCS55XX_CE/Cisco_NCS_5508/data/ps7-5508.sh > /dev/null 2>&1
This will make the change permanent (copied every 15 minutes automatically… so it will survive a restart).
Once need to revert (once there is a fix from device side):
* If applied in crontab, then remove the line from crontab
* Copy the Cisco_NCS_5508.json.orig to Cisco_NCS_5508.json so it has once again the original code.
* Delete the sh script and Cisco_NCS_5508.json.orig, Cisco_NCS_5508.json.fix as it is no longer needed. This is optional… No impact if those stay.