Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Use Cisco SNMP ping mib

Hello, I am trying to use the mib on this page:

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094e8e.shtml

This is the line I am having issues with:

snmpset -c public Router_Source .1.3.6.1.4.1.9.9.16.1.1.1.3.333 octetstringhex “AB 44 76 67”

I can, using a linux server, get to the last part of the command, where I enter my remote ip in hex that I want to ping, but it will not go any further.

Here is what I get:

snmpset -c communitystring routerip .1.3.6.1.4.1.9.9.16.1.1.1.3.333 octetstringhex "AC 18 00 02"

.1.3.6.1.4.1.9.9.16.1.1.1.3.333: Unknown Object Identifier (Sub-id not found: (top) -> AC 18 00 02)

I tried without the quotes and get this error:

snmpset -c communitystring routerip .1.3.6.1.4.1.9.9.16.1.1.1.3.333 octetstringhex AC 18 00 02

18: Bad object type: 0

I have tried with quotes, without quotes, spaces and no spaces. Can someone point out what I'm missing? Thanks.

I removed the community and router ip obviously. Those are present in the command when I try running it.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Use Cisco SNMP ping mib

No. net-snmp defaults to SNMPv3. Try:

snmpset -v 1 -c communitystring routerip .1.3.6.1.4.1.9.9.16.1.1.1.3.333 x "AC 18 00 02"

6 REPLIES
Cisco Employee

Re: Use Cisco SNMP ping mib

I assume you're using net-snmp. If so, the command is:

snmpset -c communitystring routerip .1.3.6.1.4.1.9.9.16.1.1.1.3.333 x "AC 18 00 02"

New Member

Re: Use Cisco SNMP ping mib

I now get this message using that:

snmpset -c communitystring routerip .1.3.6.1.4.1.9.9.16.1.1.1.3.333 x "AC 18 00 02"

snmpset: No securityName specified

I'm guessing that there is an additional setting in the router I need at this point?

Cisco Employee

Re: Use Cisco SNMP ping mib

No. net-snmp defaults to SNMPv3. Try:

snmpset -v 1 -c communitystring routerip .1.3.6.1.4.1.9.9.16.1.1.1.3.333 x "AC 18 00 02"

New Member

Re: Use Cisco SNMP ping mib

v 1 failed, but v 2c gets me this, which looks to be right? (Sorry not sure if this is the response I'm needing or if I should get another.)

snmpset -v2c -c communitystring routerip .1.3.6.1.4.1.9.9.16.1.1.1.3.333 x "AC 18 00 02"

SNMPv2-SMI::enterprises.9.9.16.1.1.1.3.333 = Hex-STRING: AC 18 00 02

Cisco Employee

Re: Use Cisco SNMP ping mib

Yep, this is what you should see. The set operation worked.

New Member

Re: Use Cisco SNMP ping mib

thanks. :)

2483
Views
0
Helpful
6
Replies