This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

NCM that is Ping-Only - any good way to update Node Name based on Cisco config hostname?

I've got several hundred ping-only NCM nodes that are not reachable via SNMP, so Orion does not know the systname/hostname. Are any of you aware of a fancy way to script getting this updated without doing it manually? I don't want to reinvent the wheel if someone has done the legwork already. Outside of that, I'm thinking that I could export the configs to files, then parse those files for the hostname, and then general a SQL query to update the DB. Doesn't seem too difficult but again, if I can save time via your previous hard labor then I will take advantage!

aTdHvAaNnKcSe!

-Eric

Parents
  • rednarb​ Having the nodes managed within NCM, being able to run scripts on them, you could probably run a script via NCM (show hostname, or whatever gives you the name you want), then save it to a custom property. Then you can run a quick script to replace the node names with the value in that custom property. I know I have used NCM to update node names based on values from a custom property.

    Let me see if I can find my thread where I did that, and I'll post it back here when I find it.

  • I didn't realize I could save command output to a custom property! This would be really smooth and I would love to see how you did it once you find that! THANKS!

  • rednarb​ Yeah, I think my brain was a bit crossed when I first replied. My examples will most likely not benefit you too much, at least not directly. However, I did post them just in case, and fired up the bat signal to bring help. My example was pretty much the opposite of what you are needing. I used NCM to read the custom properties, then push those back into the devices to standardize the naming. You already have your devices named, and are wanting to update just the way they are shown within Orion/NCM.

    I'd venture to guess the API is going to be the easiest way to accomplish this, the most difficult part is getting the parsed command/hostname. If you already had a list of device names, it would be very easy to import that list into SolarWinds via the custom property editor/importer. After that, you just need to run the API to read those values and then write them back.

    Do you have a list of device names elsewhere already? Preferably something with hostname and IPs already matched up.

Reply
  • rednarb​ Yeah, I think my brain was a bit crossed when I first replied. My examples will most likely not benefit you too much, at least not directly. However, I did post them just in case, and fired up the bat signal to bring help. My example was pretty much the opposite of what you are needing. I used NCM to read the custom properties, then push those back into the devices to standardize the naming. You already have your devices named, and are wanting to update just the way they are shown within Orion/NCM.

    I'd venture to guess the API is going to be the easiest way to accomplish this, the most difficult part is getting the parsed command/hostname. If you already had a list of device names, it would be very easy to import that list into SolarWinds via the custom property editor/importer. After that, you just need to run the API to read those values and then write them back.

    Do you have a list of device names elsewhere already? Preferably something with hostname and IPs already matched up.

Children
No Data