Page 1 of 1
Network map scan to label with *just* hostname, not FQDN?
Posted: Thu Aug 12, 2010 10:03 pm
by bkeadle
I like the Dude scanning resolving IP addresses for me. However, is there a way to just have the host name displayed on the map and not the Fully Qualified Domain Name (FQDN)? It makes for a pretty cluttered map, and is tedious to go in and manually remove the domain name for each discovered device.
Re: Network map scan to label with *just* hostname, not FQDN
Posted: Thu Aug 12, 2010 11:12 pm
by lebowski
I looked and looked and never found a good way to have it contain only the host portion. I decided to add every device manually. Input the FQDN then change it to just the host after it is installed... Guess your stuck for now manually modifying every host.
Re: Network map scan to label with *just* hostname, not FQDN
Posted: Fri Aug 13, 2010 9:15 am
by gsandul
I looked and looked and never found a good way to have it contain only the host portion.
Why don't you posted the question on the forum?
It's not to complex to make it show what you wish. 7 minutes for solution
google.png
The code for device label should be
[Device.Name]
[if(string_find(device_property("Name"),".") < 1000
,string_substring(device_property("Name"),0,string_find(device_property("Name"),".") )
,device_property("Name"))]
[device_performance()][Device.ServicesDown]
Re: Network map scan to label with *just* hostname, not FQDN
Posted: Fri Aug 13, 2010 4:22 pm
by lebowski
Well it was over a year ago and I wanted to get other stuff working. I thought about it last night and was thinking something like you did could be done.
You always have great solutions, thanks again gsandul.
Re: Network map scan to label with *just* hostname, not FQDN
Posted: Sat Aug 14, 2010 2:51 pm
by bkeadle
Whoa...I would have never come up with that. I'll plug that it and give it a go. Thanks for your post!