<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<title>nslogin for netscaler version 9.x</title>
</head>
<body dir="ltr">
I've patched nslogin so it works with netscaler 9.x software. I think it may also work with version 8.x, but I can't really test it. Patch is:<br /><br /><br />436a437<br />> -re "$prompt" { break; }<br />531c532<br />< set prompt "#"<br />---<br />> set prompt "#|>"<br />632c633<br />< -re "^.+$prompt" { set junk $expect_out(0,string);<br />---<br />> -re "^.*$prompt" { set junk $expect_out(0,string);<br /><br /><br /><br />I'm running rancid 2.3.3-1 (ubuntu distro)<br /><br />This basically adds the ">" character as the starting point for the system prompt. That's the default prompt when ssh-ing into the netscaler. By leaving the "#" in, commands can be sent the the UNIX shell as well.<br /><br />I'm new to submitting patches to open source software. If there's a better way, I'm all ears (eyes).<br /><br />John<br /><br /><br />
<pre>--
"We are all geniuses when we dream"
- E.M. Cioran
</pre>
</body>
</html>