logo       

[TMF411] Remove Gateway: msg#00331

sysutils.tivoli.tme10

Subject: [TMF411] Remove Gateway

Hallo,


>remove an inactive gateway with the command wdelgate
> but the tmr complains that the gateway has endpoints

keep away from children ... this is dangerous code.

#! /bin/sh

GW="$1"

EPMGR=`wlookup EndpointManager`
# this is in wdelgate:
# idlcall $EPMGR delete_gateways '{ 1 \"'$GWOID'\" }'
GWOID=`wlookup -r Gateway "$GW" | cut -d# -f1`
test -z "$GWOID" && exit 1
RMOID=`wlookup RepeaterManager`
echo "Delete GW $GW, OID $GWOID"
# nur zur Info, welche GW existieren:
objcall $RMOID contents | fgrep tune_$TMR
objcall $GWOID rmobj
objcall $RMOID rmattr tune_$GWOID
# das is neu:
wdel /Library/Gateway/"$GW"
mnod=`echo $GWOID | cut -d. -f2`
objcall $TMR.$mnod.2 boot_method delete "$GWOID#TMF_Gateway::Gateway#"
wregister -u -r Gateway "$GW"
echo Recycle TMR server
if [ "$OS" = "Windows_NT" ]
then
net stop oserv
sleep 2
net start oserv
else
odadmin reexec 1
fi
rm -f $DBDIR/epmgr.bdb/$GWOID.bdb
rm -f $DBDIR/epmgr.bdb/$GWOID.log
wchkdb -u


Note: new Mobile/GSM/Natel number!

Tschau...Thomas
--
"Do you wanna be a legend or a passing footprint on the sands of time?"

Senior Consultant, Tivoli Certified Enterprise Consultant + Instructor
santix AG, www.santix.de, info-/JKUMw0Y9jazQB+pC5nmwQ@xxxxxxxxxxxxxxxx, fon
+49-89-321506-0, fax -99
Weihenstephaner Str. 4, D-85716 Unterschleissheim, GSM +49-170-9135811



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise