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!

3640, Traffic getting blocked after approx 1 hour

Status
Not open for further replies.

ianbla

IS-IT--Management
Oct 31, 2001
156
GB
Hi, I hope somebody can help me on this. I have a program running on a customers server which sends information through their router then through our 3640 router to a server here, I can then see if the database is running, memory etc. Trouble is after about an hour (sometimes more, sometime less) the information stops and will only beging again if I do a;

clear ip nat translation inside *.*.*.* *.*.*.*

once this is done the information gets back through, until it happens again.

Does anybody have any ideas on where I could look for info to help diagnose where the priblem lies?

many thanks
Ian.
 
What version of IOS are you running on both 3640's. I have found certain versions to do weird things.
 
Currently 11.2. I know this is old and I am currently looking into the costs of upgrading the IOS to a new version. One workaround for now would be for me to schedule a clear ip trans inside every half hour or so but I cannot find a tool that will let me do this.

Any help on this would be very much appreciated.

cheers
Ian.
 
If you can code in, or understand expect, here is a tentative solution for you.

!#path to expect
set timeout -1
#specific privilege prompts
set prompt "^.*>"
set en_prompt "^.*#"
set config_prompt "^.*(config).*"
set int_prompt ".*(config-if).*"
#end specific info prompts

#debuggering
proc debug {} {
global argv
if {[string match "debug" [lindex $argv 1]]} {
puts "Okay debugging."
exp_internal 1
} else {
puts "NO debug [exec date]."
return
}
}

proc get_in {mode} {
puts -nonewline stdout "$mode: "
flush stdout
gets stdin L
return $L
}

proc send_cmd {ID cmd {res {}}} {

send -i $ID "$cmd\r"
expect -re -i $ID ".*(\[a-z\]+).*" {
catch {set result $expect_out(buffer)}
return $result
}
}
set host [lindex $argv 0]
spawn -noecho telnet $host
set id $spawn_id

expect {
-re ".*ogin" {
set N [get_in "Login:"]
send "$N\r"
expect "$prompt" {
send_user "Got login prompt."
set N [get_in "Priv_exec: "]
send "$N\r"
expect -re "$en_prompt" {
set xx [send_cmd $id "clear ip trans"]
catch {puts $xx}
}
}
}
timeout {send_user "Expect timedout on $host.\n" ;
send_user "Exiting."
exit
}
}
Called like:
scriptname hostname (options: debug)

HTH
 
Never used expect, looks a bit scary, is it available for download anywhere? is it a freebie?

Thanks for taking the time to post the code up for me.

cheers
Ian.
 
You need the expect interpreter(part of the Active State
tcl distribution:free) and a unix/linux host.
But, it's not worth your time if you haven't coded in
expect or tcl. You would have to add or remove some things
for your own environment, etc..

With code like this you could schedule a cron job every 15 minutes, exec the script, and have connectivity unimpaired
while you work on a permanent solution.
Expect is an application automating extension designed to
do things exactly like what you were talking about.
I don't have any other ideas, sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top