Jump to content
Калькуляторы

Уровни сигнала по SNMP c Juniper и Dlink DGS3620-28SC OID

Коллеги, хотим на по снмп снимать данные DDM с установленных модулей. Сами модули тоже с DDM

для:

Juniper ex-4550

Juniper ex-4500

Dlink -DGS3620-sc

Dlink -DGS3627G

Заранее очень признателен

Share this post


Link to post
Share on other sites

не со всех трансиверов получается снимать сигналы. Поэтому выход в использовании скрипта и генерирования своего оид.

http://forums.juniper.net/t5/Service-Support/Understanding-How-The-SNMP-Utility-MIB-Works/ba-p/183801

Share this post


Link to post
Share on other sites

О как, попробуем! Спасибо! Отпишусь по результатам

Share this post


Link to post
Share on other sites

лучше скачайте mibs и найдите сами.

http://habrahabr.ru/post/206612/

 

Для dlink вам нужно вот эта ветка

 

dmvy@dmvy-tn:/mnt/bigdata/mibs/3620/proprietaryMIB$ snmptranslate -Ln \
-M ./Dlink-common-mgmt/:./Dlink-mgmt/:/usr/share/mibs/ietf:/usr/share/mibs/iana \
-m DDM-MGMT-MIB \
-On -Tp .1.3.6.1.4.1.171.12.72
+--swDdmMIB(72)
  |
  +--swDdmCtrl(1)
  |  |
  |  +-- -RW- EnumVal   swDdmTrapState(1)
  |  |        Values: enabled(1), disabled(2)
  |  +-- -RW- EnumVal   swDdmLogState(2)
  |  |        Values: enabled(1), disabled(2)
  |  +-- -RW- EnumVal   swDdmPowerUnit(3)
  |           Values: mw(1), dbm(2)
  |
  +--swDdmInfo(2)
  |  |
  |  +--swDdmStatus(1)
  |     |
  |     +--swDdmStatusTable(1)
  |        |
  |        +--swDdmStatusEntry(1)
  |           |  Index: swDdmPort
  |           |
  |           +-- -R-- INTEGER   swDdmPort(1)
  |           |        Range: 1..65535
  |           +-- -R-- String    swDdmTemperature(2)
  |           |        Textual Convention: DisplayString
  |           |        Size: 0..255
  |           +-- -R-- String    swDdmVoltage(3)
  |           |        Textual Convention: DisplayString
  |           |        Size: 0..255
  |           +-- -R-- String    swDdmBiasCurrent(4)
  |           |        Textual Convention: DisplayString
  |           |        Size: 0..255
  |           +-- -R-- String    swDdmTxPower(5)
  |           |        Textual Convention: DisplayString
  |           |        Size: 0..255
  |           +-- -R-- String    swDdmRxPower(6)
  |                    Textual Convention: DisplayString
  |                    Size: 0..255
  |
  +--swDdmMgmt(3)
  |  |
  |  +--swDdmThresholdMgmt(1)
  |  |  |
  |  |  +--swDdmThresholdMgmtTable(1)
  |  |     |
  |  |     +--swDdmThresholdMgmtEntry(1)
  |  |        |  Index: swDdmPort, swDdmThresholdType
  |  |        |
  |  |        +-- -R-- EnumVal   swDdmThresholdType(1)
  |  |        |        Values: temperature(1), voltage(2), bias(3), txPower(4), rxPower(5)
  |  |        +-- -RW- String    swDdmHighAlarm(2)
  |  |        |        Textual Convention: DisplayString
  |  |        |        Size: 0..255
  |  |        +-- -RW- String    swDdmLowAlarm(3)
  |  |        |        Textual Convention: DisplayString
  |  |        |        Size: 0..255
  |  |        +-- -RW- String    swDdmHighWarning(4)
  |  |        |        Textual Convention: DisplayString
  |  |        |        Size: 0..255
  |  |        +-- -RW- String    swDdmLowWarning(5)
  |  |                 Textual Convention: DisplayString
  |  |                 Size: 0..255
  |  |
  |  +--swDdmActionMgmt(2)
  |     |
  |     +--swDdmActionMgmtTable(1)
  |     |  |
  |     |  +--swDdmActionMgmtEntry(1)
  |     |     |  Index: swDdmPort, swDdmActionType
  |     |     |
  |     |     +-- -R-- EnumVal   swDdmActionType(1)
  |     |     |        Values: alarm(1), warning(2)
  |     |     +-- -RW- EnumVal   swDdmShutdown(2)
  |     |     |        Values: enabled(1), disabled(2), other(3)
  |     |     +-- -RW- EnumVal   swDdmTrapAndLog(3)
  |     |              Values: enabled(1), disabled(2), other(3)
  |     |
  |     +--swDdmPortMgmtTable(2)
  |        |
  |        +--swDdmPortMgmtEntry(1)
  |           |  Index: swDdmPort
  |           |
  |           +-- -RW- EnumVal   swDdmPortState(1)
  |           |        Values: enabled(1), disabled(2)
  |           +-- -RW- EnumVal   swDdmPortShutdown(2)
  |                    Values: alarm(1), warning(2), none(3), other(4)
  |
  +--swDdmNotify(4)
     |
     +--swDdmNotifyPrefix(0)
     |  |
     |  +--swDdmAlarmTrap(1)
     |  +--swDdmWarningTrap(2)
     |
     +--swDdmNotificationBinding(1)
        |
        +-- ---N EnumVal   swDdmThresholdExceedType(1)
        |        Values: high(1), low(2)
        +-- ---N EnumVal   swDdmThresholdExceedOrRecover(2)
                 Values: exceed(1), recover(2)

 

