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...
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.
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...
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...
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...
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
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...
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...
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
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 "+++...
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...
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...
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)...
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
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.