Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. GoneHiking

    IPv6 addressing for serial links....

    I've just started learning and playing around with IPv6 and have a very basic question. With IPv4, you always use a /30 for serial links. For IPv6, would that become a /127? For example, I'm playing around with Cisco's Packet Tracer and have the following addresses on the serial links (and I'm...
  2. GoneHiking

    Help with ping script....

    Got everything going and it works like a champ. Thanks for all of your help. Andy
  3. GoneHiking

    Script not recognizing second prompt...

    hmmmm. So I guess the router didn't mind seeing the extra space at the end of the username, but it did mind seeing it after the password. You'd think it would have choked on the username, but then again, we're talking Cisco here lol. Thanks for the explanation mikrom.
  4. GoneHiking

    Script not recognizing second prompt...

    Whoops. My bad. Zoc is a terminal emulation program that support Rexx, and it's own blend of Rexx (Zoc-Rexx). I ended up talking to a co-worker who uses Zoc quite a bit and he pointed out my problem. I had to put the concatenation symbol in-between the password and the ^M. I don't really know...
  5. GoneHiking

    Script not recognizing second prompt...

    Needing some help on an odd problem. A piece of a script I'm working on telnets to a router, then waits for the Username prompt, sends my username, waits for a Password prompt, then sends sends my password. The first part works fine (i.e. it waits for the first prompt, sends my username, then it...
  6. GoneHiking

    Help with ping script....

    nclouston, stem variables were exactly what I needed. That solved my problem. Everything "seems" to working now, but I have to test my script "for real" now. I've just been making sure it did what I wanted it to do since I didn't have access to a router. Thanks for you help on this one. Very...
  7. GoneHiking

    Help with ping script....

    nclouston, I should have mentioned I tried your first suggestion with no change in the output. I'll look into your second suggestion and see if I can't get it working that way. Thanks, Andy
  8. GoneHiking

    Help with ping script....

    I did a little more testing and discovered that during the second call to the pingit subroutine, the script was not starting at line one of the "interfaces.txt" file. So, how do I "reinitialize" that file so that it starts at line 1, no matter how many times the script calls it/reads it...
  9. GoneHiking

    Help with ping script....

    I'm a little stumped on this one. What I have are two files of data (multiple fields, with the second field being an IP address). In the first file (peers.txt), I want to telnet to each of the IPs in that file. Once I telnet, I want to read through another file and ping the IPs in that file...
  10. GoneHiking

    Sending a carriage return - ping script...

    Thanks nclouston. That program looks promising. I downloaded the rexx.syn file and got it going. Andy
  11. GoneHiking

    Sending a carriage return - ping script...

    mikrom, thanks for the additional info. Can you recommend a good editor that does syntax highlighting? I'm currently using Notepad++ (which supports languages such as python and perl, but unfortunately, not Rexx). Thanks, Andy
  12. GoneHiking

    Sending a carriage return - ping script...

    Never mind. I see what I did. I mis-spelled ELSE as ESLE :(
  13. GoneHiking

    Sending a carriage return - ping script...

    MikeRom, that's a good point. I just wasn't thinking it through. I have incorporated that into my script. Thanks for pointing that out. I have one small issue. I've got it working, but in the last piece of the script, every time it sends the ping command, that statement is preceded by "+++...
  14. GoneHiking

    Sending a carriage return - ping script...

    I'm writing a script to ping a series of IP addresses and I've got all the logic in place except one piece. At the very end. I'm telling it to ping the IP, but how can I also tell it to send a carriage return (^M) at the end? I tried just a ^M at the end but go an error. Is there some way to...
  15. GoneHiking

    explanation of code snippet...

    mikrom, thanks for the quick reply. This is exactly what I was looking for. It makes sense now. Thanks for breaking it down so clearly! Andy
  16. GoneHiking

    explanation of code snippet...

    I'm just starting to learn Rexx, and do NOT come from a programming background, so go easy on me :) I'd like someone to explain this snippet of code to me. I get that "2" is passed to the ARG statement. What I don't get is the RETURN Code part. The explanation the author gave was that "it...
  17. GoneHiking

    calling anonther file from within an expect script....

    Hello Annihilannic, I tried your latest suggestion and it didn't work. I'm not sure why the suggestions you give (and things I've tried) aren't working. The mdso file is in the same directory as the expect script. Running it my itself produces the desired output (it's permissions are set 700)...
  18. GoneHiking

    calling anonther file from within an expect script....

    Well, I tried that and it still won't execute the file "mdso." The initial expect script completes with no problem, but it sill won't execute "mdso" before it completes running. Any other ideas? Thanks for the reply, Andy
  19. GoneHiking

    calling anonther file from within an expect script....

    Hello, I have a script that logs into a cisco switch, sends the info to a logfile, then logs out. What I then need to happen is to have the script "call" a separate file that is nothing more than a series of grep commands (all contained in a file that is set as an executable). My problem is that...

Part and Inventory Search

Back
Top