### ### list_JDBCProvider.jacl ### ### ### ### ### proc list_JDBCProvider {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 xJDBCProviders [$AdminConfig list JDBCProvider $scopeId] if {[llength $xJDBCProviders] == 0} { puts " " puts "No JDBC Providers configured for $cname $nname $sname" puts " " exit } puts " " puts "JDBC Providers for: $cname $nname $sname" puts " " foreach xJDBCProviderID $xJDBCProviders { set xyz [$AdminConfig showAttribute $xJDBCProviderID name] puts "$xyz" } } ### ### Main ### if { !($argc == 3) } { puts "" puts "Usage: " puts " " puts "wsadmin.sh -username system -password password -f list_JDBCProvider.jacl cellname nodename servername" puts "" puts "For example: " puts " " puts "wsadmin.sh -username was -password acme@ -f list_JDBCProvider.jacl hostnameNetwork hostname ops_1_1" } else { set xcell [lindex $argv 0] set xnode [lindex $argv 1] set xserver [lindex $argv 2] list_JDBCProvider $xcell $xnode $xserver }