Quantcast
Channel: THWACK: All Content - Network Configuration Manager
Viewing all articles
Browse latest Browse all 6057

Simple reboot script need to run on aerohive APs

$
0
0

I just need to simply run a script on aerohive aps to reboot them weekly. I'm simply going to configuration management right now and executing a script on 1 device to do some testing but as soon as i run it the status of execute script is just sitting on "in progress". I'm thinking it's expecting a y/n response from ncm after the command itself. I have enabled session tracing in ncm so here are the details of actual commands and session trace

 

ACTUAL CLI OUTPUT FROM THE AP

 

Last login: Mon Jan 11 01:00:25 2016 from svr-at-netadmin.cb.careerbuilder.com

Aerohive Networks Inc.

Copyright (C) 2006-2015

AP-NOR-333-2FL-230-02#reboot

Do you really want to reboot? (Y/N)y

 

HERE IS THE SCRIPT I'M TRYING TO RUN THROUGH NCM

 

reboot

y

 

HERE IS THE COMPLETE CAPTURE SESSION TRACE

 

[1/11/2016 2:48:42 AM] -----------------NCM 7.4-------------------

[1/11/2016 2:48:42 AM] UseCustomMorePromptBehaviour: False

[1/11/2016 2:48:42 AM] MorePromptKey: 

[1/11/2016 2:48:42 AM] Login Attempts: 1

[1/11/2016 2:48:42 AM] Custom UserName Prompt:

[1/11/2016 2:48:42 AM] Custom Password Prompt:

[1/11/2016 2:48:42 AM] Device Template: Cisco NXOS-1.3.6.1.4.1.9

[1/11/2016 2:48:42 AM] System Name:

[1/11/2016 2:48:42 AM] System Description:

[1/11/2016 2:48:42 AM] System OID:

[1/11/2016 2:48:42 AM] OS Image:

[1/11/2016 2:48:42 AM] OS Version:

 

 

[1/11/2016 2:48:42 AM] UseExactPromptMatch=False

[1/11/2016 2:48:42 AM] Menu-Based mode=False

[1/11/2016 2:48:42 AM] FreezeLoginForPreCommands mode= False

[1/11/2016 2:48:42 AM] FISP mode= False

[1/11/2016 2:48:42 AM] WODSSH Version: 3.0.5.192

[1/11/2016 2:48:42 AM] UseVirtualPromptForCommands False

[1/11/2016 2:48:42 AM]

-->StateChange: Connecting to server<--

 

 

[1/11/2016 2:48:42 AM] Got HostFingerPrint: de:25:e1:69:b6:b1:fc:61:84:5b:59:9b:9a:c6:69:4e

[1/11/2016 2:48:42 AM] SWTelnet9 Crypto Information Begin

[1/11/2016 2:48:42 AM] Protocol = SSH2

[1/11/2016 2:48:42 AM] RemoteName = SSH-2.0-OpenSSH_5.9

[1/11/2016 2:48:42 AM] SCcipher = aes128-cbc

[1/11/2016 2:48:42 AM] CSCipher = aes128-cbc

[1/11/2016 2:48:42 AM] Keys = ssh-rsa

[1/11/2016 2:48:42 AM] SWTelnet9 Crypto Information End

[1/11/2016 2:48:43 AM]

-->StateChange: Connected to server - idle<--

 

 

[1/11/2016 2:48:43 AM] Solarwinds.Net SWTelnet9 Version 9.0.27

[1/11/2016 2:48:43 AM] Connected!

[1/11/2016 2:48:43 AM] --> Last login: Mon Jan 11 02:27:01 2016 from svr-at-netadmin.cb.careerbuilder.com

[1/11/2016 2:48:43 AM] -->

[1/11/2016 2:48:43 AM] -->

[1/11/2016 2:48:43 AM] ProcessLogin State: 0

[1/11/2016 2:48:43 AM] --> Aerohive Networks Inc.

[1/11/2016 2:48:43 AM] --> Copyright (C) 2006-2015

[1/11/2016 2:48:43 AM] --> AP-DAL-6FL-330-01#

[1/11/2016 2:48:43 AM] ProcessLogin State: 0

[1/11/2016 2:48:44 AM] TimerTick: mstrData=<AP-DAL-6FL-330-01#> State=3 - Connected to server - idle

[1/11/2016 2:48:44 AM] Pending Disconnect = False

[1/11/2016 2:48:44 AM] Sending to get a banner!

[1/11/2016 2:48:44 AM] <--

 

 

[1/11/2016 2:48:44 AM] -->

[1/11/2016 2:48:44 AM] -->

[1/11/2016 2:48:44 AM] --> AP-DAL-6FL-330-01#

[1/11/2016 2:48:44 AM] ProcessLogin State: 0

[1/11/2016 2:48:46 AM] TimerTick: mstrData=<AP-DAL-6FL-330-01#> State=3 - Connected to server - idle

