UserDefined fields set in Smarts trap_mgr.conf are not set in SAM Notification or seen in console
search cancel

UserDefined fields set in Smarts trap_mgr.conf are not set in SAM Notification or seen in console

book

Article ID: 322933

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:




UserDefined fields set in trap_mgr.conf are not set in SAM notification
UserDefined fields set in trap_mgr.conf are not seen in console

Environment

VMware Smart Assurance - SMARTS

Cause

The Trap Adapter reads the entries in trap_mgr.conf and creates ICS_Notification objects in the Open Integration (OI) domain.  The Service Assurance Manager (SAM) domain then subscribes to these objects from the OI server via the DXA.  By default, the UserDefined Fields are not transferred by the DXA.

Resolution

To have the UserDefined attributes of ICS_Notification object transferred from OI to SAM, the user must  enable a HookScript in the Domain Entry for OI in:  SAM/smarts/local/conf/ics/ics.conf

Use:  sm_edit to modify conf/ics/ics.conf

Find the Domain entry for the OI Server:

#   DomainType definition for INCHARGE-OI.
    DomainType
    {
        ConfFile          = "dxa-oi.conf";
        MinimumCertainty  = 0.24;
        SmoothingInterval = 65;
#        HookScript        = "ics/dxa-sample-nl-hook.asl";
        Name              = "INCHARGE-OI";
    }

The sample hookscript named will transfer the UserDefined Attributes to SAM.  Uncomment the Hookscript line.

After the modification to ics.conf are complete, the SAM Domain needs to be restarted or ics.conf reloaded by executing (from the SAM/smarts directory):

bin/sm_adapter --server=INCHARGE-SA rules/ics/ICS_RemoteConfig.asl