0

How could I send a net-snmp GET request, such that:

netsnmp_check_vb_type

will return SNMP_ERR_WRONGTYPE?

Andrei
  • 1,862
  • 4
  • 15
  • 15

2 Answers2

2

You'd need to modify the agent you were talking to so that it would send back that error code for a GET. No agent out there should be doing that for a GET request unless there was a bug in the agent. In other words: you'd have to put a bug in the agent!

Wes Hardaker
  • 21,735
  • 2
  • 38
  • 69
0

I think that's impossible, as wrong type check should only work for SET requests.

Lex Li
  • 60,503
  • 9
  • 116
  • 147