Seed File update LMS 3.1

Answered Question
Jan 15th, 2009
User Badges:

I'm trying to automate a way to update the cdp seed file entry. I have a script that runs on LMS2.6 that updates the DeviceDiscovery.properties with entries changed in the servers hosts file.


With version 3.1 it doesn't appear that this file is used, instead it looks like an XML file is generated (which I've been seeing issues with, another conversation). Can you tell me a little more about that XML file and how it gets generated, is there a place on the server side that I can update the seed instead of going through the GUI?


Correct Answer by Joe Clarke about 8 years 2 months ago

The CSDiscovery-config.xml file under the job ID directory in NMSROOT/objects/csdiscovery.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Joe Clarke Thu, 01/15/2009 - 09:52
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

The XML file is generated by adjusting the Discovery settings under Common Services > Device and Credentials > Device Discovery. The file is NMSROOT/conf/csdiscovery/CSDiscovery-config.xml. This file is used for ad hoc Discoveries, but not when Discovery is scheduled, as different jobs may use different settings.


While I don't recommend modifying this file directly, you could certainly do it provided you do not corrupt the syntax. CDP seeds are added as sub-elements of the CDP Module element. A seed device imported from Campus Discovery would look like:




...

sirbaughmf Thu, 01/15/2009 - 09:57
User Badges:

Ok, thanks. What file is used for scheduled discoveries?

Correct Answer
Joe Clarke Thu, 01/15/2009 - 10:01
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

The CSDiscovery-config.xml file under the job ID directory in NMSROOT/objects/csdiscovery.

sirbaughmf Wed, 01/21/2009 - 09:29
User Badges:

One last question: After several days I've gone back to take a look at the seed file entries, CDP seeds look good, and the Global entries that I deleted have returned, are the global seeds kept in a different location? I see them in the CSDiscovery-config.xml file under /conf/csdiscovery, but I didn't put them back in there....

Actions

This Discussion