Community discussions

MikroTik App
 
bkeadle
just joined
Topic Author
Posts: 4
Joined: Fri Aug 06, 2010 1:38 am

Network map scan to label with *just* hostname, not FQDN?

Thu Aug 12, 2010 10:03 pm

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.
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: Network map scan to label with *just* hostname, not FQDN

Thu Aug 12, 2010 11:12 pm

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.
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Network map scan to label with *just* hostname, not FQDN

Fri Aug 13, 2010 9:15 am

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]
You do not have the required permissions to view the files attached to this post.
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: Network map scan to label with *just* hostname, not FQDN

Fri Aug 13, 2010 4:22 pm

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.
 
bkeadle
just joined
Topic Author
Posts: 4
Joined: Fri Aug 06, 2010 1:38 am

Re: Network map scan to label with *just* hostname, not FQDN

Sat Aug 14, 2010 2:51 pm

Whoa...I would have never come up with that. I'll plug that it and give it a go. Thanks for your post!