SNMP
Материал из M-200 WIKI
(Различия между версиями)
Pax (обсуждение | вклад) |
Pax (обсуждение | вклад) (→Для моторов 5.86.76 и старше:) |
||
| (не показаны 5 промежуточных версий 1 участника) | |||
| Строка 2: | Строка 2: | ||
{{ПравГлавМеню}} | {{ПравГлавМеню}} | ||
| − | + | ''Для моторов младше '''5.86.76''' - [[SMPAlarm]]'' | |
| − | + | ||
| + | |||
| + | ==Для моторов '''5.86.76''' и старше:== | ||
| + | |||
| + | |||
| + | SNMP реализован на базе подсистемы [[proxy|PROXY]], которая должна быть должным образом сконфигурирована и запущена. | ||
| + | |||
| + | Для работы SNMP необходим proxy-snmp. | ||
| + | |||
| + | ==Действия:== | ||
| + | |||
| + | Запросить все что есть. | ||
| + | *''snmpwalk -c public -v 1 192.168.5.67 SMP-MTA-MIB:mta'' | ||
| + | |||
| + | Запросить таблицу с PCMами | ||
| + | *''snmptable -c public -v 1 192.168.5.67 SMP-MTA-MIB:pcmTable'' | ||
| + | |||
| + | Получить состояние RRA в модуле 127 первом потоке | ||
| + | *''snmpget -c public -v 1 192.168.5.67 SMP-MTA-MIB::pcmRRAPresent.127.1'' | ||
| + | |||
| + | |||
| + | == Структура: == | ||
| + | |||
| + | |||
| + | [http://www.m-200.com/data/snmp/SMP-MTA-MIB.txt Скачать библиотеку SMP-MTA-MIB ] | ||
| + | |||
| + | +--mta(10052) | ||
| + | | | ||
| + | +--station(1) | ||
| + | | | | ||
| + | | +--stationEntry(1) | ||
| + | | | | | ||
| + | | | +-- -R-- Integer32 numberModules(1) | ||
| + | | | | Textual Convention: ModuleIndex | ||
| + | | | | Range: 1..127 | ||
| + | | | | | ||
| + | | | +--moduleTable(2) | ||
| + | | | | | ||
| + | | | +--moduleEntry(1) | ||
| + | | | | Index: moduleIndex | ||
| + | | | | | ||
| + | | | +-- -R-- Integer32 moduleIndex(1) | ||
| + | | | | Textual Convention: ModuleIndex | ||
| + | | | | Range: 1..127 | ||
| + | | | +-- -R-- EnumVal moduleType(2) | ||
| + | | | | Values: none(0), MAL(1), MPA(2), MPB(3), MPC(4), C415(5), SS(6) | ||
| + | | | +-- -R-- Integer32 amountSLOT(3) | ||
| + | | | | Range: 1..20 | ||
| + | | | +-- -R-- Integer32 amountPCM(4) | ||
| + | | | | Range: 1..256 | ||
| + | | | +-- -R-- Integer32 amountAIR(5) | ||
| + | | | | Range: 1..128 | ||
| + | | | +-- -R-- String name(6) | ||
| + | | | Textual Convention: DisplayString | ||
| + | | | Size: 0..255 | ||
| + | | | | ||
| + | | +--slotTable(2) | ||
| + | | | | | ||
| + | | | +--slotEntry(1) | ||
| + | | | | Index: moduleIndex, slotIndex | ||
| + | | | | | ||
| + | | | +-- -R-- Integer32 moduleIndex(1) | ||
| + | | | | Textual Convention: ModuleIndex | ||
| + | | | | Range: 1..127 | ||
| + | | | +-- -R-- Integer32 slotIndex(2) | ||
| + | | | | Range: 1..20 | ||
| + | | | +-- -R-- EnumVal slotType(3) | ||
| + | | | | Values: none(0), a16(1), c88(2), c68(3), a84(4), i38(5), v38(6), a08(7), c48(8), c412(9), a8(10), c44(11), c16(12), c08(13) | ||
| + | | | +-- -R-- Integer32 slotPortNumbers(4) | ||
| + | | | Range: 1..16 | ||
| + | | | | ||
| + | | +--pcmTable(3) | ||
| + | | | | | ||
| + | | | +--pcmEntry(1) | ||
| + | | | | Index: moduleIndex, pcmIndex | ||
| + | | | | | ||
| + | | | +-- -R-- Integer32 moduleIndex(1) | ||
| + | | | | Textual Convention: ModuleIndex | ||
| + | | | | Range: 1..127 | ||
| + | | | +-- -R-- Integer32 pcmIndex(2) | ||
| + | | | | Range: 1..256 | ||
| + | | | +-- -R-- EnumVal pcmType(3) | ||
| + | | | | Values: none(0), cas(1), dss1(2), v5an(3), v5le(4), v52an(5), v52le(6), sorm(7), mtp(8), permanent(9), int(10), ip(11), sorm-reserved(12), sorm-in(13), sorm-out(14), sorm-out-reserved(15), sorm-in-reserved(16) | ||
| + | | | +-- -R-- Integer32 pcmPortNumbers(4) | ||
| + | | | | Range: 1..31 | ||
| + | | | +-- -R-- String pcmName(5) | ||
| + | | | | Textual Convention: DisplayString | ||
| + | | | | Size: 0..255 | ||
| + | | | +-- -R-- EnumVal pcmStatus(6) | ||
| + | | | | Values: LINK-INT-OK(0), LINK-INT-ERROR(1), LINK-EXT-OK(2), LINK-EXT-ERROR(3), LINK-NONE(4), LINK-BLOCK(5), LINK-UNKNOWN(255) | ||
| + | | | +-- -R-- EnumVal pcmLOSPresent(7) | ||
| + | | | | Values: false(0), true(1), unknown(255) | ||
| + | | | +-- -R-- EnumVal pcmAISPresent(8) | ||
| + | | | | Values: false(0), true(1), unknown(255) | ||
| + | | | +-- -R-- EnumVal pcmRRAPresent(9) | ||
| + | | | Values: false(0), true(1), unknown(255) | ||
| + | | | | ||
| + | | +--airTable(4) | ||
| + | | | | | ||
| + | | | +--airEntry(1) | ||
| + | | | | Index: moduleIndex, airIndex | ||
| + | | | | | ||
| + | | | +-- -R-- Integer32 moduleIndex(1) | ||
| + | | | | Textual Convention: ModuleIndex | ||
| + | | | | Range: 1..127 | ||
| + | | | +-- -R-- Integer32 airIndex(2) | ||
| + | | | | Range: 1..256 | ||
| + | | | +-- -R-- EnumVal airType(3) | ||
| + | | | | Values: none(0), extv52(1), dss1subscriber(2), isdn(3), unified(4), ip(8), int-ip(11), agent(12), conf(13) | ||
| + | | | +-- -R-- Integer32 airPortNumbers(4) | ||
| + | | | Range: 1..999 | ||
| + | | | | ||
| + | | +--portTable(5) | ||
| + | | | | | ||
| + | | | +--portEntry(1) | ||
| + | | | | Index: portType, portModuleIndex, portITEMIndex, portPORTIndex | ||
| + | | | | | ||
| + | | | +-- -R-- EnumVal portType(1) | ||
| + | | | | Values: slot(1), pcm(2), air(3) | ||
| + | | | +-- -R-- Integer32 portModuleIndex(2) | ||
| + | | | | Textual Convention: ModuleIndex | ||
| + | | | | Range: 1..127 | ||
| + | | | +-- -R-- Integer32 portITEMIndex(3) | ||
| + | | | | Range: 1..999 | ||
| + | | | +-- -R-- Integer32 portPORTIndex(4) | ||
| + | | | | Range: 1..999 | ||
| + | | | +-- -R-- INTEGER portSigType(5) | ||
| + | | | +-- -R-- EnumVal portState(6) | ||
| + | | | | Values: free(0), preanswer(1), answer(2), release(3) | ||
| + | | | +-- -R-- String portCallingNumber(7) | ||
| + | | | | Textual Convention: DisplayString | ||
| + | | | | Size: 0..255 | ||
| + | | | +-- -R-- String portCalledNumber(8) | ||
| + | | | | Textual Convention: DisplayString | ||
| + | | | | Size: 0..255 | ||
| + | | | +-- -R-- String portNumberA(9) | ||
| + | | | | Textual Convention: DisplayString | ||
| + | | | | Size: 0..255 | ||
| + | | | +-- -R-- String portNumberB(10) | ||
| + | | | Textual Convention: DisplayString | ||
| + | | | Size: 0..255 | ||
| + | | | | ||
| + | | +--stationTraps(10) | ||
| + | | | | ||
| + | | +--stationTraps#(0) | ||
| + | | | | ||
| + | | +--portInfoTrap(1) | ||
| + | | | | ||
| + | | +--linkInfoTrap(2) | ||
| + | | | ||
| + | +-- -R-- EnumVal LOS(2) | ||
| + | | Values: false(0), true(1) | ||
| + | +-- -R-- EnumVal AIS(3) | ||
| + | | Values: false(0), true(1) | ||
| + | +-- -R-- EnumVal RRA(4) | ||
| + | | Values: false(0), true(1) | ||
| + | +-- -R-- EnumVal linkType(5) | ||
| + | Values: LINK-INT-OK(0), LINK-INT-ERROR(1), LINK-EXT-OK(2), LINK-EXT-ERROR(3), LINK-NONE(4), LINK-BLOCK(5) | ||
| + | |||
[[Категория:Техническая документация]] | [[Категория:Техническая документация]] | ||
[[Категория:Мониторинг]] | [[Категория:Мониторинг]] | ||
Текущая версия на 11:13, 3 апреля 2017
Для моторов младше 5.86.76 - SMPAlarm
[править] Для моторов 5.86.76 и старше:
SNMP реализован на базе подсистемы PROXY, которая должна быть должным образом сконфигурирована и запущена.
Для работы SNMP необходим proxy-snmp.
[править] Действия:
Запросить все что есть.
- snmpwalk -c public -v 1 192.168.5.67 SMP-MTA-MIB:mta
Запросить таблицу с PCMами
- snmptable -c public -v 1 192.168.5.67 SMP-MTA-MIB:pcmTable
Получить состояние RRA в модуле 127 первом потоке
- snmpget -c public -v 1 192.168.5.67 SMP-MTA-MIB::pcmRRAPresent.127.1
[править] Структура:
Скачать библиотеку SMP-MTA-MIB
+--mta(10052)
|
+--station(1)
| |
| +--stationEntry(1)
| | |
| | +-- -R-- Integer32 numberModules(1)
| | | Textual Convention: ModuleIndex
| | | Range: 1..127
| | |
| | +--moduleTable(2)
| | |
| | +--moduleEntry(1)
| | | Index: moduleIndex
| | |
| | +-- -R-- Integer32 moduleIndex(1)
| | | Textual Convention: ModuleIndex
| | | Range: 1..127
| | +-- -R-- EnumVal moduleType(2)
| | | Values: none(0), MAL(1), MPA(2), MPB(3), MPC(4), C415(5), SS(6)
| | +-- -R-- Integer32 amountSLOT(3)
| | | Range: 1..20
| | +-- -R-- Integer32 amountPCM(4)
| | | Range: 1..256
| | +-- -R-- Integer32 amountAIR(5)
| | | Range: 1..128
| | +-- -R-- String name(6)
| | Textual Convention: DisplayString
| | Size: 0..255
| |
| +--slotTable(2)
| | |
| | +--slotEntry(1)
| | | Index: moduleIndex, slotIndex
| | |
| | +-- -R-- Integer32 moduleIndex(1)
| | | Textual Convention: ModuleIndex
| | | Range: 1..127
| | +-- -R-- Integer32 slotIndex(2)
| | | Range: 1..20
| | +-- -R-- EnumVal slotType(3)
| | | Values: none(0), a16(1), c88(2), c68(3), a84(4), i38(5), v38(6), a08(7), c48(8), c412(9), a8(10), c44(11), c16(12), c08(13)
| | +-- -R-- Integer32 slotPortNumbers(4)
| | Range: 1..16
| |
| +--pcmTable(3)
| | |
| | +--pcmEntry(1)
| | | Index: moduleIndex, pcmIndex
| | |
| | +-- -R-- Integer32 moduleIndex(1)
| | | Textual Convention: ModuleIndex
| | | Range: 1..127
| | +-- -R-- Integer32 pcmIndex(2)
| | | Range: 1..256
| | +-- -R-- EnumVal pcmType(3)
| | | Values: none(0), cas(1), dss1(2), v5an(3), v5le(4), v52an(5), v52le(6), sorm(7), mtp(8), permanent(9), int(10), ip(11), sorm-reserved(12), sorm-in(13), sorm-out(14), sorm-out-reserved(15), sorm-in-reserved(16)
| | +-- -R-- Integer32 pcmPortNumbers(4)
| | | Range: 1..31
| | +-- -R-- String pcmName(5)
| | | Textual Convention: DisplayString
| | | Size: 0..255
| | +-- -R-- EnumVal pcmStatus(6)
| | | Values: LINK-INT-OK(0), LINK-INT-ERROR(1), LINK-EXT-OK(2), LINK-EXT-ERROR(3), LINK-NONE(4), LINK-BLOCK(5), LINK-UNKNOWN(255)
| | +-- -R-- EnumVal pcmLOSPresent(7)
| | | Values: false(0), true(1), unknown(255)
| | +-- -R-- EnumVal pcmAISPresent(8)
| | | Values: false(0), true(1), unknown(255)
| | +-- -R-- EnumVal pcmRRAPresent(9)
| | Values: false(0), true(1), unknown(255)
| |
| +--airTable(4)
| | |
| | +--airEntry(1)
| | | Index: moduleIndex, airIndex
| | |
| | +-- -R-- Integer32 moduleIndex(1)
| | | Textual Convention: ModuleIndex
| | | Range: 1..127
| | +-- -R-- Integer32 airIndex(2)
| | | Range: 1..256
| | +-- -R-- EnumVal airType(3)
| | | Values: none(0), extv52(1), dss1subscriber(2), isdn(3), unified(4), ip(8), int-ip(11), agent(12), conf(13)
| | +-- -R-- Integer32 airPortNumbers(4)
| | Range: 1..999
| |
| +--portTable(5)
| | |
| | +--portEntry(1)
| | | Index: portType, portModuleIndex, portITEMIndex, portPORTIndex
| | |
| | +-- -R-- EnumVal portType(1)
| | | Values: slot(1), pcm(2), air(3)
| | +-- -R-- Integer32 portModuleIndex(2)
| | | Textual Convention: ModuleIndex
| | | Range: 1..127
| | +-- -R-- Integer32 portITEMIndex(3)
| | | Range: 1..999
| | +-- -R-- Integer32 portPORTIndex(4)
| | | Range: 1..999
| | +-- -R-- INTEGER portSigType(5)
| | +-- -R-- EnumVal portState(6)
| | | Values: free(0), preanswer(1), answer(2), release(3)
| | +-- -R-- String portCallingNumber(7)
| | | Textual Convention: DisplayString
| | | Size: 0..255
| | +-- -R-- String portCalledNumber(8)
| | | Textual Convention: DisplayString
| | | Size: 0..255
| | +-- -R-- String portNumberA(9)
| | | Textual Convention: DisplayString
| | | Size: 0..255
| | +-- -R-- String portNumberB(10)
| | Textual Convention: DisplayString
| | Size: 0..255
| |
| +--stationTraps(10)
| |
| +--stationTraps#(0)
| |
| +--portInfoTrap(1)
| |
| +--linkInfoTrap(2)
|
+-- -R-- EnumVal LOS(2)
| Values: false(0), true(1)
+-- -R-- EnumVal AIS(3)
| Values: false(0), true(1)
+-- -R-- EnumVal RRA(4)
| Values: false(0), true(1)
+-- -R-- EnumVal linkType(5)
Values: LINK-INT-OK(0), LINK-INT-ERROR(1), LINK-EXT-OK(2), LINK-EXT-ERROR(3), LINK-NONE(4), LINK-BLOCK(5)