• 0
Dan_Wood

Fixing device hostnames after being populated

Question

Our Logicmonitor install had a good number of devices added without PTR records and are all being identified with IP addresses. We've since fixed the reverses but doing data entry for >300 devices seems a bit silly.

Is there a way to initiate a rename-by-reverse similar to the way NetScan is able to for devices already tracked?

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
On 8/21/2018 at 3:04 PM, PeterMattsson said:

What happens if you rerun you netscan? Make sure to set rename to ##REVERSEDNS##.

Tried it a few times and it looks like it doesn't update the currently populated devices.

Share this post


Link to post
Share on other sites
  • 0

Sorry for the delay,

My next guess is that you create a script that lists the devices trough api. For each device do a ping (in PowerShell: Test-NetConnection) extract the computername and add it to the device displayname. Again through API.

We don't have a script like that but have been talking about writing one. If or when we do we'll put it up here but that may take a while so if you haven't solved your problem yet my recommendation is start scripting. Hope it works out for you.

Edited by PeterMattsson

Share this post


Link to post
Share on other sites
  • 0

@Dan_Wood - depending on your level of scripting comfort, I have a Python script you can use that will use the LogicMonitor API to pull device property 'system.sysname' and rename the device Display Name to that property...

Let me know if you're interested and I can clean it up and post it here...

*Update - someone posted similar functionality here: 

 

Edited by Kerry DeVilbiss
found it posted already!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now