list_listener_ports.jacl
### ### list_listener_ports.jacl ### ### ### ### ### proc list_listener_ports {cname nname sname} { ### ### set up globals ### global AdminConfig global AdminControl global AdminApp set scopeId [$AdminConfig getid /Cell:$cname/Node:$nname/Server:$sname/] if {[llength $scopeId] == 0} { puts "Serverid null - returning " exit } set xListenerPort [$AdminConfig list ListenerPort $scopeId] if {[llength $xListenerPort] == 0} { puts " " puts "No listener ports configured for $cname $nname $sname" puts " " exit } puts " " puts "ListenerPort: " puts " " puts "$xListenerPort" } ### ### Main ### if { !($argc == 3) } { puts "" puts "Usage: " puts " " puts "wsadmin.sh -username system -password password -f list_listener_ports.jacl cellname nodename servername" puts "" puts "For example: " puts " " puts "wsadmin.sh -username was -password acme@ -f list_listener_ports.jacl hostnameNetwork hostname ops_1_1" } else { set xcell [lindex $argv 0] set xnode [lindex $argv 1] set xserver [lindex $argv 2] list_listener_ports $xcell $xnode $xserver }