Special Characters LMS

Unanswered Question
Aug 10th, 2009

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

TIA

Hitesh Vinzoda

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
Varun Chandrase... Mon, 08/10/2009 - 08:07

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.

Joseph Clarke Mon, 08/10/2009 - 09:16

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

Joseph Clarke Mon, 08/10/2009 - 20:28

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.

Actions

Login or Register to take actions

This Discussion

Posted August 10, 2009 at 6:07 AM
Stats:
Replies:4 Avg. Rating:
Views:703 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard

Rank Username Points
1 2,483
2 1,624
3 1,445
4 861
5 578