Нашел эту ветку командой:

dmvy@dmvy-tn:/mnt/bigdata/mibs/3620/proprietaryMIB$ snmptranslate -Ln \
-M ./Dlink-common-mgmt/:./Dlink-mgmt/:/usr/share/mibs/ietf:/usr/share/mibs/iana \
-m ALL \
-Tp 1|grep -i ddm
           |     |  |  |     |        Values: sendSABM(1), sendDISC(2), sendDM(3), none(4), other(5)
           |     |  |  +--swDdmMIB(72)
           |     |  |  |  +--swDdmCtrl(1)
           |     |  |  |  |  +-- -RW- EnumVal   swDdmTrapState(1)
           |     |  |  |  |  +-- -RW- EnumVal   swDdmLogState(2)
           |     |  |  |  |  +-- -RW- EnumVal   swDdmPowerUnit(3)
           |     |  |  |  +--swDdmInfo(2)
           |     |  |  |  |  +--swDdmStatus(1)
           |     |  |  |  |     +--swDdmStatusTable(1)
           |     |  |  |  |        +--swDdmStatusEntry(1)
           |     |  |  |  |           |  Index: swDdmPort
           |     |  |  |  |           +-- -R-- INTEGER   swDdmPort(1)
           |     |  |  |  |           +-- -R-- String    swDdmTemperature(2)
           |     |  |  |  |           +-- -R-- String    swDdmVoltage(3)
           |     |  |  |  |           +-- -R-- String    swDdmBiasCurrent(4)
           |     |  |  |  |           +-- -R-- String    swDdmTxPower(5)
           |     |  |  |  |           +-- -R-- String    swDdmRxPower(6)
           |     |  |  |  +--swDdmMgmt(3)
           |     |  |  |  |  +--swDdmThresholdMgmt(1)
           |     |  |  |  |  |  +--swDdmThresholdMgmtTable(1)
           |     |  |  |  |  |     +--swDdmThresholdMgmtEntry(1)
           |     |  |  |  |  |        |  Index: swDdmPort, swDdmThresholdType
           |     |  |  |  |  |        +-- -R-- EnumVal   swDdmThresholdType(1)
           |     |  |  |  |  |        +-- -RW- String    swDdmHighAlarm(2)
           |     |  |  |  |  |        +-- -RW- String    swDdmLowAlarm(3)
           |     |  |  |  |  |        +-- -RW- String    swDdmHighWarning(4)
           |     |  |  |  |  |        +-- -RW- String    swDdmLowWarning(5)
           |     |  |  |  |  +--swDdmActionMgmt(2)
           |     |  |  |  |     +--swDdmActionMgmtTable(1)
           |     |  |  |  |     |  +--swDdmActionMgmtEntry(1)
           |     |  |  |  |     |     |  Index: swDdmPort, swDdmActionType
           |     |  |  |  |     |     +-- -R-- EnumVal   swDdmActionType(1)
           |     |  |  |  |     |     +-- -RW- EnumVal   swDdmShutdown(2)
           |     |  |  |  |     |     +-- -RW- EnumVal   swDdmTrapAndLog(3)
           |     |  |  |  |     +--swDdmPortMgmtTable(2)
           |     |  |  |  |        +--swDdmPortMgmtEntry(1)
           |     |  |  |  |           |  Index: swDdmPort
           |     |  |  |  |           +-- -RW- EnumVal   swDdmPortState(1)
           |     |  |  |  |           +-- -RW- EnumVal   swDdmPortShutdown(2)
           |     |  |  |  +--swDdmNotify(4)
           |     |  |  |     +--swDdmNotifyPrefix(0)
           |     |  |  |     |  +--swDdmAlarmTrap(1)
           |     |  |  |     |  +--swDdmWarningTrap(2)
           |     |  |  |     +--swDdmNotificationBinding(1)
           |     |  |  |        +-- ---N EnumVal   swDdmThresholdExceedType(1)
           |     |  |  |        +-- ---N EnumVal   swDdmThresholdExceedOrRecover(2)

Оставалось найти в каком модуле упоминается swDdmMIB и указать искать только в этом модуле.

Share this post


Link to post
Share on other sites

Juniper ex

не поддерживает снятие уровней по SNMP.

(есть пара мест, где написано, что поддерживает, но это неправда)

З.Ы. через JUNOScript снимать не пробовали, спасибо за наводку.

Edited by ollsanek

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this