08-16-2009 05:24 PM
Having some issues with CS Discovery and when looking at the CSDiscovery log file the following error occurs
log4j:WARN No appenders could be found for logger (com.cisco.nm.csdiscovery.CSDiscoveryManager).
log4j:WARN Please initialize the log4j system properly.
Can you assist me with what this means and how to fix
Thanks
08-16-2009 05:35 PM
This is not a real error. What problems are you having with Discovery?
08-16-2009 08:33 PM
Discovery is taking a long long time to run...in fact it never finishes. I have to manually stop the service before it can be started again. The error I get when trying to stop it is "Unable to stop the running the discovery instance. Please check the log file C:/PROGRA~1/CSCOpx/log\CSDiscovery.log for more details." This is a real issue as I have discovery scheduled to run on a twice-daily basis
08-16-2009 08:43 PM
This is most likely CSCsv42110 which is fixed in LMS 3.2. Essentially, CSDiscovery waits for all of its worker threads to finish before the daemon stops, and discovery is reported as being complete. If something happens to one of these threads such that it dies, then the main thread monitor will wait forever. The workaround is to manually stop CSDiscovery using the command:
pdterm CSDiscovery
However, since LMS 3.2 is available, it is probably better just to upgrade. You can either download the upgrade from http://www.cisco.com/go/lms/ or order the upgrade DVD from http://www.cisco.com/upgrade/ by entering your SAS contract number.
That said, it would be useful to see the whole CSDiscovery.log to rule out any other problems.
08-16-2009 09:11 PM
08-16-2009 09:14 PM
It looks like Discovery has crashed. Post the output of the pdshow command.
08-16-2009 09:23 PM
08-16-2009 09:32 PM
Yeah, that is what I saw. With CSDiscovery shutdown, delete NMSROOT/conf/csdiscovery/DiscoveryStatusObj, and that should help a bit on the next run. However, Discovery will still have a tendency to lock up until you upgrade.
Other than that, I don't see any real issues.
08-16-2009 09:41 PM
Is it an issue if the DiscoveryStatusObj file doesn't exist?
08-16-2009 09:44 PM
No. This file is created when Discovery completes. If the last Discovery was terminated, the file may not have been created yet.
While it won't help the hanging problem, there could be some config optimizations that would help the overall Discovery time (even after upgrading). If you can, post your NMSROOT/conf/csdiscovery/CSDiscovery-config.xml file.
08-16-2009 09:46 PM
08-16-2009 09:52 PM
You've got a lot of community strings here. For example, the 10.31.*.* range has two strings each with 2 retries and a 3 second timeout. For each device that uses Hornsby Public, Discovery will spend at least an extra 21 seconds waiting for the device to timeout to Hornsby.
If possible try tightening the community string ranges, and that will certainly save you some time.
08-16-2009 10:01 PM
Ok thanks for your help, will look into that
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