Is it possible to have a designated domain omitted when showing a sysName?

Hi, just hoping someone can help me out with a minor UI annoyance:

It was necessary to set a domain name on our Cisco switches in order to enable SSH, despite the fact that our management VLAN is isolated and we don’t bother with setting a domain on other devices. Consequently, all our Cisco switch sysNames have that unnecessary domain appended to them in LibreNMS whereas and everything else is just the hostname. Since we have LibreNMS set to display devices by sysName (DNS on the management network was determined to be unnecessary, so it would be just IPs otherwise), the domains are kind of cluttering things up.

Is there a way to tell LibreNMS to omit a particular domain when displaying the sysName?

Thanks for your help.

FYI, In cisco switches you only need to the domain name to generate the certs for ssh, once ssh is enabled and working you can disable the domain name no ip domain-name. This is what i do

1 Like

This may be a little janky but I would imagine that you could also do something like this in your /etc/hosts

10.10.10.10 cisco_switch1.mydomain.com
10.10.10.10 cisco_switch1

then add the device as cisco_switch1 in librenms.

I am looking to do exactly the same : remove the domain name in the sysNames.

Weird thing for me is for some equipment domain name is displayed, for other not. Maybe they answer differently to snmp when running different Os version ?

Anyway, I am still looking for a more satisfactory way to do it than to play with /etc/hosts or removing domain name from equipment config.

This topic was automatically closed 730 days after the last reply. New replies are no longer allowed.