Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-10-2012, 05:47 PM
olivebranch2006 olivebranch2006 is offline
Registered User
 
Join Date: Apr 2010
Posts: 35
Unhappy Switch Audit Script waits unexpectedly

Hello,

I wrote an audit vbscript which SSHs into a cisco switch, runs commands, records the results into Excel spreadsheet, exits that switch and repeats for every switch listed in column B of the spreadsheet.

Sometimes it works perfectly and sometimes it does this:

stops at script line 2940
crt.Screen.WaitForString("sh cdp ne ")

the strange thing is that this line 2940 reads the response from the command issued on line 2938:

crt.Screen.Send "sh cdp ne gi" & objSheet.Cells(rownum, lwap1portcol).Value & " de" & vbCr

and the script manages to go through line 2938 but the command "sh cdp ne gi yada yada" never is sent to the switch console?

Bizarre.

Any help you could offer would be greatly appreciated! Full script and spreadsheet attached.

Thanks,


Christo
Attached Files
File Type: zip CCHCS-Switch-Audit-v1.03.zip (21.6 KB, 2281 views)
Reply With Quote
 

Tags
audit , cisco , switch , vbs , vbscript

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:10 PM.