Submit a ticketCall us

whitepaperYour VM Perplexities Called, and They Need You to Read This.

Virtualization can give you enormous flexibility with future workloads and can be a key enabler for other areas, like cloud computing and disaster recovery. So, how can you get a handle on the performance challenges in your virtual environment and manage deployments without erasing the potential upside? Learn the four key areas you need to be focusing on to help deliver a healthy and well-performing data center.

Get your free white paper.

Home > Success Center > Network Configuration Manager (NCM) > NCM - Knowledgebase Articles > HP master switch error: Connection refused when downloading configuration

HP master switch error: Connection refused when downloading configuration

Created by Malik Haider, last modified by Karen Valdellon_ret on Apr 19, 2017

Views: 385 Votes: 0 Revisions: 5

Updated March 7, 2017

Overview

The master switch in an HP switch stack cannot download the configs from NCM, but the secondary switch can. The master switch is getting a connection refused error.

Environment

All NCM versions

Cause 

Here is the template for 1.3.6.1.4.1.11.2.3.7.11 [HP J4865A ProCurve Switch 4108GL]:
 
<!--SolarWinds Network Management Tools-->
<!--Copyright 2007 SolarWinds.Net All rights reserved-->
<Configuration-Management Device="HP J4865A ProCurve Switch 4108GL" SystemOID=" 1.3.6.1.4.1.11.2.3.7.11.">
                <Commands>
                                <Command Name="RESET" Value="terminal length 1000"/>
                                <Command Name="Reboot" Value="reset board{CRLF}y${CRLF}"/>
                                <Command Name="EnterConfigMode" Value="configure"/>
                                <Command Name="ExitConfigMode" Value="end"/>
                                <Command Name="Startup" Value="config"/>
                                <Command Name="Running" Value="running-config"/>
                                <Command Name="DownloadConfig" Value="Show ${ConfigType}"/>
                                <Command Name="UploadConfig" Value="${EnterConfigMode}${CRLF}${ConfigText}${CRLF}${ExitConfigMode}"/>
                                <Command Name="DownloadConfigIndirect" Value="copy ${ConfigType} tftp ${StorageAddress} ${StorageFilename} pc"/>
                                <Command Name="UploadConfigIndirect" Value="copy tftp ${ConfigType} ${StorageAddress} ${StorageFilename} pc"/>
                                <Command Name="EraseConfig" Value="reset configuration${CRLF}y${CRLF}"/>
                                <Command Name="Version" Value="show version"/>
                                <Command Name="PreCommand" Value="X"/>
                                <Command Name="CustomUserNamePrompt" Value="Username"/>
                                <Command Name="PreCommand" Value="${ENTER}" Delay="1000"/>
                                <Command Name="MenuBased" Value="false"/>
                                <Command Name="VirtualPrompt" Value=">"/>
                </Commands>
</Configuration-Management>

 

In the above template,  the process is stuck in the question from switch: Enter switch number to connect to or <CR>

 

[5/30/2016 5:02:02 PM] TimerTick: mstrData=<SWC00250_64_1# > State=3 - Connected to server - idle
[5/30/2016 5:02:02 PM] Pending Disconnect = False
[5/30/2016 5:02:02 PM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...
[5/30/2016 5:02:02 PM] Fuzzy match detector start detecting prompt. String1=swc00250_64_1# String2=enterswitchnumbertoconnecttoor<cr>:
[5/30/2016 5:02:02 PM] TimerTick: Just tick-tockin away. ..
[5/30/2016 5:02:04 PM] TimerTick: mstrData=<SWC00250_64_1# > State=3 - Connected to server - idle
[5/30/2016 5:02:04 PM] Pending Disconnect = False
[5/30/2016 5:02:04 PM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...
[5/30/2016 5:02:04 PM] Fuzzy match detector start detecting prompt. String1=swc00250_64_1# String2=enterswitchnumbertoconnecttoor<cr>:
[5/30/2016 5:02:04 PM] TimerTick: Just tick-tockin away. ..
[5/30/2016 5:02:06 PM] Disconnected - From: 10.106.64.1

Resolution

Use the following NCM template instead:

<!--SolarWinds Network Management Tools-->
<!--Copyright 2007 SolarWinds.Net All rights reserved-->
<Configuration-Management Device="HP J4865A ProCurve Switch 4108GL" SystemOID=" 1.3.6.1.4.1.11.2.3.7.11.">
                <Commands>
                                <Command Name="RESET" Value="terminal length 1000"/>
                                <Command Name="Reboot" Value="reset board{CRLF}y${CRLF}"/>
                                <Command Name="EnterConfigMode" Value="configure"/>
                                <Command Name="ExitConfigMode" Value="end"/>
                                <Command Name="Startup" Value="config"/>
                                <Command Name="Running" Value="running-config"/>
                                <Command Name="DownloadConfig" Value="Show ${ConfigType}"/>
                                <Command Name="UploadConfig" Value="${EnterConfigMode}${CRLF}${ConfigText}${CRLF}${ExitConfigMode}"/>
                                <Command Name="DownloadConfigIndirect" Value="copy ${ConfigType} tftp ${StorageAddress} ${StorageFilename} pc"/>
                                <Command Name="UploadConfigIndirect" Value="copy tftp ${ConfigType} ${StorageAddress} ${StorageFilename} pc"/>
                                <Command Name="EraseConfig" Value="reset configuration${CRLF}y${CRLF}"/>
                                <Command Name="Version" Value="show version"/>
                                <Command Name="PreCommand" Value="${ENTER}"/>
                                <Command Name="CustomUserNamePrompt" Value="Username"/>                                
                <Command Name="FreezeLoginForPreCommand" Value="True"/>
                                <Command Name="MenuBased" Value="false"/>
                                <Command Name="VirtualPrompt" Value=">"/>
                </Commands>
</Configuration-Management>

 

Last modified

Tags

Classifications

Public