[rancid] Anyway to backup devices with '#' in hostname...other than renaming host?
heasley
heas at shrubbery.net
Fri Aug 23 13:45:10 UTC 2013
Fri, Aug 23, 2013 at 01:28:10PM +0000, Jason Humes:
> Hi
> No, I mean the actual device configured hostname...when clogin tries to login, it fails to enter enable mode due to the Switch#1_Site#2 hostname.
you'd have to alter the regexes in the login script to match the initial
prompt and build the full match regex.
just fix the hostnames.
> Thanks
>
>
> Jason
>
>
> -----Original Message-----
> From: heasley [mailto:heas at shrubbery.net]
> Sent: Friday, August 23, 2013 9:27 AM
> To: Jason Humes
> Cc: rancid-discuss at shrubbery.net
> Subject: Re: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host?
>
> Fri, Aug 23, 2013 at 01:22:18PM +0000, Jason Humes:
> > Hi
> > We've been running with RANCID for a while and have recently come upon a large group of devices we'd like to backup, but they are all numbered with '#' in the hostnames and thus RANCID fails to enter enable mode on these. Is there any way to have RANCID escape the '#' in the hostname?
> >
>
> put cnames/aliases in your dns/hosts file.
More information about the Rancid-discuss
mailing list