01-22-2020 02:08 AM
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)
01-22-2020 03:42 AM - edited 01-22-2020 03:43 AM
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
01-22-2020 03:58 AM
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)
01-22-2020 04:41 AM - edited 01-22-2020 04:42 AM
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.
01-22-2020 04:47 AM
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?
01-22-2020 06:20 AM
here is the freeing up the space. ( make sure you understand the files before you delete, you can delete any logs)
01-22-2020 07:25 AM
Hi Balaji,
Many thanks, I will update on this thread on Monday after applying the solution.
01-26-2020 10:09 PM
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)
01-26-2020 10:20 PM
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?
01-27-2020 05:18 AM
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)
01-28-2020 08:53 PM
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.
02-17-2020 01:15 AM
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
02-17-2020 02:35 AM
How I can copy this file haSettings.xml from my PC to /opt/CSCOlumos/conf/rfm/classes/com/cisco/common/ha/config/
03-23-2020 11:19 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide