View Single Post
  #2  
Old 05-15-2019, 11:53 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,046
Hi Zander,

I guess we need to refine our keywords then because I'm sure I've seen this many times in our forums.

Maybe not "ip route-static" being the trigger phrase, but definitely the process described is similar.

Quote:
and need to pull out every line that contains ...
What will you do with the data you pull out? Are you going to write it to a file? Use it in some way within the script?

As a starting point I always like to give the link to the scripting manual. In Chapter 4: Reading Data from Remote Machines (Section 4.3 specifically) are examples of various methods for capturing the data, such as using Get(), Get2() and ReadString(). Then there's an entire section on VBS functions designed to extract the data, such as InStr(), Split(), etc.

Once I have a better understanding of the overall objective, I'll see if I can locate any other posts with relevant info.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote