1

I need to do a device discovery which is working fine for version 1,2 because the community name by default "public" help me on this, but for the version 3 the credentials are required, do ou know any tool o method to know that ?

RobDev
  • 45
  • 1
  • 9
  • possible duplicate of [SNMPv3 Discovery](http://stackoverflow.com/questions/14523445/snmpv3-discovery) – Jolta Dec 25 '14 at 20:01

2 Answers2

1

As described in https://www.rfc-editor.org/rfc/rfc3414#section-4 you can send an empty v3 pdu. If the device supports v3 protocol it will respond (a report message) with it's snmpEngineID.

'This may be accomplished by generating a Request message with a securityLevel of noAuthNoPriv, a msgUserName of zero-length, a msgAuthoritativeEngineID value of zero length, and the varBindList left empty.'

Community
  • 1
  • 1
Dominik Pawlak
  • 1,350
  • 9
  • 10
0

@DominikPawlak already shows the RFC compliant approach. If you want some code sample, #SNMP has a sample called snmpdiscover,

http://sharpsnmplib.codeplex.com/wikipage?title=SNMP%20Device%20Discovery&referringTitle=Documentation

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