DX NetOps Manager

Expand all | Collapse all

CA eHealth imports values as zeros

Jump to Best Answer
  • 1.  CA eHealth imports values as zeros

    Posted 02-17-2017 04:33 AM

    Dear Colleagues,

     

    I have a problem with data import in CA eHealth and looking for help!. Cisco NEXUS has no SNMP for fiber power sensors. So, I need to import required data from CISCO console directly. I create the Cisco NEXUS fiber sensor element, define variables and so on. Unfortunately, eHealth import all values as zeros.  I found no errors or warnings in logs.

    Maybe I did something wrong. Can anyone help me with this problem?

    Best Regards,

    Ales'

     

    Summary:

    DDI Input:

    IR,1,module:fiberPowerSensors,02/17/2017,09:55:15,noDb,noId
    FT,SensorsData,ipAddr,uinteger,uinteger,symbol,symbol,symbol,timestamp,uinteger,uinteger,float,float
    FN,SensorsData,elementAddr,SysUpTime,index1,index2,index3,index4,measurementPeriodSampleTime,MeasurementPeriodLength,isDeltaed,impFiberPowerRxValue,impFiberPowerTxValue
    DS,,SensorsData
    100.80.80.80,,0,K06-ESW45-HR-Ethernet1/1,,,1487321715,1800,1,-2.26,-2.69

    DE

    nhExportData output:

    IR,2,,0,02/17/2017,10:22:14,EHEALTH
    FT,DataExport,string,string,string,floatNoExp,floatNoExp,string,integer,integer,floatNoExp,floatNoExp
    FN,DataExport,elementType,elementName,aliasName,speed,speed2,sampleTime,deltaTime,totalTime,fiberPowerRxValue,fiberPowerTxValue
    FT,NhError,symbol,symbol,symbol,symbol,symbol,symbol,uinteger,string,string,ipAddr,uinteger,symbol,symbol,symbol,string,string,string,string,string,string,string,string
    FN,NhError,severity,errorCode,extraCode,module,routine,fileName,lineNumber,errorData,extraData,elemIp,index1,index2,index3,index4,errorData2,errorData3,errorData4,errorData5,extraData2,extraData3,extraData4,extraData5
    DS,,DataExport,
    "fiberPowerSensor","K06-ESW45-HR-FIBERSENSOR-Ethernet1/1","K06-ESW45-HR-FIBERSENSOR-Ethernet1/1",0,0,"17/02/2017 09:25:15",1800,1800,0,0

    DE

     

    Detailed:

    omx:

    FT, ElementTypeDef, symbol, boolean, boolean, symbol, string, string, symbol, symbol, symbol, string, symbol, symbol, integer, float, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, b
    oolean, boolean, string, string, string, string, string, symbol, string, string, boolean, string, boolean, string, string, symbol

    FN, ElementTypeDef, elementType, isBaseType, isAltBaseType, basedOn, altBaseTypes, rdlTypeVar, aliasElementType, filterTechType, discoverType, nameSuffix, healthDacSymbol, serviceDacSymbol, smtNumber, normal
    SortOrder, aggregateSpeed, alwaysStoreInDb, showInConfigFltr, showInPathCfgFltr, showInGroupFltr, showInPathCfg, showInLiveEx, supportsAppType, supportsDuplex, addToParentUtilization, validCompTypes, analyze
    dComponents, validReportTypes, validSubjectTypes, validPanelTypes, defaultVolumeSymbol, defaultVariables, supportedElemAttrs, showInDciFilter, defaultTrendVars, showInOrgTree, cvStatsColumnUsage, stylesFile,
    showInRptMetaDataType

    DS, TypeName, TypeValueRec2, elementType
    2000001, fiberPowerSensor, "Fiber Power Sensor", "Fiber Power Sensor"
    DE

    DS,,ElementTypeDef
    fiberPowerSensor, no, no, multiTech, "component", "_isEnvSensor", , routerSwitch, , , , , , 404, , , no, no, no, no, yes, no, no, yes, , , "glance,trend,topN", "element,group", , , , , yes, , , , "",

    DE

     

    fiberPowerSensors-imp-sensor.mtf

    mib fiberPowerSensors-imp-sensor
    {
    file fiberPowerSensors-imp-sensor.mib

    version 2
    agent "Cisco NEXUS Fiber Power Sensor (import from script)"
    elementType fiberPowerSensor

    translation
    {
    #
    # MTF syntax = mibVariable dbColumnName
    #-------------------------------------------------------------

    mediaSpeed = 0

    variable110 = impFiberPowerRxValue.0% * (deltaTime / 100)
    variable111 = impFiberPowerTxValue.0% * (deltaTime / 100)
    #

    }
    }

     

    mib.pcm:

    copy of eHealth out-of-box cisco-entity-sensor.mib.pcm with next new strings:

    ...

    impFiberPowerRxValue 2
    impFiberPowerTxValue 3

    ...

     

    variable.usr:

    2000001| 36|Fiber Power Rx Value |Fiber Power Rx Value |fiberPowerRxValue
    2000002| 36|Fiber Power Tx Value |Fiber Power Tx Value |fiberPowerTxValue

     

    elementTypeVariable.usr:

    2000001|2000001|1|3000001
    2000001|2000002|1|3000002

     

    columnExpression.usr:

    3000001|var110
    3000002|var111

     

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

    nhiLabelTblDump -e 2000001


    Element Type [2000001] Fiber Power Sensor

    Variable Type: [ 1]
    Column
    Variable
    ==========================================================================
    [3000001] VAR110
    [2000001] Fiber Power Rx Value
    fiberPowerRxValue
    [3000002] VAR111
    [2000002] Fiber Power Tx Value
    fiberPowerTxValue

     

    DCI:

    FT, GlobalInfo, symbol
    FN, GlobalInfo, nmsSrc
    FT, Elements, symbol, symbol, symbol, ipAddr, symbol, symbol, symbol
    FN, Elements, objId, name, nmsId, ipAddr, mibTranslationFile, index2, poll
    FT,GroupLists,symbol,symbol
    FN,GroupLists,groupListId,name
    FT,GroupListContents,symbol,symbol,symbol
    FN,GroupListContents,rowId,groupListId,groupId
    FT, Operations, symbol
    FN, Operations, operator
    DS,,GlobalInfo
    powerSensor
    DE

    DS,,Elements

    1,K06-ESW45-HR-FIBERSENSOR-Ethernet1/1,K06-ESW45-HR-FIBERSENSOR-Ethernet1/1,100.80.80.80,fiberPowerSensors-imp-sensor.mtf,K06-ESW45-HR-Ethernet1/1,Yes

    DE

     

    DDI:

    IR,1,module:fiberPowerSensors,02/17/2017,09:55:15,noDb,noId
    FT,SensorsData,ipAddr,uinteger,uinteger,symbol,symbol,symbol,timestamp,uinteger,uinteger,float,float
    FN,SensorsData,elementAddr,SysUpTime,index1,index2,index3,index4,measurementPeriodSampleTime,MeasurementPeriodLength,isDeltaed,impFiberPowerRxValue,impFiberPowerTxValue
    DS,,SensorsData
    100.80.80.80,,0,K06-ESW45-HR-Ethernet1/1,,,1487321715,1800,1,-2.26,-2.69

    DE

     

    Example of nhExportData output:

    IR,2,,0,02/17/2017,10:22:14,EHEALTH
    FT,DataExport,string,string,string,floatNoExp,floatNoExp,string,integer,integer,floatNoExp,floatNoExp
    FN,DataExport,elementType,elementName,aliasName,speed,speed2,sampleTime,deltaTime,totalTime,fiberPowerRxValue,fiberPowerTxValue
    FT,NhError,symbol,symbol,symbol,symbol,symbol,symbol,uinteger,string,string,ipAddr,uinteger,symbol,symbol,symbol,string,string,string,string,string,string,string,string
    FN,NhError,severity,errorCode,extraCode,module,routine,fileName,lineNumber,errorData,extraData,elemIp,index1,index2,index3,index4,errorData2,errorData3,errorData4,errorData5,extraData2,extraData3,extraData4,extraData5
    DS,,DataExport,
    "fiberPowerSensor","K06-ESW45-HR-FIBERSENSOR-Ethernet1/1","K06-ESW45-HR-FIBERSENSOR-Ethernet1/1",0,0,"17/02/2017 09:25:15",1800,1800,0,0

    DE



  • 2.  Re: CA eHealth imports values as zeros
    Best Answer

    Posted 02-20-2017 08:02 PM

    Hi aliaksandr,

     

    I'm not sure you can add a negative value for floating point dataTypes in eHealth 6.3.x. Can you try (just as a test) to remove the -, so make it just 2.26 and 2.69 and then try again. 

     

    If you're still having problems, then open a support ticket so we can investigate this with our Sustaining team to see if there is a limitation on it.



  • 3.  Re: CA eHealth imports values as zeros

    Posted 02-21-2017 04:06 AM

    Hi Mohammed,
    Before I wrote this post I tested the solution with one variable only. During the test we imported negative float values without problem. The problem has begun when I added second variable.
    I will test the import of positive float values for two variables once more, but It seems the problem is elsewhere.
    Next, I will contact our CA partners for support ticket.
    Thank You and Best Regards,
    Alex