Varun Chandrase... Mon, 08/10/2009 - 08:07
User Badges:

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.

Joe Clarke Mon, 08/10/2009 - 09:16
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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

Joe Clarke Mon, 08/10/2009 - 20:28
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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 Mon, 08/10/2009 - 08:30
User Badges:
  • Red, 2250 points or more

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.


Actions

This Discussion