###   
### stopServer.jacl   
###   
###   
###   
###   
###   
   
proc stopServer {nname sname} {   
   
   
###   
### set up globals   
###   
   
global AdminConfig   
global AdminControl   
global AdminApp   


$AdminControl stopServer $sname $nname

   
   
}   
   
   
   
###   
### Main   
###   
   
   
if { !($argc == 2) } {   
   puts ""   
   puts "Usage:  "   
   puts " "   
   puts "wsadmin.sh -username system -password password -f stopServer.jacl nodename servername " 
   puts ""   
   puts "For example:  "   
   puts " "   
   puts "wsadmin.sh -username was -password acme@ -f  stopServer.jacl hostname ops_1_1 " 
} else {    
   set xnode        [lindex $argv 0]     
   set xserver      [lindex $argv 1]     
   stopServer $xnode $xserver 
}