oid smp to check the status of the modem | docsis.org

You are here

oid smp to check the status of the modem

3 posts / 0 new
Last post
deividfiguer
oid smp to check the status of the modem

Hi

I have a software developed in php

I have a novelty now that I am testing with ubee modem, after I restart the modem I can no see the levels to review by snmp because I have no response with the oid 1.3.6.1.2.1.4.1.0

this is the code:

$res = @snmpget ($ipcm, 'public', '.1.3.6.1.2.1.4.1.0',500000,1);
if($res)
{
snmp_set_valueretrieval(SNMP_VALUE_PLAIN);
$nivel_dow = @snmpget($ipcm, 'public', '1.3.6.1.2.1.10.127.1.1.1.1.6.3',1000000,1);
$nivel_up = @snmpget($ipcm, 'public', '1.3.6.1.2.1.10.127.1.2.2.1.3.2',1000000,1);
$snr = @snmpget($ipcm, 'public', '1.3.6.1.2.1.10.127.1.1.4.1.5.3',1000000,1);

testing by console with snmpwalk this is the error message:

snmpwalk -v 2c -c public 10.1.176.233.1.3.6.1.2.1.4.2.0
Error in packet.
Reason: (genError) A general failure occurred
Failed object: iso.3.6.1.2.1.4.2.0

testing with other oid if the same ubee modem responds:

snmpwalk -v 2c -c public 10.1.176.233 1.3.6.1.2.1.10.127.1.2.2.1.3.2
iso.3.6.1.2.1.10.127.1.2.2.1.3.2 = INTEGER: 465

with other models of cable modem it worked without problems

With what other oid can I replace this: ".1.3.6.1.2.1.4.1.0" to initially identify that the modem is online to be able to consult the rest of the oid

please help me with this

kwesibrunee
1.3.6.1.2.1.4.1.0 is part of

1.3.6.1.2.1.4.1.0 is part of the IP-MIB, and likely the UBEE modem does not support this mib...

Name: ipForwarding
Type: OBJECT-TYPE
OID: 1.3.6.1.2.1.4.1
Full path: iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).ip(4).ipForwarding(1)
Module: IP-MIB

Parent: ip
Next sibling: ipDefaultTTL

Numerical syntax: Integer (32 bit)
Base syntax: INTEGER
Composed syntax: INTEGER
Status: current
Max access: read-write [rw-]
Value list: 1: forwarding(1)
2: notForwarding(2)

Description: The indication of whether this entity is acting as an IPv4
router in respect to the forwarding of datagrams received
by, but not addressed to, this entity. IPv4 routers forward
datagrams. IPv4 hosts do not (except those source-routed
via the host).

When this object is written, the entity should save the
change to non-volatile storage and restore the object from
non-volatile storage upon re-initialization of the system.
Note: a stronger requirement is not used because this object
was previously defined.

I would either use something from SNMPv2-MIB like sysdescr 1.3.6.1.2.1.1.1.0 or something from the cable labs mibs like docsIf3CmStatusValue 1.3.6.1.4.1.4491.2.1.20.1.1.1.1.ifIndex (assuming Docsis 3+ replace with Docsis 1.x version if you don't have all D3.0+ it is docsIfCmStatusValue 1.3.6.1.2.1.10.127.1.2.2.1.1.ifIndex same ifIndex as the D3.0 one), note though that docsIf3CmStatusValue is from a table, so you will need to know the ifIndex to get the value or do a walk of the value.

Here is sysdescr

Name: docsIf3CmStatusValue
Type: OBJECT-TYPE
OID: 1.3.6.1.4.1.4491.2.1.20.1.1.1.1
Full path: iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).cableLabs(4491).clabProject(2).clabProjDocsis(1).docsIf3Mib(20).docsIf3MibObjects(1).docsIf3CmStatusTable(1).docsIf3CmStatusEntry(1).docsIf3CmStatusValue(1)
Module: DOCS-IF3-MIB

Parent: docsIf3CmStatusEntry
Next sibling: docsIf3CmStatusCode

Numerical syntax: Integer (32 bit)
Base syntax: INTEGER
Composed syntax: CmRegState
Status: current
Max access: read-only [r--]
Value list (TC): 1: other(1)
2: notReady(2)
3: notSynchronized(3)
4: phySynchronized(4)
5: dsTopologyResolutionInProgress(21)
6: usParametersAcquired(5)
7: rangingInProgress(22)
8: rangingComplete(6)
9: eaeInProgress(14)
10: dhcpv4InProgress(15)
11: dhcpv6InProgress(16)
12: dhcpv4Complete(7)
13: dhcpv6Complete(17)
14: todEstablished(8)
15: securityEstablished(9)
16: configFileDownloadComplete(10)
17: registrationInProgress(18)
18: registrationComplete(11)
19: accessDenied(13)
20: operational(12)
21: bpiInit(19)
22: forwardingDisabled(20)
23: rfMuteAll(23)

Reference: DOCSIS 3.0 MAC and Upper Layer Protocols Interface
Specification CM-SP-MULPIv3.0-I08-080522, Establishing
IP Connectivity section.

Description: This attribute denotes the current CM connectivity
state. For the case of IP acquisition related states,
this attribute reflects states for the current CM
provisioning mode, not the other DHCP process associated
with dual stack operation.

here is the info for docsIf3CmStatusValue
Name: docsIf3CmStatusValue
Type: OBJECT-TYPE
OID: 1.3.6.1.4.1.4491.2.1.20.1.1.1.1
Full path: iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).cableLabs(4491).clabProject(2).clabProjDocsis(1).docsIf3Mib(20).docsIf3MibObjects(1).docsIf3CmStatusTable(1).docsIf3CmStatusEntry(1).docsIf3CmStatusValue(1)
Module: DOCS-IF3-MIB

Parent: docsIf3CmStatusEntry
Next sibling: docsIf3CmStatusCode

Numerical syntax: Integer (32 bit)
Base syntax: INTEGER
Composed syntax: CmRegState
Status: current
Max access: read-only [r--]
Value list (TC): 1: other(1)
2: notReady(2)
3: notSynchronized(3)
4: phySynchronized(4)
5: dsTopologyResolutionInProgress(21)
6: usParametersAcquired(5)
7: rangingInProgress(22)
8: rangingComplete(6)
9: eaeInProgress(14)
10: dhcpv4InProgress(15)
11: dhcpv6InProgress(16)
12: dhcpv4Complete(7)
13: dhcpv6Complete(17)
14: todEstablished(8)
15: securityEstablished(9)
16: configFileDownloadComplete(10)
17: registrationInProgress(18)
18: registrationComplete(11)
19: accessDenied(13)
20: operational(12)
21: bpiInit(19)
22: forwardingDisabled(20)
23: rfMuteAll(23)

Reference: DOCSIS 3.0 MAC and Upper Layer Protocols Interface
Specification CM-SP-MULPIv3.0-I08-080522, Establishing
IP Connectivity section.

Description: This attribute denotes the current CM connectivity
state. For the case of IP acquisition related states,
this attribute reflects states for the current CM
provisioning mode, not the other DHCP process associated
with dual stack operation.

deividfiguer
SNMP Cable Modem

Hi kwesibrunee

Thank you very much for your help and for sharing your great knowledge.

I am very grateful for your valuable help

Use this oid: "1.3.6.1.2.1.1.1.0 " and it worked fine.

Attached screenshot of the interface where you can see the levels of the Modem cable querying by SNMP

best regards

File attachments: 
Log in or register to post comments