[rancid] Re: nslogin and clipaging

Skinner, Michael Michael.Skinner at virginmedia.co.uk
Fri Mar 7 17:24:33 UTC 2008


Try using nlogin rather than nslogin.

Mike

-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Dan Mahoney,
System Admin
Sent: 06 March 2008 00:09
To: rancid-discuss at shrubbery.net
Subject: [rancid] nslogin and clipaging

I'm guessing some of the rancid scripts are kind of old and not seldom
used.

I am trying to use nslogin to do a "get arp" on my netscreen firewall.

The first issue I hit was that it seems to be looking for a # in the
prompt -- this is not a global settable (although maybe it should be?)

I changed the initial "set prompt #" to "set prompt \\-\\>" as our usual
prompt is "fw1->".

However, I still have the issue that the script doesn't recognize the
"more" prompt as set by the firewall.  I know other versions of the
script set something session-based on the router to disable this -- on
this firewall it looks like a global that I'd have to unset and reset.

The paging prompt appears to be "--- more --- ", for what it's worth.

My expect skills are weak, so...

a) Can someone tell me where to send the commands to disable (and
reenable) cli paging in the script (i.e. I know the commands, just not
the nslogin flow so I wouldn't know where to put them).

or

b) Can someone help me figure out how to make nslogin recognize the
above "more" prompt?

I'm willing to commit my changes, if that helps at all.

I can't provide access to test systems but can try to give as much debug
output as possible.

-Dan Mahoney

--

<Belldandy> ha. you have not met me.
<BaldDwarf> ha. but i have sene pictures <Belldandy> thanks but uh.,
<BaldDwarf> seen dammit! SEEN!
<Gushi> I don't know who dammit! is.
<Belldandy> so anyway

-Undernet #reboot, October 2nd, 2000, 3AM

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

------------------------------------------------------------------------------
Save Paper - Do you really need to print this e-mail?

Visit www.virginmedia.com for more information, and more fun.

This email and any attachments are or may be confidential and legally privileged and are sent solely for the attention of the addressee(s). If you have received this email in error, please delete it from your system: its use, disclosure or copying is unauthorised. Statements and opinions expressed in this email may not represent those of Virgin Media. Any representations or commitments in this email are subject to contract. Please note that we are migrating our email addresses to a company wide address of "@virginmedia.co.uk". If you are sending to a Telewest or ntl email address your email will be re-directed. 

Registered office: 160 Great Portland Street, London W1W 5QA. Registered in England and Wales with number 2591237


==============================================================================



More information about the Rancid-discuss mailing list