Ad Widget

Collapse

Item : return a bit array [dts480xSysAlarms]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robven
    Junior Member
    • Aug 2020
    • 2

    #1

    Item : return a bit array [dts480xSysAlarms]

    Hello,

    I would like to know whether it is possible for an item to get a bit array.

    Here is the MIB:
    dts480xSysAlarms OBJECT-TYPE
    SYNTAX DTSAlarm64 (SIZE(8))
    DESCRIPTION "Alarm state of the DTS 4801 and 4802
    Bit00=Alarm input 1
    Bit01=Alarm input 2
    Bit02=Alarm input 3
    Bit03=Alarm input 4
    Bit04=Error bit4
    Bit05=DTS restart
    Bit06=Failure 5V
    Bit07=Supply voltage too low
    Bit08=Line 1 current to high
    Bit09=Wrong time zone line 1
    Bit10=Wrong time zone DCF out
    Bit11=Wrong time zone RS485 (only DTS 4801) /serial
    Bit12=Error IRIG output
    Bit13=Tele.-file invalid
    Bit14=Program file invalid
    Bit15=Wrong time zone switch
    Bit16=Time source fail strat
    Bit17=Time source fail TO
    Bit18=No valid time
    Bit19=NTP synch lost
    Bit20=Error bit20
    Bit21=NTP failed
    Bit22=Wrong time zone DCF in
    Bit23=Syn. only diff too big
    Bit24=No mail server
    Bit25=SNMP not running
    Bit26=Error bit26
    Bit27=Error bit27
    Bit28=Line 2 current to high (only DTS 4802)
    Bit29=Wrong time zone line 2 (only DTS 4802)
    Bit30=Error bit30
    Bit31=Error bit31
    Bit32..Bit63=Error Device xx (only DTS 4801)"
    REFERENCE "OFS_ALSTATE_ALARMS, 8, VARTYPE_BYTEARR"
    ::= { dts480xSystem 8 }

    Is it possible to create an item for each bit separately? What is the easiest way to do it?
  • robven
    Junior Member
    • Aug 2020
    • 2

    #2
    A few more hints:
    DTSAlarm64 ::= TEXTUAL-CONVENTION
    DISPLAY-HINT "1x1x1x1x.1x1x1x1x"
    DESCRIPTION "The alarm mask is an array of byte. The first
    byte defines the mask for the alarm bits 0..7.
    The last byte defines the mask for the alarm
    bits 56..63.
    Every byte has the range 0 ... 255 (binary)."
    SYNTAX OCTET STRING (SIZE(8))

    I have simulated a mail server error and received the following value:
    0F 00 00 01 00 00 00 00
    Bit24=No mail server

    before that the value was like this:
    0F 00 00 00 00 00 00 00

    Comment

    Working...