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

SNR-S2970G-48S snmp dot1qTpFdbPort

Подскажите как можно снять таблицу соответствия mac -> port.

Не может walk считать next oid.

 

# snmpwalk -v2c -On -c test 192.168.100.2 .1.3.6.1.2.1.17.7.1.2.2.1.2
.1.3.6.1.2.1.17.7.1.2.2.1.2.1.0.12.66.198.228.88 = INTEGER: 1
.1.3.6.1.2.1.17.7.1.2.2.1.2.1.0.12.66.198.228.54 = INTEGER: 1
Error: OID not increasing: .1.3.6.1.2.1.17.7.1.2.2.1.2.1.0.12.66.198.228.88
>= .1.3.6.1.2.1.17.7.1.2.2.1.2.1.0.12.66.198.228.54

Share this post


Link to post
Share on other sites

Подскажите как можно снять таблицу соответствия mac -> port.

Не может walk считать next oid.

 

# snmpwalk -v2c -On -c test 192.168.100.2 .1.3.6.1.2.1.17.7.1.2.2.1.2
.1.3.6.1.2.1.17.7.1.2.2.1.2.1.0.12.66.198.228.88 = INTEGER: 1
.1.3.6.1.2.1.17.7.1.2.2.1.2.1.0.12.66.198.228.54 = INTEGER: 1
Error: OID not increasing: .1.3.6.1.2.1.17.7.1.2.2.1.2.1.0.12.66.198.228.88
>= .1.3.6.1.2.1.17.7.1.2.2.1.2.1.0.12.66.198.228.54

 

From the snmpwalk man page:

 

-Cc Do not check whether the returned OIDs are increasing. Some agents (LaserJets are an example) return OIDs out of order, but can complete the walk anyway. Other agents return OIDs that are out of order and can cause snmpwalk to loop indefinitely. By default, snmpwalk tries to detect this behavior and warns you when it hits an agent acting illegally. Use -Cc to turn off this behaviour.

 

Некоторые прекрасные прошивки могут бесконечно отдавать данные если не контролировать уникальность полученых OID.

Share this post


Link to post
Share on other sites

 

-Cc Do not check whether the returned OIDs are increasing. Some agents (LaserJets are an example) return OIDs out of order, but can complete the walk anyway. Other agents return OIDs that are out of order and can cause snmpwalk to loop indefinitely. By default, snmpwalk tries to detect this behavior and warns you when it hits an agent acting illegally. Use -Cc to turn off this behaviour.

 

 

Спасибо, такой вариант вполне работает

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.