Modify attributes on running objects

 


  1. Invoke AdminControl

  2. Obtain the name of the running object with the following command:

    $AdminControl completeObjectName name
    

  3. Issue the following command:

    set ts1 [$AdminControl completeObjectName name]
    

  4. Modify the running object with the following command:

    $AdminControl setAttribute $ts1 ringBufferSize 10
    

  5. Modify multiple attribute name and value pairs:

    set ts1 [$AdminControl completeObjectName type=TraceService,process=servername,*]
    $AdminControl setAttributes $ts1 {{ringBufferSize 10} {traceSpecification com.ibm.*=all=disabled}}
    

    The new attribute values are returned to the command line.