Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Special Characters LMS

Which Special characters are allowed in the hostname field of device in DCR ...??


Hitesh Vinzoda


Re: Special Characters LMS

Hostname field in LMS is only limited by what is actually accepted as a valid hostname string in the command line of the device.


- The above explanation is only referencing the "hostname" part.

- LMS is fully capable of employing the fully-qualified-domain-name (FQDN) for its operations where the use of the @ symbol is required before the domain name.

- On a possibly related note, the @ symbol is used for delimiting the context information (such as collecting dynamic CAM entries for catalyst switches using SNMP). Avoid using the @ symbol as part of the SNMP community string when configuring the "snmp-server community" command. If the operating system on the device allows the @ character in the hostname, it may impact SNMP operations.

To reiterate: If a character is accepted while configuring the hostname via CLI, then it will be accepted in the DCR as well.

Cisco Employee

Re: Special Characters LMS

This is not true. First, a '@' is not allowed in a hostname. Second, any character you enter from the hostname on an IOS device is considered to be a valid hostname character by RFC standard. It would be best to use RFC1178 ( when choosing a name. LMS will certainly support any RFC-compliant hostname. As for the official hostname pattern in DCR, that is:


Display Name, on the other hand, is a different story. The DCR Display Name is much more flexible when it comes to characters it will accept. It can accept colons and spaces as well. The official pattern for Display Name is:

[^0-9a-zA-Z-_.: ]

Cisco Employee

Re: Special Characters LMS

The patterns here are the negative. Just ignore the '^'. That is, the hostname pattern is:


For example, cisco-router_A. The following is the allowed display name pattern:

[0-9a-zA-Z-_.: ]

For example, Core Cisco Router A.

Re: Special Characters LMS

Generally, avoid longer than 16 characters host name as this is not allowed by LAT, or you will get errors such as : legal LAT node name, Using "CISCO_946110"

$ > or < is not a allowed at all

" alone is not OK, as it will change it back to the device default, for example Router.