Remove the trust association interceptor class using scripting



Search Tips   |   Advanced Search


Use wsadmin to remove the trust association interceptor class.

Use the following example as a Jacl script file and run it with the "-f" option:

set vName "" 
set cellName $env(local.cell)

foreach taiEntry [$AdminConfig list TAInterceptor] {

   set iClass [lindex [$AdminConfig showAttribute $taiEntry interceptorClassName] 0]

   if { [string compare $iClass $vName] == 0 } {
       puts "found $iClass"
       puts "Removing the TAIntercepter class '$iClass'"
       set tai taiEntry
       #set t [$AdminConfig getid /Cell:$cellName/TAInterceptor:/] 
       #$AdminConfig remove $t
       $AdminConfig remove $taiEntry
       puts "'$iClass' is removed."

   if { ![info exists tai] } {
    puts "The class '$vName' does not exist." 

$AdminConfig save



[root@svtaix23] /tmp
./ -f tai.jacl
WASX7209I: Connected to process "dmgr" on node svtaix23CellManager01 using SOAP connector; The type of process is: DeploymentManager found Removing the TAIntercepter class '' '' is removed.


Related tasks

Use the AdminConfig object for scripted administration
Use AdminControl for scripted administration



Commands for the AdminConfig object
Commands for AdminControl