Discussion:
[rancid] working nslogin / nsrancid for netscaler 9.12
Jesse House
2011-08-11 00:10:44 UTC
Permalink
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! 
Loading...