[rancid] working nslogin / nsrancid for netscaler 9.12

Jesse House jesse_house at yahoo.com
Thu Aug 11 00:10:44 UTC 2011


Hi All,

I was having quite a time w/ nslogin and nsrancid, so I modified them and have them working now w/ Citrix netscaler 9.2 

Here are my diffs:

diff nslogin.original nslogin
520c520
<     set prompt "#"
---
>     set prompt ">"
621,622c621,624
<       -re "^.+$prompt"        { set junk $expect_out(0,string);
<                                 regsub -all "\[\]\[]" $junk {\\&} prompt; }
---
> #     -re "^.+$prompt"        { set junk $expect_out(0,string);
> #                               regsub -all "\[\]\[]" $junk {\\&} prompt; }
>         -re "^$prompt"        { set junk $expect_out(0,string);
>                                   regsub -all "\[\]\[]" $junk {\\&} prompt; }

---------------------------------------


diff nsrancid.original nsrancid
69c69,70
< $prompt = "netscaler#";
---
> #$prompt = "netscaler#";
> $prompt = ">";
177c178
<       last if (/^$prompt/);
---
>       last if (/ Done/);
192c193
<     if (/exit$/) {
---
>     if (/ Done$/) {

---------------------------------------

Regards,
Jesse House 

p.s. this is my first time posting to this list so please forgive an formatting, subject line mistakes... Cheers! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20110810/31c6dd3a/attachment.html>


More information about the Rancid-discuss mailing list