Here are 2 scripts we use.
The first one lists the status of the gateways
NETTOOL.NET.SYS "nam;rou;gatel;quit"
The next one brings back up the ones down.
purge netout,temp >$null
build netout;temp;rec=-80,,f,ascii;nocctl;msg
file netout,oldtemp;dev=disc
nettool.net.sys "nam;rou;gatelist;quit" >*netout
setvar gaterec," "
reset netout
while finfo("netout","eof") > 0
input gaterec <netout
setvar gateip, rtrim(str(gaterec,1,15))
if gateip = "!sysgateway"
setvar gatestatus,str(gaterec,40,1)
if gatestatus = "n" then
Tellop *********************************************
Tellop *** Router at !sysgateway is down !!
Tellop ***
Tellop *** I will re-enable
Tellop ***
Tellop *********************************************
nettool.net.sys "nam;rou;gateup !sysgateway;quit"
else
echo !HPTimef and all is well.
echo
endif
endif
endwhile
enjoy them and support better users.
-----Original Message-----
From: Colin Berg [mailto:[log in to unmask]]
Sent: Thursday, October 04, 2001 5:46 PM
To: [log in to unmask]
Subject: On Site goes Gone Down Need to Restart Network on HP3000
Hi,
I have a problem which I hope someone can answer.
I have a combination of sites connected via ISDN & Frame Relay
connecting to my HP3000 979/200. I only have one gateway configured to
the one router which connects to the network.
When one of the remote site losses the line or has a power failure I
need to shutdown the network on the HP3000 and restart it to get this
site back online.
As you can well understand the users at all other sites are not real
happy when they loss their session and need to logon again.
Other network facilities such as email and application servers (NT) do
not suffer from this problem.
Does anyone know a way to work around this problem (HP Support
doesn't)
Colin Berg
McWilliam's Wines Pty Limited
SYDNEY, Australia
[log in to unmask]
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|