Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Use the wsadmin scripting AdminConfig object for scripted administration


Remove the trust association interceptor class using scripting

Use wsadmin.sh to remove the trust association interceptor class. See the Start the wsadmin scripting client using wsadmin.sh article for more information. Use the following example as a Jacl script file and run it with the "-f" option:


Procedure

### Jacl

set variableName "com.ibm.ws.security.web.TAMTrustAssociationInterceptorPlus"
set cellName $env(local.cell)

foreach taiEntry [$AdminConfig list TAInterceptor] {
   set interceptorClass [lindex [$AdminConfig showAttribute $taiEntry interceptorClassName] 0]
   if { [string compare $interceptorClass $variableName] == 0 } {
       puts "found $interceptorClass"
       puts "Removing the TAIntercepter class '$interceptorClass'"
       set tai taiEntry
       #set t [$AdminConfig getid /Cell:$cellName/TAInterceptor:/]
       #$AdminConfig remove $t
       $AdminConfig remove $taiEntry
       puts "'$interceptorClass' is removed."
       break

}

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

$AdminConfig save 


Results

Example output:
[root@svtaix23] /tmp
==>/usr/6*/A*/profiles/D*/bin/wsadmin.sh -f tai.jacl

WASX7209I: Connected to process "dmgr" on node svtaix23CellManager01 using SOAP connector;
The type of process is: DeploymentManager
found com.ibm.ws.security.web.TAMTrustAssociationInterceptorPlus
Removing the TAIntercepter class 'com.ibm.ws.security.web.TAMTrustAssociationInterceptorPlus'
'com.ibm.ws.security.web.TAMTrustAssociationInterceptorPlus' is removed.

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


Related


Commands for the AdminConfig object using wsadmin.sh
Commands for the AdminControl object using wsadmin.sh

+

Search Tips   |   Advanced Search