Example: Migrating - Modifying attributes of application servers, applications, and other configured objects

  • wscp V4.0

    ApplicationServer modify /Node:dev-pc/ApplicationServer:myServer/
    -attribute {{PingInterval 120}}
    

  • wsadmin V6.x

    Jacl

    set trace [$AdminConfig getid /TraceService:/]
    $AdminConfig modify trace {{startupTraceSpecification com.ibm.ws.*=all=enabled}}
    $AdminConfig save
    

    Jython

    trace = AdminConfig.getid('/TraceService:/')
    AdminConfig.modify('trace', [[startupTraceSpecification com.ibm.ws.*=all=enabled]])
    AdminConfig.save()
    

    You must restart the server in order to see the changes in the configuration.