search cancel

Notification script output format change

book

Article ID: 213925

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Is there any way to change the message format from the notification out script? can we change the format of one value per line to one line, comma separated?

 

Also is there any way we can change the order the results are delivered, putting

CAPM_EventOccurredOn at the top of the list?

Cause

The sample script we provide calls the Unix OS command printenv.

Environment

Release : 20.2

Component : PERFORMANCE MANAGEMENT CONSOLE

Resolution

If you use the sample script we outlined, and it calls printenv, the order and format will always be the same.

It’s the output of printenv, a unix OS command.

 

What we are doing is posting the values as environmental variables.

So you can write your custom script any way you want.

If you want CAPM_EventOccurredOn the be first, then call it by name in your script: ${CAPM_EventOccurredOn}.

 

And call the others by name in any order, or amount u want.

If you want them comma separated, call

${variablename}, ${variablename}, ${variablename}

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/performance-management/3-7/using/configure-notifications.html

..

The staples start with CAPM_<name>

The event properties (diff per event type) start with CAPM_EvProp_<name>

Staples:

        ( EVENT_DATA_SOURCE_PROP_NAME )

        ( EVENT_CATEGORY_PROP_NAME )

        ( EVENT_TYPE_PROP_NAME )

        ( EVENT_SUBTYPE_PROP_NAME )

        ( EVENT_STATE_PROP_NAME )

        ( EVENT_SEVERITY_PROP_NAME )

        ( EVENT_OCCURRED_ON_PROP_NAME )

        ( EVENT_DESC_PROP_NAME )

        ( ITEM_PARENT_NAME_PROP_NAME )

        ( ITEM_NAME_PROP_NAME )

        ( ITEM_DESC_PROP_NAME )

        ( IP_PROP_NAME )

        ( ITEM_NAME_ALIAS_PROP_NAME )

        ( ITEM_TYPE_PROP_NAME )

        ( ITEM_SUB_TYPE_PROP_NAME )

        ( ITEM_ID_PROP_NAME )

        ( ITEM_PARENT_ID_PROP_NAME )

        ( ITEM_URL_PROP_NAME )

event properties:

    EVENT_DATA_SOURCE_PROP_NAME = "EventDataSource"

    EVENT_CATEGORY_PROP_NAME = "EventCategory"

    EVENT_TYPE_PROP_NAME = "EventType"

    EVENT_SUBTYPE_PROP_NAME = "EventSubType"

    EVENT_STATE_PROP_NAME = "EventState"

    EVENT_SEVERITY_PROP_NAME = "EventSeverity"

    EVENT_OCCURRED_ON_PROP_NAME = "EventOccurredOn"

    EVENT_DESC_PROP_NAME = "EventDesc"

    ITEM_PARENT_NAME_PROP_NAME = "ItemParentName"

    ITEM_NAME_PROP_NAME = "ItemName"

    ITEM_NAME_ALIAS_PROP_NAME = "ItemNameAlias"

    ITEM_DESC_PROP_NAME = "ItemDesc"

    IP_PROP_NAME = "IPAddress"

    ITEM_URL_PROP_NAME = "ItemUrl"

    ITEM_TYPE_PROP_NAME = "ItemType"

    ITEM_SUB_TYPE_PROP_NAME = "ItemSubtype"

    ITEM_ID_PROP_NAME = "ItemId"

    ITEM_PARENT_ID_PROP_NAME = "ItemParentId"