cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4559
Views
5
Helpful
13
Replies

Cisco Prime not working

Adnan Khan
Level 4
Level 4

Hi, Cisco Prime is down and when I use command "ncs status" it gives below output. Any solution to this issue?

 

PRIME# ncs status
Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:862)
at java.util.Scanner.next(Scanner.java:1371)
at com.cisco.common.ha.config.HighAvailabilityConfig.parseXmlFile(HighAv ailabilityConfig.java:237)
at com.cisco.common.ha.config.HighAvailabilityConfig.parseXmlFile(HighAv ailabilityConfig.java:219)
at com.cisco.common.ha.config.HighAvailabilityConfig.<init>(HighAvailabi lityConfig.java:199)
at com.cisco.common.ha.config.HighAvailabilityConfig.getInstance(HighAva ilabilityConfig.java:208)
at com.cisco.packaging.HMAdmin.initHealthMonitorApi(HMAdmin.java:409)
at com.cisco.packaging.HMAdmin.hmServerStatus(HMAdmin.java:302)
at com.cisco.packaging.HMAdmin.status(HMAdmin.java:172)
at com.cisco.packaging.WCSAdmin.status(WCSAdmin.java:1074)
at com.cisco.packaging.WCSAdmin.status(WCSAdmin.java:1047)
at com.cisco.packaging.WCSAdmin.runMain(WCSAdmin.java:319)
at com.cisco.packaging.WCSAdmin.main(WCSAdmin.java:1514)

13 Replies 13

balaji.bandi
Hall of Fame
Hall of Fame

check the space and reboot and check if that resolve the issue.

 

follow below thread may help you :

 

https://community.cisco.com/t5/network-management/pi-not-start-java-error/td-p/3217613

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi,

 

How I can get in /opt/CSCOlumos/conf/rfm/classes/com/cisco/common/ha/config/haSettings.xml and can you give some steps. I also have found the below output.

 


PRIME# show disks

disk: 14% used (12072724 of 92891128)
temp. space 2% used (35892 of 2031952)

Internal filesystems:
warning - /opt is 100% used (457517724 of 482001544)

PRIME/admin# show disks

disk: 14% used (12072724 of 92891128)
temp. space 2% used (35892 of 2031952)

Internal filesystems:
warning - /opt is 100% used (457517724 of 482001544)

 

 

Internal filesystems:
warning - /opt is 100% used (457517724 of 482001544)

 

#root  ( type root)

 

enter the password to enter to shell and clear the space to get all working as expected.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Many thanks for your reply Balaji.

 

Can you tell me which files/directories have to be deleted and what is the syntax to view files inside the directory how to delete it? 

here is the freeing up the space.  ( make sure you understand the files before you delete, you can delete any logs)

 

https://www.cisco.com/c/en/us/support/docs/cloud-systems-management/prime-infrastructure/200720-Prime-Infrastructure-Troubleshooting-L.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi Balaji,

 

Many thanks, I will update on this thread on Monday after applying the solution.

Still getting below although seems have enough space available

 

ade # df -h /opt
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/smosvg-optvol
460G 105G 332G 24% /opt

 

PRIME/admin# ncs status
Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:862)
at java.util.Scanner.next(Scanner.java:1371)
at com.cisco.common.ha.config.HighAvailabilityConfig.parseXmlFile(HighAvailabilityConfig.java:237)
at com.cisco.common.ha.config.HighAvailabilityConfig.parseXmlFile(HighAvailabilityConfig.java:219)
at com.cisco.common.ha.config.HighAvailabilityConfig.<init>(HighAvailabilityConfig.java:199)
at com.cisco.common.ha.config.HighAvailabilityConfig.getInstance(HighAvailabilityConfig.java:208)
at com.cisco.packaging.HMAdmin.initHealthMonitorApi(HMAdmin.java:409)
at com.cisco.packaging.HMAdmin.hmServerStatus(HMAdmin.java:302)
at com.cisco.packaging.HMAdmin.status(HMAdmin.java:172)
at com.cisco.packaging.WCSAdmin.status(WCSAdmin.java:1074)
at com.cisco.packaging.WCSAdmin.status(WCSAdmin.java:1047)
at com.cisco.packaging.WCSAdmin.runMain(WCSAdmin.java:319)
at com.cisco.packaging.WCSAdmin.main(WCSAdmin.java:1514)

ade # du -sh /opt/CSCOlumos/conf/rfm/classes/com/cisco/common/ha/config/haSettings.xml


0 /opt/CSCOlumos/conf/rfm/classes/com/cisco/common/ha/config/haSettings.xml

 

is that possible to copy haSettings.xml from any working Prime to this one?

check the content :

 

cat /opt/CSCOlumos/conf/rfm/classes/com/cisco/common/ha/config/haSettings.xml

 

if nothing there, yes you can copy from others ( make sure you read the content before you doing)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi Balaji,

 

Really appreciate it if you can provide this file from working Prime. I don't have any other Prime. I will copy paste and check and update the result here.

If anyone has this file even from lab testing really appreciate that. I want to paste this file and see if this can resolve my issue

 

haSettings.xml

How I can copy this file haSettings.xml from my PC to /opt/CSCOlumos/conf/rfm/classes/com/cisco/common/ha/config/

Hi Adnan Khan,
Probably you already solved the problem, but i will give a possible solution anyway.

Depending of the version of PI, you can check under /opt/CSCOlumos/conf/rfm/classes/com/cisco/common/ha/config/ if there is a haSettings_bkup.xml file.

If so, you can make the following commands in order to restore the HA file.

 

cd /opt/CSCOlumos/conf/rfm/classes/com/cisco/common/ha/config/ 

cp haSettings_bkup.xml haSettings.xml

 

check if the file has some info by doing the following command:

 

view haSettings.xml,

then Ctrl + d to exit

 

If so do reload and check with ncs status if the problem is resolved.

Hope this resolves your problem.

 

Ricardo Cardoso

Review Cisco Networking for a $25 gift card