Automic Workload Automation

 View Only
  • 1.  How to setup rolling traces for an agent

    Posted Sep 30, 2016 11:57 AM
    Trace files can become quite large when left on for a long period of time.  How can we setup a rolling Trace to make those files more manageable?


  • 2.  How to setup rolling traces for an agent

    Posted Sep 30, 2016 12:13 PM

    This is what I had setup for testing....compliments of Automic staff that helped me out

     

     

     

     

     


     

     

    ********************************

    EVNT.ROLLING_TRACE_START - Event tab

    ********************************

    Check Intervals of:  2 minutes

     

     

     

     

     

     

     

     

     

     

     

     ********************************

    EVNT.ROLLING_TRACE_START - Process tab

    ********************************

    !
    ! Turn On
    !

    !Set a DB=4 and TCP/IP=2 trace on the WPs

    !Get System Name

    :SET &TRC# = GET_UC_SYSTEM_NAME()

    !Turn on tracing for WPs

    :SET_UC_SETTING SET_TRACE, &TRC#, "2400000000000000"

    !Turn on tracing for single CP - Before # sign is the System name, after # sign is CPxxx where *** is the CP number

    :SET_UC_SETTING SET_TRACE, "UC4#CP001", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP002", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP003", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP004", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP005", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP006", "2400000000000000"

     

     

     

     

     

     

     

     

     


     

     

    ********************************

    EVNT.ROLLING_TRACE_START - !Process tab

    ********************************

     


    !
    ! Turn off
    !

     

    !Set a DB=4 and TCP/IP=2 trace on the WPs

    !Get System Name

    :SET &TRC# = GET_UC_SYSTEM_NAME()

    !Turn on tracing for WPs

    :SET_UC_SETTING SET_TRACE, &TRC#, "0000000000000000"

    !Turn on tracing for single CP - Before # sign is the System name, after # sign is CPxxx where *** is the CP number

    :SET_UC_SETTING SET_TRACE, "UC4#CP001", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP002", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP003", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP004", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP005", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP006", "0000000000000000"


    !
    ! Turn Back On
    !

    !Set a DB=4 and TCP/IP=2 trace on the WPs

    !Get System Name

    :SET &TRC# = GET_UC_SYSTEM_NAME()

    !Turn on tracing for WPs

    :SET_UC_SETTING SET_TRACE, &TRC#, "2400000000000000"

    !Turn on tracing for single CP - Before # sign is the System name, after # sign is CPxxx where *** is the CP number

    :SET_UC_SETTING SET_TRACE, "UC4#CP001", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP002", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP003", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP004", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP005", "2400000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP006", "2400000000000000"

     

     





    ********************************

     

     

     

     

     

     

     

    SCRI.STOP_ROLLING_TRACE - Process tab

     

    ********************************


    !
    ! Turn off
    !

     

    !Set a DB=4 and TCP/IP=2 trace on the WPs

    !Get System Name

    :SET &TRC# = GET_UC_SYSTEM_NAME()

    !Turn on tracing for WPs

    :SET_UC_SETTING SET_TRACE, &TRC#, "0000000000000000"

    !Turn on tracing for single CP - Before # sign is the System name, after # sign is CPxxx where *** is the CP number

    :SET_UC_SETTING SET_TRACE, "UC4#CP001", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP002", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP003", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP004", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP005", "0000000000000000"
    :SET_UC_SETTING SET_TRACE, "UC4#CP006", "0000000000000000"

     

     

     

     

     

     



  • 3.  How to setup rolling traces for an agent

    Posted Sep 30, 2016 12:20 PM

    Setting a Rolling Trace from an Event will make those files easier to handle.

     Creating an event to roll traces over every Xminutes.

     The following are the instructions to turn on a rolling trace via a time event:

    · ) Create a newTime EventObject

    ·  ) In theEventtab of the Time Event, be sure thatRepeatedis set and set your "Check in intervals of" to the correct amount of time (Xminutes)

     · ) In theProcesstab, add the instructions below; this will turn the trace on when the event is activated:

     

           !Set a TCP/IP=9 trace on the Agent - <Agent Name> needs to change to reflect actual executor

          !Turn on tracing

          :SET_UC_SETTING SET_TRACE, "<Agent Name>", "9000000000000000"

     

    ·  ) In the!Processtab, put the following; this will turn the traces repeatedly everyXminutes where X is the amount of time you specified in theEvent tab:

     

           !Turn off tracing

           :SET_UC_SETTING SET_TRACE, "<Agent Name>", "0000000000000000"

           !Turn on tracing

           :SET_UC_SETTING SET_TRACE, "<Agent Name>", "9000000000000000"

     

    ·  ) Start your event when necessary and the traces will roll over. This helps maximize the amount of tracing while minimizing the amount of hard drive space necessary.

     The trace files will be generated on/TEMPfolder.