[omniORB] CosNotification.StructuredEvent printing
Anna Patil
patilanna at hotmail.com
Sat Aug 15 05:42:44 UTC 2020
Hi All,
I am able to pull pull_structured_event() as below, however support required to parse these events.
Received event from nms
---------------------------------------------
CosNotification.StructuredEvent(header=CosNotification.EventHeader(fixed_header=CosNotification.FixedEventHeader(event_type=CosNotification.EventType(domain_name='tmf_mtnm', type_name='NT_ALARM'), event_name=''), variable_header=[]), filterable_data=[CosNotification.Property(name='notificationId', value=CORBA.Any(CORBA.TC_string, '2646127')), CosNotification.Property(name='objectName', value=CORBA.Any(CORBA.TypeCode("IDL:mtnm.tmforum.org/globaldefs/NVSList_T:1.0"), [globaldefs.NameAndStringValue_T(name='EMS', value='ECI/LightSoft_1'), globaldefs.NameAndStringValue_T(name='ManagedElement', value='ECI/EMS_STMS_40/9130'), globaldefs.NameAndStringValue_T(name='PTP', value='port-ub/0')])), CosNotification.Property(name='nativeEMSName', value=CORBA.Any(CORBA.TC_string, 'ge-ub/0.0')), CosNotification.Property(name='objectType', value=CORBA.Any(CORBA.TypeCode("IDL:mtnm.tmforum.org/notifications/ObjectType_T:1.0"), OT_PHYSICAL_TERMINATION_POINT)), CosNotification.Property(name='emsTime', value=CORBA.Any(CORBA.TC_string, '20200814132322.3')), CosNotification.Property(name='neTime', value=CORBA.Any(CORBA.TC_string, '20200814132319.470')), CosNotification.Property(name='isClearable', value=CORBA.Any(CORBA.TC_boolean, False)), CosNotification.Property(name='layerRate', value=CORBA.Any(CORBA.TC_short, 87)), CosNotification.Property(name='perceivedSeverity', value=CORBA.Any(CORBA.TypeCode("IDL:mtnm.tmforum.org/notifications/PerceivedSeverity_T:1.0"), PS_INDETERMINATE)), CosNotification.Property(name='nativeProbableCause', value=CORBA.Any(CORBA.TC_string, 'OSPF If Config Error')), CosNotification.Property(name='probableCause', value=CORBA.Any(CORBA.TC_string, 'UNIDENTIFIED')), CosNotification.Property(name='probableCauseQualifier', value=CORBA.Any(CORBA.TC_string, 'ospfIfConfigError@@ge-ub/0.0@@0')), CosNotification.Property(name='serviceAffecting', value=CORBA.Any(CORBA.TypeCode("IDL:mtnm.tmforum.org/notifications/ServiceAffecting_T:1.0"), SA_NON_SERVICE_AFFECTING)), CosNotification.Property(name='affectedTPList', value=CORBA.Any(CORBA.TypeCode("IDL:mtnm.tmforum.org/globaldefs/NamingAttributesList_T:1.0"), [])), CosNotification.Property(name='rcaiIndicator', value=CORBA.Any(CORBA.TC_boolean, False)), CosNotification.Property(name='additionalText', value=CORBA.Any(CORBA.TC_string, 'ospfIfConfigError: OSPF interface configuration error 7 received from ')), CosNotification.Property(name='additionalInfo', value=CORBA.Any(CORBA.TypeCode("IDL:mtnm.tmforum.org/globaldefs/NVSList_T:1.0"), [globaldefs.NameAndStringValue_T(name='LSNExt_NativeProbableCause', value='OSPF If Config Error'), globaldefs.NameAndStringValue_T(name='LSNExt_AckStatus', value='ALM_UNACKNOWLEDGED'), globaldefs.NameAndStringValue_T(name='LSNExt_MEName', value='Shapath_Bareja_8CH'), globaldefs.NameAndStringValue_T(name='LSNExt_GroupName', value='Apollo_Gujrat'), globaldefs.NameAndStringValue_T(name='LSNExt_ALCV', value='Unknown'), globaldefs.NameAndStringValue_T(name='LSNExt_AlarmUniqueString', value='EMS DN=ECI/EMS_STMS_40, EMS notifId=9183695, CAM ID=5')]))], remainder_of_body=CORBA.Any(CORBA.TC_null, None))
---------------------------------
would like to print like below
==========
Sample taken from https://docs.oracle.com/cd/E51879_01/doc.724/e59309/tmfin_nms_list_ref.htm#BABHIEAF
this is done in java, how can I parse in Python.
name: notificationId value:29
name: objectName value:
name: EMS value:ECI/LightSoft_1
name: ManagedElement value:LSN/EMS_XDM_121/1064
name: EquipmentHolder value:/rack=1/shelf=1/slot=1/sub_slot=4
name: objectType value:OT_EQUIPMENT_HOLDER
name: emsTime value:20140302141559.0
name: neTime value:
name: edgePointRelated value:FALSE
name: remainder_of_body value:
Name: attributeList value:
name: EMS value:ECI/LightSoft_1
name: ManagedElement value:LSN/EMS_XDM_121/1064
name: EquipmentHolder value:/rack=1/shelf=1/slot=1/sub_slot=4
name: userLabel value:I1 OTR1 4
name: nativeEMSName value:I1 OTR1 4
name: owner value:
name: alarmReportingIndicator value:TRUE
name: holderType value:sub_slot
name: expectedOrInstalledEquipment value:
name: EMS value:LSN/EMS_XDM_121
name: ManagedElement value:1064
name: EquipmentHolder value:/rack=1/shelf=1/slot=1/sub_slot=4
name: Equipment value:1
name: EquipmentObjectTypeList value:
NONE
ETR1
OTR1
name: holderState value:EXPECTED_AND_NOT_INSTALLED
name: additionalInfo value:
name: LSNExt_TimestampSignature value:20140302141559.8
regards
Anna Patil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.omniorb-support.com/pipermail/omniorb-list/attachments/20200815/06879279/attachment.html>
More information about the omniORB-list
mailing list