Hey Thwackarians,
We are beginning to run scripts to standardize the configuration of our APC UPS devices. As APC UPS devices are menu driven these scripts are just a collection of menu selections. These devices are running many versions of AOS, from 1.2.0 to 3.7.3. The scripts succeed on the oldest versions of AOS, but on newer versions the scripts fails with the error Login Failed : Bad Password (See session trace below).
The same UPS device will pass NCM's check login information with user name and password OK (See session trace below).
We have an open service request on this issue and have submitted a feature request for an APC UPS device template. In the mean time, this is what the main menu looks like:
I've experimented with many variations of device templates, including many variations of RegEx expressions, but here's the template used during the session traces below:
<!--SolarWinds Network Management Tools-->
<Configuration-Management Device="APC UPS" SystemOID="1.3.6.1.4.1.318.1.3.2">
<Commands>
<Command Name="RESET" Value=""/>
<Command Name="EnableIdentifier" Value=">"/>
<Command Name="MenuBased" Value="True"/>
<Command Name="Version" Value="" RegEx=">" Delay="300"/>
</Commands>
</Configuration-Management>
Contributor Clubjuggle has offered a draft APC UPS template here
APC UPS Template - 1st draft, please contribute
but it produces about the same result as my template above.
==================================================================
This device trace was produced during the login failed : bad password error
Note the Cannot log into router message. In device details, the device is set for no enable login
==================================================================
[7/28/2010 8:46:11 AM] -----------------NCM 6.0-------------------
[7/28/2010 8:46:11 AM] Login Attempts: 1
[7/28/2010 8:46:11 AM] Custom UserName Prompt:
[7/28/2010 8:46:11 AM] Device Template: APC-1.3.6.1.4.1.318.1.3.2.ConfigMgmt-Commands
[7/28/2010 8:46:11 AM] System Name: iab97ups1
[7/28/2010 8:46:11 AM] System Description: APC Web/SNMP Management Card (MB:v3.2.0 PF:v3.0.1 PN:aos301.bin AF1:v3.0.1 AN1:sumx301.bin MN: AP9606 HR: G9 SN: WA9926004134 MD: 04/30/2001) (Embedded PowerNet SNMP Agent SW v2.2 compatible)
[7/28/2010 8:46:11 AM] System OID: 1.3.6.1.4.1.318.1.3.2.12
[7/28/2010 8:46:11 AM] OS Image:
[7/28/2010 8:46:11 AM] OS Version:
[7/28/2010 8:46:11 AM] Menu-Based mode=True
[7/28/2010 8:46:11 AM]
-->StateChange: Connecting to server<--
[7/28/2010 8:46:11 AM]
-->StateChange: Connected to server - idle<--
[7/28/2010 8:46:11 AM] Solarwinds.Net SWTelnet9 Version 9.0.27
[7/28/2010 8:46:11 AM] Connected!
[7/28/2010 8:46:11 AM] -->
[7/28/2010 8:46:11 AM] --> User Name :
[7/28/2010 8:46:11 AM] ProcessLogin State: 0
[7/28/2010 8:46:11 AM] UserName Prompt detected: User Name :
[7/28/2010 8:46:11 AM] Send user name
[7/28/2010 8:46:11 AM] <-- PowerCop
[7/28/2010 8:46:11 AM] --> PowerCop
[7/28/2010 8:46:11 AM] --> Password :
[7/28/2010 8:46:11 AM] ProcessLogin State: 2
[7/28/2010 8:46:11 AM] Standard password prompt detected
[7/28/2010 8:46:11 AM] <-- ********
[7/28/2010 8:46:11 AM] --> *********
[7/28/2010 8:46:11 AM] --> American Power Conversion Web/SNMP Management Card AOS v3.0.1
[7/28/2010 8:46:11 AM] --> (c) Copyright 2000 All Rights Reserved Smart-UPS & Matrix-UPS APP v3.0.1
[7/28/2010 8:46:11 AM] --> -------------------------------------------------------------------------------
[7/28/2010 8:46:11 AM] --> Name : iab97ups1 Date : 07/28/2010
[7/28/2010 8:46:11 AM] --> Contact : Network Operations Time : 08:48:57
[7/28/2010 8:46:11 AM] --> Location : IAB 97 Up Time : 146 Days 13 Hours 10 Minutes
[7/28/2010 8:46:11 AM] --> Status : P+ N+ A+ User :
[7/28/2010 8:46:11 AM] ProcessLogin State: 3
[7/28/2010 8:46:11 AM] Cannot Log into router
[7/28/2010 8:46:11 AM] --> Administrator
[7/28/2010 8:46:11 AM] -->
[7/28/2010 8:46:11 AM] --> Smart-UPS 3000 RM named UPS_IDEN : Discharged, Bad Battery
[7/28/2010 8:46:11 AM] --> ------- Control Console -------------------------------------------------------
[7/28/2010 8:46:11 AM] -->
[7/28/2010 8:46:11 AM] --> 1- Device Manager
[7/28/2010 8:46:11 AM] --> 2- Network
[7/28/2010 8:46:11 AM] --> 3- System
[7/28/2010 8:46:11 AM] --> 4- Logout
[7/28/2010 8:46:11 AM] -->
[7/28/2010 8:46:11 AM] --> <ESC>- Main Menu, <ENTER>- Refresh, <CTRL-L>- Event Log
[7/28/2010 8:46:11 AM] --> >
[7/28/2010 8:46:11 AM] ProcessLogin State: 10
[7/28/2010 8:46:13 AM] TimerTick: mstrData=<> > State=3 - Connected to server - idle
[7/28/2010 8:46:13 AM] Pending Disconnect = True
[7/28/2010 8:46:13 AM] Disconnected - From: 172.25.80.204
=========================================================================
This is the device trace produced during the 'check login credentials'. The device passes the credentials
check. Note the incomplete buffer with prompt and the echo not detected yet messages
=========================================================================
[7/28/2010 8:50:10 AM] -----------------NCM 6.0-------------------
[7/28/2010 8:50:10 AM] Login Attempts: 1
[7/28/2010 8:50:10 AM] Custom UserName Prompt:
[7/28/2010 8:50:10 AM] Device Template:
[7/28/2010 8:50:10 AM] System Name:
[7/28/2010 8:50:10 AM] System Description:
[7/28/2010 8:50:10 AM] System OID:
[7/28/2010 8:50:10 AM] OS Image:
[7/28/2010 8:50:10 AM] OS Version:
[7/28/2010 8:50:10 AM] Menu-Based mode=True
[7/28/2010 8:50:10 AM]
-->StateChange: Connecting to server<--
[7/28/2010 8:50:10 AM]
-->StateChange: Connected to server - idle<--
[7/28/2010 8:50:10 AM] Solarwinds.Net SWTelnet9 Version 9.0.27
[7/28/2010 8:50:10 AM] Connected!
[7/28/2010 8:50:10 AM] -->
[7/28/2010 8:50:10 AM] --> User Name :
[7/28/2010 8:50:10 AM] ProcessLogin State: 0
[7/28/2010 8:50:10 AM] UserName Prompt detected: User Name :
[7/28/2010 8:50:10 AM] Send user name
[7/28/2010 8:50:10 AM] <-- ********
[7/28/2010 8:50:10 AM] --> *********
[7/28/2010 8:50:10 AM] --> Password :
[7/28/2010 8:50:10 AM] ProcessLogin State: 2
[7/28/2010 8:50:10 AM] Standard password prompt detected
[7/28/2010 8:50:10 AM] <-- *********
[7/28/2010 8:50:10 AM] --> *********
[7/28/2010 8:50:10 AM] --> American Power Conversion Web/SNMP Management Card AOS v3.0.1
[7/28/2010 8:50:10 AM] --> (c) Copyright 2000 All Rights Reserved Smart-UPS & Matrix-UPS APP v3.0.1
[7/28/2010 8:50:10 AM] --> -------------------------------------------------------------------------------
[7/28/2010 8:50:10 AM] --> Name : iab97ups1 Date : 07/28/2010
[7/28/2010 8:50:10 AM] --> Contact : Network Operations Time : 08:52:57
[7/28/2010 8:50:10 AM] --> Location : IAB 97 Up Time : 146 Days 13 Hours 14 Minutes
[7/28/2010 8:50:10 AM] --> Status : P+ N+ A+ User : Administrator
[7/28/2010 8:50:10 AM] -->
[7/28/2010 8:50:10 AM] --> Smart-UPS 3000 RM named UPS_IDEN : Discharged, Bad Battery
[7/28/2010 8:50:10 AM] --> ------- Control Console -------------------------------------------------------
[7/28/2010 8:50:10 AM] -->
[7/28/2010 8:50:10 AM] --> 1- Device Manager
[7/28/2010 8:50:10 AM] --> 2- Network
[7/28/2010 8:50:10 AM] --> 3- System
[7/28/2010 8:50:10 AM] --> 4- Logout
[7/28/2010 8:50:10 AM] -->
[7/28/2010 8:50:10 AM] --> <ESC>- Main Menu, <ENTER>- Refresh, <CTRL-L>- Event Log
[7/28/2010 8:50:10 AM] --> >
[7/28/2010 8:50:10 AM] ProcessLogin State: 3
[7/28/2010 8:50:10 AM] Command mode prompt detected at LoginState_Password
[7/28/2010 8:50:10 AM] Prompt is being set to : >
[7/28/2010 8:50:10 AM] Logged into Router
[7/28/2010 8:50:10 AM] <--
[7/28/2010 8:50:11 AM] -->
[7/28/2010 8:50:11 AM] --> ------- Control Console -------------------------------------------------------
[7/28/2010 8:50:11 AM] -->
[7/28/2010 8:50:11 AM] --> 1- Device Manager
[7/28/2010 8:50:11 AM] --> 2- Network
[7/28/2010 8:50:11 AM] --> 3- System
[7/28/2010 8:50:11 AM] --> 4- Logout
[7/28/2010 8:50:11 AM] -->
[7/28/2010 8:50:11 AM] --> <ESC>- Main Menu, <ENTER>- Refresh, <CTRL-L>- Event Log
[7/28/2010 8:50:11 AM] --> >
[7/28/2010 8:50:11 AM] Incomplete buffer with prompt is detected - save all lines to echo buffer
[7/28/2010 8:50:11 AM] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<
------- Control Console -------------------------------------------------------
1- Device Manager
2- Network
3- System
4- Logout
<ESC>- Main Menu, <ENTER>- Refresh, <CTRL-L>- Event Log
>
>>>
[7/28/2010 8:50:11 AM] Start detecting command echo in echo buffer...
[7/28/2010 8:50:11 AM] Start check prompt for menu-based device
[7/28/2010 8:50:11 AM] Process Line = <>
[7/28/2010 8:50:11 AM] Process Line = <------- Control Console ------------------------------------------------------->
[7/28/2010 8:50:11 AM] Fuzzy match detector start detecting prompt. String1=-------controlconsole------------------------------------------------------- String2=>
[7/28/2010 8:50:11 AM] Process Line = <>
[7/28/2010 8:50:11 AM] Process Line = < 1- Device Manager>
[7/28/2010 8:50:11 AM] Fuzzy match detector start detecting prompt. String1=1-devicemanager String2=>
[7/28/2010 8:50:11 AM] Process Line = < 2- Network>
[7/28/2010 8:50:11 AM] Fuzzy match detector start detecting prompt. String1=2-network String2=>
[7/28/2010 8:50:11 AM] Process Line = < 3- System>
[7/28/2010 8:50:11 AM] Fuzzy match detector start detecting prompt. String1=3-system String2=>
[7/28/2010 8:50:11 AM] Process Line = < 4- Logout>
[7/28/2010 8:50:11 AM] Fuzzy match detector start detecting prompt. String1=4-logout String2=>
[7/28/2010 8:50:11 AM] Process Line = <>
[7/28/2010 8:50:11 AM] <-------------- vPrompt received
[7/28/2010 8:50:11 AM] Process Line = < <ESC>- Main Menu, <ENTER>- Refresh, <CTRL-L>- Event Log>
[7/28/2010 8:50:11 AM] Fuzzy match detector start detecting prompt. String1=<esc>-mainmenu,<enter>-refresh,<ctrl-l>-eventlog String2=>
[7/28/2010 8:50:11 AM] SendNextCommand Done: Disconnecting
[7/28/2010 8:50:11 AM] Process Line = <> >
[7/28/2010 8:50:11 AM] Fuzzy match detector start detecting prompt. String1=> String2=>
[7/28/2010 8:50:11 AM] SendNextCommand Done: Disconnecting
[7/28/2010 8:50:12 AM] TimerTick: mstrData=<> > State=3 - Connected to server - idle
[7/28/2010 8:50:12 AM] Pending Disconnect = True
[7/28/2010 8:50:12 AM] Disconnected - From: 172.25.80.204
[7/28/2010 8:50:12 AM] Disconnecting