cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2117
Views
0
Helpful
4
Replies

Special Characters LMS

Hitesh Vinzoda
Level 4
Level 4

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

TIA

Hitesh Vinzoda

4 Replies 4

Varun Chandrasekharan
Cisco Employee
Cisco Employee

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

**NOTE**

- 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.

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 (http://tools.ietf.org/html/rfc1178) when choosing a name. LMS will certainly support any RFC-compliant hostname. As for the official hostname pattern in DCR, that is:

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

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-_.: ]

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

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

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

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

For example, Core Cisco Router A.

Lucien Avramov
Level 10
Level 10

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"

http://www.cisco.com/en/US/tech/tk870/tk136/tk885/technologies_tech_note09186a008009475f.shtml

$ > or < is not a allowed at all

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