Can this be done?
I've run into the same issue. I've got devices with and without domain names (e.g. routers (with) vs. firewalls (without)).
What I did to get around this was to create a second custom property for ConfigFlag2 for my devices with domain names. Then I copied 62-Configs.Resource to 62-Configs2.Resource. I edited this file and changed the SQLResource.SQL statement "where ConfigFlag = 1" to "where ConfigFlag2 = 1".
In my Manage Views, I have two Config Listing entries. Add both to cover both types of SysName entries. Then just edit the views to correspond to your particular config folder pattern (e.g. I had to add the domain name .xxx.com after the ${Caption} for my devices with domain names).
I know its a bit of a brute force workaround but it's working fine for me and I can get the configs online for all my devices.
I would like to know this as well. This would be one of the nicest things to happen to me.
The ${SysName} variable reports the value stored in the RFC1213-MIB:sysName MIB (OID: 1.3.6.1.2.1.1.5). This MIB is an administratively asisgned name for the managed node. By convention, this is the node's fully-qualified domain name.
I want to make sure I understand what you are recommending. Are you saying to remove the IP domain name from the configuration of the device? If so, that is not easily done in some environments where the domain name is used for things such as encryption.
Yes, and this is my problem. I have to configure the domain name on my devices in order to get ssh working on the device. I just wish there was a variable with the hostname but without the domain name. Currently, I have to manually rename each device in Cirrus when I add new devices.
Have you seen a standard (i.e., MIB II) SNMP MIB value that stores the name in the format you prefer? If so, it would be great if you provided it. I can add a feature request for Cirrus to collect that value.
I see there is an open feature request on this for all those who want to vote on it!
https://thwack.solarwinds.com/ideas/3314
See if this document I created helps:
How to trim, remove, or truncate domain names discovered and displayed in NPM 11.5.2 and NCM 7.4
Swift Packets!
Rick Schroeder