Hi,
I am trying to upload a config back to a Juniper SRX240 using NCM, I have managed to do this but it takes one and a half hours!!!
Does anyone have any ideas why this would be?
Regards
Tony
Asked dev and it seems like the device does not return the command-mode prompt after NCM sends each line of config.
This is the expected behavior, an that seems to slow down the overall dialog.
Do you have the possibility to try TFTP or SCP?
If not, you can also try to disable the prompt detection by typing:
- ${DisablePromptDetection} macro as first line of Config
- ${EnablePromptDetection} macro as last line of Config Let us know if this helps.
NCM Gives you the option to monitor the activity in the background by enabling the session trace.
- Open Orion Network Configuration Manager > File > Settings > Session Tracing >
If you already turned this on you can see the log file at "C:\Program Files\SolarWinds\Configuration Management\Session-Trace
You can find the log for the Node IP .
all activities are time stamped.
You can find where it took to long to upload .
Yeah I have done that, it seems to wait for the command to echo back, when you look at the trace it seems to send the line and then wait until it is echoed back.
Can you post the Lines from the logs ?
GoldTipu,
Here are the first few lines.....
[27/02/2012 09:12:40] -----------------NCM 6.1-------------------[27/02/2012 09:12:40] UseCustomMorePromptBehaviour: False[27/02/2012 09:12:40] Login Attempts: 1[27/02/2012 09:12:40] Custom UserName Prompt: [27/02/2012 09:12:40] Device Template: Juniper-1.3.6.1.4.1.2636.ConfigMgmt-Commands[27/02/2012 09:12:40] System Name: NodeName[27/02/2012 09:12:40] System Description: Juniper Networks, Inc. srx240b internet router, kernel JUNOS 10.4R1.9 #0: 2010-12-04 10:20:16 UTC builder@warth.juniper.net:/volume/build/junos/10.4/release/10.4R1.9/obj-octeon/bsd/sys/compile/JSRXNLE Build date: 2010-12-04 10:05:34 UTC Copyright (c)[27/02/2012 09:12:40] System OID: 1.3.6.1.4.1.2636.1.1.1.2.39[27/02/2012 09:12:40] OS Image: [27/02/2012 09:12:40] OS Version:
[27/02/2012 09:12:40] Menu-Based mode=False[27/02/2012 09:12:40] FreezeLoginForPreCommands mode= False[27/02/2012 09:12:40] -->StateChange: Connecting to server<--
[27/02/2012 09:12:41] Got HostFingerPrint: 8e:c3:91:a4:f6:c0:b3:66:01:e9:85:a9:da:a6:24:f9[27/02/2012 09:12:41] SWTelnet9 Crypto Information Begin [27/02/2012 09:12:41] Protocol = SSH2[27/02/2012 09:12:41] RemoteName = SSH-1.99-OpenSSH_4.4[27/02/2012 09:12:41] SCcipher = aes128-cbc[27/02/2012 09:12:41] CSCipher = aes128-cbc[27/02/2012 09:12:41] Keys = ssh-rsa[27/02/2012 09:12:41] SWTelnet9 Crypto Information End[27/02/2012 09:12:42] -->StateChange: Connected to server - idle<--
[27/02/2012 09:12:42] Solarwinds.Net SWTelnet9 Version 9.0.27[27/02/2012 09:12:42] Connected![27/02/2012 09:12:42] --> --- JUNOS 10.4R1.9 built 2010-12-04 10:20:16 UTC[27/02/2012 09:12:42] --> [27/02/2012 09:12:42] ProcessLogin State: 0[27/02/2012 09:12:42] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:12:42] Pending Disconnect = False[27/02/2012 09:12:42] Sending to get a banner![27/02/2012 09:12:42] <-- [27/02/2012 09:12:42] --> [27/02/2012 09:12:42] --> [27/02/2012 09:12:42] ProcessLogin State: 0[27/02/2012 09:12:42] --->user@NodeName> [27/02/2012 09:12:42] ProcessLogin State: 0[27/02/2012 09:12:42] --> [27/02/2012 09:12:42] --> [27/02/2012 09:12:42] --> user@NodeName> [27/02/2012 09:12:42] ProcessLogin State: 0[27/02/2012 09:12:44] TimerTick: mstrData=<user@NodeName> > State=3 - Connected to server - idle[27/02/2012 09:12:44] Pending Disconnect = False[27/02/2012 09:12:44] TimerTick: Send to CRLF get prompt again[27/02/2012 09:12:44] <-- [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] ProcessLogin State: 0[27/02/2012 09:12:44] --->user@NodeName> [27/02/2012 09:12:44] ProcessLogin State: 0[27/02/2012 09:12:44] Custom Prompt detector detect # prompt[27/02/2012 09:12:44] no credentials needed - Command mode prompt detected[27/02/2012 09:12:44] Prompt is being set to : user@NodeName> [27/02/2012 09:12:44] Logged into Router[27/02/2012 09:12:44] <-- [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] --->user@NodeName> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <user@NodeName> >[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=user@NodeName> String2=user@NodeName>[27/02/2012 09:12:44] <-- set cli complete-on-space off[27/02/2012 09:12:44] --> set cli complete-on-space off [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Complete buffer is detected - save all lines to echo buffer[27/02/2012 09:12:44] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<set cli complete-on-space off
>>>[27/02/2012 09:12:44] Start detecting command echo in echo buffer...[27/02/2012 09:12:44] Echo is detected, EchoBuffer = <<<set cli complete-on-space off
>>>[27/02/2012 09:12:44] Remove Prompt - prompt not found via RegEx[27/02/2012 09:12:44] Echo and prompt are removed if they exist, out buffer = <<<>>>[27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] --> Disabling complete-on-space[27/02/2012 09:12:44] --> [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <Disabling complete-on-space>[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=disablingcomplete-on-space String2=user@NodeName>[27/02/2012 09:12:44] Save Command Output: Disabling complete-on-space[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] --->user@NodeName> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <user@NodeName> >[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=user@NodeName> String2=user@NodeName>[27/02/2012 09:12:44] <-- set cli screen-width 0[27/02/2012 09:12:44] --> set cli screen-width 0 [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Complete buffer is detected - save all lines to echo buffer[27/02/2012 09:12:44] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<set cli screen-width 0
>>>[27/02/2012 09:12:44] Start detecting command echo in echo buffer...[27/02/2012 09:12:44] Echo is detected, EchoBuffer = <<<set cli screen-width 0
>>>[27/02/2012 09:12:44] Remove Prompt - prompt not found via RegEx[27/02/2012 09:12:44] Echo and prompt are removed if they exist, out buffer = <<<>>>[27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] --> Screen width set to 0[27/02/2012 09:12:44] --> [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <Screen width set to 0>[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=screenwidthsetto0 String2=user@NodeName>[27/02/2012 09:12:44] Save Command Output: Screen width set to 0[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] --->user@NodeName> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <user@NodeName> >[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=user@NodeName> String2=user@NodeName>[27/02/2012 09:12:44] <-- set cli screen-length 0[27/02/2012 09:12:44] --> set cli screen-length 0 [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Complete buffer is detected - save all lines to echo buffer[27/02/2012 09:12:44] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<set cli screen-length 0
>>>[27/02/2012 09:12:44] Start detecting command echo in echo buffer...[27/02/2012 09:12:44] Echo is detected, EchoBuffer = <<<set cli screen-length 0
>>>[27/02/2012 09:12:44] Remove Prompt - prompt not found via RegEx[27/02/2012 09:12:44] Echo and prompt are removed if they exist, out buffer = <<<>>>[27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] --> Screen length set to 0[27/02/2012 09:12:44] --> [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <Screen length set to 0>[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=screenlengthsetto0 String2=user@NodeName>[27/02/2012 09:12:44] Save Command Output: Screen length set to 0[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] --->user@NodeName> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <user@NodeName> >[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=user@NodeName> String2=user@NodeName>[27/02/2012 09:12:44] <-- configure[27/02/2012 09:12:44] --> configure [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Complete buffer is detected - save all lines to echo buffer[27/02/2012 09:12:44] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<configure
>>>[27/02/2012 09:12:44] Start detecting command echo in echo buffer...[27/02/2012 09:12:44] Echo is detected, EchoBuffer = <<<configure
>>>[27/02/2012 09:12:44] Remove Prompt - prompt not found via RegEx[27/02/2012 09:12:44] Echo and prompt are removed if they exist, out buffer = <<<>>>[27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] --> Entering configuration mode[27/02/2012 09:12:44] --> [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <Entering configuration mode>[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=enteringconfigurationmode String2=user@NodeName>[27/02/2012 09:12:44] Save Command Output: Entering configuration mode[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:44] --> [edit][27/02/2012 09:12:44] --> user@NodeName# [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <[edit]>[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=[edit] String2=user@NodeName>[27/02/2012 09:12:44] Save Command Output: [edit][27/02/2012 09:12:44] Process Line = <user@NodeName# >[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=user@NodeName# String2=user@NodeName>[27/02/2012 09:12:44] <-- load override terminal[27/02/2012 09:12:44] --> load override terminal [27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Complete buffer is detected - save all lines to echo buffer[27/02/2012 09:12:44] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<load override terminal
>>>[27/02/2012 09:12:44] Start detecting command echo in echo buffer...[27/02/2012 09:12:44] Echo is detected, EchoBuffer = <<<load override terminal
>>>[27/02/2012 09:12:44] Remove Prompt - prompt not found via RegEx[27/02/2012 09:12:44] Echo and prompt are removed if they exist, out buffer = <<<>>>[27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] --> [Type ^D at a new line to end input][27/02/2012 09:12:44] --> [27/02/2012 09:12:44] Start check prompt for menu-based device[27/02/2012 09:12:44] Process Line = <[Type ^D at a new line to end input]>[27/02/2012 09:12:44] Fuzzy match detector start detecting prompt. String1=[type^datanewlinetoendinput] String2=user@NodeName>[27/02/2012 09:12:44] Save Command Output: [Type ^D at a new line to end input][27/02/2012 09:12:44] Process Line = <>[27/02/2012 09:12:46] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:12:46] Pending Disconnect = False[27/02/2012 09:12:46] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:12:46] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:12:48] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:12:48] Pending Disconnect = False[27/02/2012 09:12:48] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:12:48] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:12:48] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:12:50] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:12:50] Pending Disconnect = False[27/02/2012 09:12:50] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:12:50] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:12:50] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:12:52] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:12:52] Pending Disconnect = False[27/02/2012 09:12:52] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:12:52] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:12:52] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:12:52] TimerTick: blankline - waited more than half response timeout - Sending Next Command[27/02/2012 09:12:52] <-- ## Last commit: 2011-12-15 23:33:02 UTC by user[27/02/2012 09:12:52] --> ## Last commit: 2011-12-15 23:33:02 UTC by user[27/02/2012 09:12:52] --> [27/02/2012 09:12:52] Complete buffer is detected - save all lines to echo buffer[27/02/2012 09:12:52] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<## Last commit: 2011-12-15 23:33:02 UTC by user
>>>[27/02/2012 09:12:52] Start detecting command echo in echo buffer...[27/02/2012 09:12:52] Echo is detected, EchoBuffer = <<<## Last commit: 2011-12-15 23:33:02 UTC by user
>>>[27/02/2012 09:12:52] Remove Prompt - prompt not found via RegEx[27/02/2012 09:12:52] Echo and prompt are removed if they exist, out buffer = <<<>>>[27/02/2012 09:12:52] Start check prompt for menu-based device[27/02/2012 09:12:54] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:12:54] Pending Disconnect = False[27/02/2012 09:12:54] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:12:54] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:12:56] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:12:56] Pending Disconnect = False[27/02/2012 09:12:56] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:12:56] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:12:56] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:12:58] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:12:58] Pending Disconnect = False[27/02/2012 09:12:58] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:12:58] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:12:58] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:13:00] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:13:00] Pending Disconnect = False[27/02/2012 09:13:00] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:13:00] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:13:00] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:13:00] TimerTick: blankline - waited more than half response timeout - Sending Next Command[27/02/2012 09:13:00] <-- version 10.4R1.9;[27/02/2012 09:13:00] --> version 10.4R1.9;[27/02/2012 09:13:00] --> [27/02/2012 09:13:00] Complete buffer is detected - save all lines to echo buffer[27/02/2012 09:13:00] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<version 10.4R1.9;
>>>[27/02/2012 09:13:00] Start detecting command echo in echo buffer...[27/02/2012 09:13:00] Echo is detected, EchoBuffer = <<<version 10.4R1.9;
>>>[27/02/2012 09:13:00] Remove Prompt - prompt not found via RegEx[27/02/2012 09:13:00] Echo and prompt are removed if they exist, out buffer = <<<>>>[27/02/2012 09:13:00] Start check prompt for menu-based device[27/02/2012 09:13:02] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:13:02] Pending Disconnect = False[27/02/2012 09:13:02] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:13:02] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:13:04] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:13:04] Pending Disconnect = False[27/02/2012 09:13:04] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:13:04] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:13:04] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:13:06] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:13:06] Pending Disconnect = False[27/02/2012 09:13:06] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:13:06] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:13:06] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:13:08] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:13:08] Pending Disconnect = False[27/02/2012 09:13:08] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:13:08] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:13:08] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:13:08] TimerTick: blankline - waited more than half response timeout - Sending Next Command[27/02/2012 09:13:08] <-- groups {[27/02/2012 09:13:08] --> groups {[27/02/2012 09:13:08] --> [27/02/2012 09:13:08] Complete buffer is detected - save all lines to echo buffer[27/02/2012 09:13:08] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<groups {
>>>[27/02/2012 09:13:08] Start detecting command echo in echo buffer...[27/02/2012 09:13:08] Echo is detected, EchoBuffer = <<<groups {
>>>[27/02/2012 09:13:08] Remove Prompt - prompt not found via RegEx[27/02/2012 09:13:08] Echo and prompt are removed if they exist, out buffer = <<<>>>[27/02/2012 09:13:08] Start check prompt for menu-based device[27/02/2012 09:13:10] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:13:10] Pending Disconnect = False[27/02/2012 09:13:10] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:13:10] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:13:12] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:13:12] Pending Disconnect = False[27/02/2012 09:13:12] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:13:12] Config Prompt detector error: Invalid procedure call or argumentCurrentLine: [27/02/2012 09:13:12] Fuzzy match detector start detecting prompt. String1= String2=user@NodeName>[27/02/2012 09:13:14] TimerTick: mstrData=<> State=3 - Connected to server - idle[27/02/2012 09:13:14] Pending Disconnect = False[27/02/2012 09:13:14] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...[27/02/2012 09:13:14] Config Prompt detector error: Invalid procedure call or argumentCurrentLine:
It seems to take an age just to paste the config in using Load overide terminal .
Spenner