I've created a device template for NCM for my Paradyne/Zhone Bitstorm 2600 DSLAMs. The problem is, I can't for the life of me get it to recognize the password prompts.
An example telnet session:
$ telnet device.domain
Trying x.x.x.x...
Connected to device.domain.
Escape character is '^]'.
[ Welcome to device.domain ]
Login>myusernamehere
Password>********
device>!
device>!privilege
Password:********
device#!
As you can see, the username prompt is "Login>", the password prompt is "Password>", the unprivileged prompt is ">!", the privileged prompt is "#!", and the enable command is "privilege"
I managed to work around it not being able to detect the username prompt (presumably because of the >) by using the CustomUserNamePrompt option, but have not found a similar workaround for the password.
My template:
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by () -->
<!--SolarWinds Network Management Tools-->
<!--Copyright 2005 SolarWinds.Net All rights reserved-->
<Configuration-Management Device="Paradyne" SystemOID="1.3.6.1.4.1.1795.1.14.17.1.2">
<Commands>
<Command Name="MenuBased" Value="false"/>
<Command Name="CustomUserNamePrompt" Value="Login>"/>
<Command Name="VirtualPrompt" Value=">!"/>
<Command Name="EnableCommand" value="privilege"/>
<Command Name="EnableIdentifier" Value="#!"/>
<Command Name="RESET" Value="paging disable"/>
<Command Name="Reboot" Value="restart"/>
<Command Name="EnterConfigMode" Value="configure"/>
<Command Name="ExitConfigMode" Value="end"/>
<Command Name="Startup" Value="startup-config"/>
<Command Name="Running" Value="running-config"/>
<Command Name="DownloadConfig" Value="show ${ConfigType}"/>
<Command Name="UploadConfig" Value="${EnterConfigMode}${CRLF}${ConfigText}${CRLF}${ExitConfigMode}"/>
<Command Name="SaveConfig" Value="copy running-config startup-config"/>
<Command Name="Version" Value="show system information"/>
</Commands>
</Configuration-Management>
Trace logs:
[2/28/2011 12:24:49 AM] Solarwinds.Net SWTelnet9 Version 9.0.27
[2/28/2011 12:24:49 AM] Connected!
[2/28/2011 12:24:49 AM] -->
[2/28/2011 12:24:49 AM] -->
[2/28/2011 12:24:49 AM] --> [ Welcome to device ]
[2/28/2011 12:24:49 AM] --> Login>
[2/28/2011 12:24:49 AM] ProcessLogin State: 0
[2/28/2011 12:24:49 AM] UserName prompt not found, trying to detect custom prompt: Login>
[2/28/2011 12:24:49 AM] UserName prompt not found, trying to detect custom prompt: Login>
[2/28/2011 12:24:49 AM] Custom UserName prompt detected
[2/28/2011 12:24:49 AM] UserName Prompt detected: Login>
[2/28/2011 12:24:49 AM] Send user name
[2/28/2011 12:24:49 AM] <-- myusername
[2/28/2011 12:24:49 AM] --->m
[2/28/2011 12:24:49 AM] ProcessLogin State: 2
[2/28/2011 12:24:49 AM] UserName prompt not found, trying to detect custom prompt: Login>
[2/28/2011 12:24:50 AM] --> yusername
[2/28/2011 12:24:50 AM] --> Password>
[2/28/2011 12:24:50 AM] ProcessLogin State: 2
[2/28/2011 12:24:50 AM] UserName prompt not found, trying to detect custom prompt: Login>
[2/28/2011 12:24:50 AM] UserName prompt not found, trying to detect custom prompt: Login>
[2/28/2011 12:24:51 AM] TimerTick: mstrData=<Password>> State=3 - Connected to server - idle
[2/28/2011 12:24:51 AM] Pending Disconnect = False
[2/28/2011 12:24:53 AM] TimerTick: mstrData=<Password>> State=3 - Connected to server - idle
[2/28/2011 12:24:53 AM] Pending Disconnect = False
[2/28/2011 12:24:55 AM] TimerTick: mstrData=<Password>> State=3 - Connected to server - idle
[2/28/2011 12:24:55 AM] Pending Disconnect = False
[2/28/2011 12:24:55 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...
[2/28/2011 12:24:57 AM] TimerTick: mstrData=<Password>> State=3 - Connected to server - idle
[2/28/2011 12:24:57 AM] Pending Disconnect = False
[2/28/2011 12:24:57 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...
[2/28/2011 12:24:59 AM] TimerTick: mstrData=<Password>> State=3 - Connected to server - idle
[2/28/2011 12:24:59 AM] Pending Disconnect = False
[2/28/2011 12:24:59 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...
[2/28/2011 12:25:01 AM] TimerTick: mstrData=<Password>> State=3 - Connected to server - idle
[2/28/2011 12:25:01 AM] Pending Disconnect = False
[2/28/2011 12:25:01 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...
[2/28/2011 12:25:03 AM] TimerTick: mstrData=<Password>> State=3 - Connected to server - idle
[2/28/2011 12:25:03 AM] Pending Disconnect = False
[2/28/2011 12:25:03 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...
[2/28/2011 12:25:05 AM] TimerTick: mstrData=<Password>> State=3 - Connected to server - idle
[2/28/2011 12:25:05 AM] Pending Disconnect = False
[2/28/2011 12:25:05 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...
[2/28/2011 12:25:05 AM] TimerTick: Login Timeout
[2/28/2011 12:25:05 AM] Disconnected - From: x.x.x.x
A wireshark sniff of the connection confirms as well that NCM is never sending the password (presumably because it can't detect the password prompt):
............
[ Welcome to device ]
Login>myusername
myusername
Password>
I'd appreciate if anyone has any thoughts on how to solve this problem...