[rancid] Anyway to backup devices with '#' in hostname...other than renaming host?

Jason Humes JHumes at acs.on.ca
Fri Aug 23 13:44:12 UTC 2013


Hahaha, exactly my thoughts!!!

I've written a little script to login to these batch of hosts and update their hostnames replacing the # with _.

Thanks for clearing this up.

Jason

From: bob watson [mailto:bobthebaritone at gmail.com]
Sent: Friday, August 23, 2013 9:43 AM
To: Jason Humes
Cc: heasley; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Anyway to backup devices with '#' in hostname...other than renaming host?

Jason,

Make life easy for yourself.
RANCID (using PERL and EXPECT) is coded so that RFC 1123 compliant hostnames will be ok. Whoever set the hostname with a # should be sent to CCNA school, or some learning facility that says you can't just dream up esoteric names for devices.


Cheers,

Bob Watson
BAppSci, MACS, CP

<a href="http://au.linkedin.com/in/bobthebaritone">

          <img src="http://www.linkedin.com/img/webpromo/btn_viewmy_160x33.png" width="160" height="33" border="0" alt="View Robert Watson's profile on LinkedIn">

    </a>

On 23 August 2013 23:28, Jason Humes <JHumes at acs.on.ca<mailto:JHumes at acs.on.ca>> wrote:
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.

Thanks


Jason


-----Original Message-----
From: heasley [mailto:heas at shrubbery.net<mailto:heas at shrubbery.net>]
Sent: Friday, August 23, 2013 9:27 AM
To: Jason Humes
Cc: rancid-discuss at shrubbery.net<mailto: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.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net<mailto:Rancid-discuss at shrubbery.net>
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130823/9a46ae52/attachment.html>


More information about the Rancid-discuss mailing list