[1/11/2016 2:48:46 AM] Pending Disconnect = False

[1/11/2016 2:48:46 AM] TimerTick: Send to CRLF get prompt again

[1/11/2016 2:48:46 AM] <--

 

 

[1/11/2016 2:48:46 AM] -->

[1/11/2016 2:48:46 AM] -->

[1/11/2016 2:48:46 AM] --> AP-DAL-6FL-330-01#

[1/11/2016 2:48:46 AM] ProcessLogin State: 0

[1/11/2016 2:48:46 AM] Custom Prompt detector detect # prompt

[1/11/2016 2:48:46 AM] no credentials needed - Command mode prompt detected

[1/11/2016 2:48:46 AM] Prompt is being set to : AP-DAL-6FL-330-01#

[1/11/2016 2:48:46 AM] Logged into Router

[1/11/2016 2:48:46 AM] <--

 

 

[1/11/2016 2:48:46 AM] -->

[1/11/2016 2:48:46 AM] -->

[1/11/2016 2:48:46 AM] --> AP-DAL-6FL-330-01#

[1/11/2016 2:48:46 AM] Start check prompt for menu-based device

[1/11/2016 2:48:46 AM] Process Line = <>

[1/11/2016 2:48:46 AM] Process Line = <>

[1/11/2016 2:48:46 AM] Process Line = <AP-DAL-6FL-330-01#>

[1/11/2016 2:48:46 AM] Fuzzy match detector start detecting prompt. String1=ap-dal-6fl-330-01# String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:46 AM] <-- terminal width 0

 

 

[1/11/2016 2:48:46 AM] --> terminal width 0

[1/11/2016 2:48:46 AM] -->

[1/11/2016 2:48:46 AM] -->                   ^-- unknown keyword or invalid input

[1/11/2016 2:48:46 AM] --> AP-DAL-6FL-330-01#

[1/11/2016 2:48:46 AM] Incomplete buffer with prompt is detected - save all lines to echo buffer

[1/11/2016 2:48:46 AM] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<terminal width 0

 

 

                  ^-- unknown keyword or invalid input

AP-DAL-6FL-330-01#

>>>

[1/11/2016 2:48:46 AM] Start detecting command echo in echo buffer...

[1/11/2016 2:48:46 AM] Echo is detected, EchoBuffer = <<<terminal width 0

 

 

                  ^-- unknown keyword or invalid input

AP-DAL-6FL-330-01#

>>>

[1/11/2016 2:48:46 AM] Remove Prompt - detected prompt line via RegEx

[1/11/2016 2:48:46 AM] Remove Prompt - prompt line is on invalid place, Save It. value=terminal width 0

 

 

                  ^-- unknown keyword or invalid input

AP-DAL-6FL-330-01#

FoundPromptLine=AP-DAL-6FL-330-01#

 

 

[1/11/2016 2:48:46 AM] Echo and prompt are removed if they exist, out buffer = <<<^-- unknown keyword or invalid input

AP-DAL-6FL-330-01#

>>>

[1/11/2016 2:48:46 AM] Start check prompt for menu-based device

[1/11/2016 2:48:46 AM] Process Line = <^-- unknown keyword or invalid input>

[1/11/2016 2:48:46 AM] Fuzzy match detector start detecting prompt. String1=^--unknownkeywordorinvalidinput String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:46 AM] Save Command Output: ^-- unknown keyword or invalid input

[1/11/2016 2:48:46 AM] Process Line = <AP-DAL-6FL-330-01#>

[1/11/2016 2:48:46 AM] Fuzzy match detector start detecting prompt. String1=ap-dal-6fl-330-01# String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:46 AM] <-- terminal length 0

 

 

[1/11/2016 2:48:46 AM] Process Line = <>

[1/11/2016 2:48:46 AM] --> terminal length 0

[1/11/2016 2:48:46 AM] -->

[1/11/2016 2:48:46 AM] -->                   ^-- unknown keyword or invalid input

[1/11/2016 2:48:46 AM] --> AP-DAL-6FL-330-01#

[1/11/2016 2:48:46 AM] Incomplete buffer with prompt is detected - save all lines to echo buffer

[1/11/2016 2:48:46 AM] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<terminal length 0

 

 

                  ^-- unknown keyword or invalid input

AP-DAL-6FL-330-01#

>>>

[1/11/2016 2:48:46 AM] Start detecting command echo in echo buffer...

[1/11/2016 2:48:46 AM] Echo is detected, EchoBuffer = <<<terminal length 0

 

 

                  ^-- unknown keyword or invalid input

AP-DAL-6FL-330-01#

>>>

[1/11/2016 2:48:46 AM] Remove Prompt - detected prompt line via RegEx

