Modify attributes on running objects with the wsadmin tool
Procedure
- Start wsadmin
### Set the xserver variable to the running object set xserver [$AdminControl completeObjectName node=mynode,type=Server,*] ### Modify the running object $AdminControl setAttribute $xserver ringBufferSize 10 ### Modify multiple attribute name and value pairs set xserver [$AdminControl completeObjectName type=TraceService,process=server1,*] $AdminControl setAttributes $xserver {{ringBufferSize 10} {traceSpecification com.ibm.*=all=disabled}}AdminControl.completeObjectName(name) ts1 = AdminControl.completeObjectName(name) AdminControl.setAttribute(ts1, 'ringBufferSize', 10) ts1 = AdminControl.completeObjectName('type=TraceService,process=server1,*') AdminControl.setAttributes(ts1, [['ringBufferSize', 10], ['traceSpecification', 'com.ibm.*=all=disabled']])
Jython string
ts1 =AdminControl.completeObjectName('type=TraceService,process=server1,*') AdminControl.setAttributes(ts1, '[[ringBufferSize 10] [traceSpecification com.ibm.*=all=disabled]]')
See Also
AdminControl object for scripted administration
Turning traces on and off in servers processes using scripting
Performing operations on running objects using the wsadmin tool
Example: Identifying running objects
Commands for the AdminControl object