# usage Windows : wsadmin.bat -username -password
# Unix :./wsadmin.sh -username -password
# Version 1.0
# Author : Vineet Chauhan
################################################################################
set cellName [$AdminControl getCell]
set nodeName [$AdminControl getNode]
set server [$AdminConfig getid /Cell:$cellName/Node:$nodeName/Server:server1/]
set traceService [$AdminConfig list TraceService $server]
puts "########## Properties of trace Service #############"
set traceServiceBefore [$AdminConfig show $traceService]
puts $tracServiceBefore
puts "##############################################"
$AdminConfig modify $traceService {{enable false}}
$AdminConfig save
puts "Saved**"
puts "+++++++++Trace Properteies after change +++++++++++"
set traceServiceAfter [$AdminConfig show $traceService]
puts $traceService
puts "+++++++++++++++++++++++++++++++++++++++++++"
# P.S - I will be posting a more refined version very soon..!!