[1/11/2016 2:48:46 AM] Remove Prompt - prompt line is on invalid place, Save It. value=terminal length 0

 

 

                  ^-- unknown keyword or invalid input

AP-DAL-6FL-330-01#

FoundPromptLine=AP-DAL-6FL-330-01#

 

 

[1/11/2016 2:48:46 AM] Echo and prompt are removed if they exist, out buffer = <<<^-- unknown keyword or invalid input

AP-DAL-6FL-330-01#

>>>

[1/11/2016 2:48:46 AM] Start check prompt for menu-based device

[1/11/2016 2:48:46 AM] Process Line = <^-- unknown keyword or invalid input>

[1/11/2016 2:48:46 AM] Fuzzy match detector start detecting prompt. String1=^--unknownkeywordorinvalidinput String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:46 AM] Save Command Output: ^-- unknown keyword or invalid input

[1/11/2016 2:48:46 AM] Process Line = <AP-DAL-6FL-330-01#>

[1/11/2016 2:48:46 AM] Fuzzy match detector start detecting prompt. String1=ap-dal-6fl-330-01# String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:46 AM] <-- reboot

 

 

[1/11/2016 2:48:46 AM] Process Line = <>

[1/11/2016 2:48:46 AM] --> reboot

[1/11/2016 2:48:46 AM] -->

[1/11/2016 2:48:46 AM] --> Do you really want to reboot? (Y/N)

[1/11/2016 2:48:46 AM] Echo not detected yet. Push back data to echo buffer, EchoBuffer = <<<reboot

 

 

>>>

[1/11/2016 2:48:46 AM] Start detecting command echo in echo buffer...

[1/11/2016 2:48:46 AM] Echo is detected, EchoBuffer = <<<reboot

 

 

>>>

[1/11/2016 2:48:46 AM] Remove Prompt - prompt not found via RegEx

[1/11/2016 2:48:46 AM] Echo and prompt are removed if they exist, out buffer = <<<Do you really want to reboot? (Y/N)>>>

[1/11/2016 2:48:46 AM] Start check prompt for menu-based device

[1/11/2016 2:48:46 AM] Process Line = <Do you really want to reboot? (Y/N)>

[1/11/2016 2:48:46 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:46 AM] Pushing back: <Do you really want to reboot? (Y/N)>

[1/11/2016 2:48:46 AM] mPrompt is : <AP-DAL-6FL-330-01#>

[1/11/2016 2:48:48 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:48:48 AM] Pending Disconnect = False

[1/11/2016 2:48:48 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:48 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:48:50 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:48:50 AM] Pending Disconnect = False

[1/11/2016 2:48:50 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:48:50 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:50 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:48:52 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:48:52 AM] Pending Disconnect = False

[1/11/2016 2:48:52 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:48:52 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:52 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:48:54 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:48:54 AM] Pending Disconnect = False

[1/11/2016 2:48:54 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:48:54 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:54 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:48:56 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:48:56 AM] Pending Disconnect = False

[1/11/2016 2:48:56 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:48:56 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:56 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:48:58 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:48:58 AM] Pending Disconnect = False

[1/11/2016 2:48:58 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:48:58 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:48:58 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:00 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:00 AM] Pending Disconnect = False

[1/11/2016 2:49:00 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:49:00 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:49:00 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:02 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:02 AM] Pending Disconnect = False

[1/11/2016 2:49:02 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:49:02 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:49:02 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:04 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:04 AM] Pending Disconnect = False

[1/11/2016 2:49:04 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:49:04 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:49:04 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:06 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:06 AM] Pending Disconnect = False

[1/11/2016 2:49:06 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:49:06 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:49:06 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:08 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:08 AM] Pending Disconnect = False

[1/11/2016 2:49:08 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:49:08 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:49:08 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:10 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:10 AM] Pending Disconnect = False

[1/11/2016 2:49:10 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:49:10 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:49:10 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:12 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:12 AM] Pending Disconnect = False

[1/11/2016 2:49:12 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:49:12 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:49:12 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:14 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:14 AM] Pending Disconnect = False

[1/11/2016 2:49:14 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:49:14 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:49:14 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:16 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:16 AM] Pending Disconnect = False

[1/11/2016 2:49:16 AM] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

[1/11/2016 2:49:16 AM] Fuzzy match detector start detecting prompt. String1=doyoureallywanttoreboot?(y/n) String2=ap-dal-6fl-330-01#

[1/11/2016 2:49:16 AM] TimerTick: Just tick-tockin away. ..

[1/11/2016 2:49:17 AM] Disconnecting

[1/11/2016 2:49:18 AM] TimerTick: mstrData=<Do you really want to reboot? (Y/N)> State=3 - Connected to server - idle

[1/11/2016 2:49:18 AM] Pending Disconnect = True

[1/11/2016 2:49:18 AM] Disconnected - From: 10.50.15.20


Viewing all articles
Browse latest Browse all 6057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>