8 Replies Latest reply on Jul 22, 2019 6:05 AM by Bill Robinson

    BSA integration with SNMP, without mib file?

    Raghava PH
      Share This:

      Hi Experts,

       

      i'm trying to integration BSA with SNMP adapter without mib file and i'm getting traps in SNMP_ENTERPRISE class and i wrote a child class and map file but output was not changing.

       

      How to change event from SNMP_ENTERPRISE to SNMP_BSA_alertTra ?


      child class:-

       

      MC_EV_CLASS : SNMP_BSA_alertTrap ISA SNMP_ENTERPRISE

      DEFINES

      {

        snmpv_alertTrapJobname : STRING;

        snmpv_alertTrapJobStartTime : STRING;

        snmpv_alertTrapJobEndTime : STRING;

        snmpv_alertTrapBSASeverity : STRING;

        snmpv_alertTrapBSAValue : STRING;

        snmpv_alertTrapBSAJobId : STRING;

        snmpv_alertTrapBSAValueNo : STRING;

        };

      END

       

      MAP file:-

       

      CLASS SNMP_BSA_alertTrap

      $TrapOID equals /^1\.3\.6\.1\.4\.1\.12788($|\.)/

      snmpv_BSA_alertTrapJobname : GetListElem ($var, 0)

      snmpv_BSA_alertTrapJobStartTime : GetListElem ($var, 1)

      snmpv_BSA_alertTrapJobEndTime : GetListElem ($var, 2)

      snmpv_BSA_alertTrapBSASeverity : GetListElem ($var, 3)

      snmpv_BSA_alertTrapBSAValue : GetListElem ($var, 4)

      snmpv_BSA_alertTrapBSAJobId : GetListElem ($var, 5)

      snmpv_BSA_alertTrapBSAValueNo : GetListElem ($var, 6)

      snmpv_BSA_alertTrapBSANumber : GetListElem ($var, 7)

        END

       

      Event Details:-

      SNMP_ENTERPRISE;

      mc_client_address='10.51.23.30';

      mc_collectors=['1.1','3.1.1','4.1','5.1','13.1.1'];

      mc_date_modification=1563513341;

      mc_effects=[];

      mc_event_category=;

      mc_event_model_version='1.1.00';

      mc_event_relations=[];

      mc_event_subcategory=OTHER;

      mc_history=[];

      mc_host_address='10.51.24.33';

      mc_host_class='';

      mc_host_id=1;

      mc_incident_report_time=1563513341;

      mc_incident_time=0;

      mc_local_reception_time=1563513341;

      mc_origin_class='MA::ESnmpTrap';

      mc_origin_key='';

      mc_origin_sev='';

      mc_original_priority=PRIORITY_5;

      mc_original_severity=OK;

      mc_owner='';

      mc_parameter='';

      mc_parameter_threshold='';

      mc_parameter_unit='';

      mc_parameter_value='';

      mc_priority=PRIORITY_5;

      mc_propagations=['ts_event_gateway:247','pn_server_m0752:205'];

      mc_relation_source='';

      mc_ueid='mc.pncell_M0752.1d3151fd.0';

      mc_using_organization='';

      mc_using_organization_id='';

      msg='';

      pn_detail_diag=0;

      pn_detail_diag_count=0;

      repeat_count=0;

      severity=OK;

      snmp_community='Public';

      snmp_contextEngineID='N/A';

      snmp_enterprise='1.3.6.1.4.1.1031.9';

      snmp_enterprise_str='bmc';

      snmp_error_index=-1;

      snmp_error_status=-1;

      snmp_oids=['1.3.6.1.4.1.1031.9.2.2','1.3.6.1.4.1.1031.9.2.3','1.3.6.1.4.1.1031.9.2.4','1.3.6.1.4.1.1031.9.2.5','1.3.6.1.4.1.1031.9.2.6','1.3.6.1.4.1.1031.9.2.7','1.3.6.1.4.1.1031.9.2.8','1.3.6.1.4.1.1031.9.2.9','1.3.6.1.4.1.1031.9.2.10','1.3.6.1.4.1.1031.9.2.11','1.3.6.1.4.1.1031.9.2.12','1.3.6.1.4.1.1031.9.2.13','1.3.6.1.4.1.1031.9.2.14','1.3.6.1.4.1.1031.9.2.15','1.3.6.1.4.1.1031.9.2.16','1.3.6.1.4.1.1031.9.2.17','1.3.6.1.4.1.1031.9.2.18','1.3.6.1.4.1.1031.9.2.19'];

      snmp_oidst=['XalertTrapCallType','XalertTrapSerial','XalertTrapCompType','XalertTrapCompMachine','XalertTrapCompName','XalertTrapMessageId','XalertTrapXSeverity','XalertTrapMessage','XalertTrapXTime','XalertTrapXTimeOFLast','XalertTrapCounter','XalertTrapStatus','XalertTrapNote','XalertTrapKey1','XalertTrapKey2','XalertTrapKey3','XalertTrapKey4','XalertTrapKey5'];

      snmp_trap_type=6;

      snmp_trap_type_str='enterpriseSpecific';

      snmp_vals=['I','115','4','R0506','R0506','40100','2','Directory service authentication is not set. EM internal authentication is active.','20190719104537','20190719104537','1','1','','','','','',''];

      snmp_version=0;

      status=OPEN;

      END

       

      I have tried but i'm getting event in same class, please assist on the same.

       

       

      Thanks & Regards,

      Raghava PH