cisco hostname too long

Austin Schutz tex at
Wed Jan 4 19:00:03 UTC 2006

On Wed, Jan 04, 2006 at 07:21:59PM +0200, Sotiris Tsimbonis wrote:
> john heasley said the following on 4/1/2006 7:01 ??:
> >The regex does not exactly limit the length of the hostname, it grabs up
> >to the first 14 characters, which IOS truncates the name to when entering
> >config mode (see -x).  w/o truncation, the regex would not match.
> >
> >my router's configured hostname is "somereallylonghostnamehere" and it
> >works fine.  Something else is wrong; if altering the size of the bound
> >atom fixes it, it may be an expect or regex library problem.  what is
> >the full hostname?
> It's "pcsrouter(02)"..

	If you would like software to be able to interact with your machine
you might consider changing the name to something a little more standardized.
	Following rfc1034 (not 1048 :-) might be a good choice here.
Essentially the idea is you want to avoid any characters that aren't
alphanumeric, numbers, hyphens, or dots.


More information about the Rancid-discuss mailing list