Forum Discussion

Dave_Lee's avatar
Dave_Lee
Icon for Neophyte rankNeophyte
29 days ago

Using !snmpdiagnose

I've been having a play with the !snmpdiagnose command in collector debug.  I assume I should be providing the OID I want to query at the end of the command, like you would with the !snmpwalk command.

It seems to ignore whatever OID I put at the end though, and always tries to query .1.3.6.1.2.1.4.20.1.1.  I've tried it with and without the leading dot.  If I use !snmpwalk with the same OID, I get the results I'm expecting, so I know the OID is on the device.

What am I doing wrong here?

 

9 Replies

  • Fair enough... I guess that 1.3.6.1.2.1.4.20.1 is a pretty standard one and it's just that the Meraki SNMP service thing is a bit of a corner case in that it doesn't respond on it.

    Thanks for the clarification.  I'll make a note in our internal meraki doc.

  • There's not actually anything wrong with the Meraki SNMP connection I'm using - I'm just trying to write up some notes for troubleshooting / testing this for colleagues who might find themselves trying to solve these issues.

    It seems as though the documentation for !snmpdiagnose should be revised if it doesn't actually accept OID as an option, or will only query a given OID if it can first find the one it looks for by default.

    • Mike_Moniz's avatar
      Mike_Moniz
      Icon for Professor rankProfessor

      It does look like there is a "Step 2 : Detect special oid - <oid_provided>" which will check your provided oid, but as your not making it past Step 1, it looks to not be trying to use it.

  • Hi Eric

    That's what I thought but it doesn't seem to be working for me.  Despite providing an OID at the end of the command, it seems to still query a different (I assume a default) OID.

    Dave

    • Stuart_Weenig's avatar
      Stuart_Weenig
      Icon for Mastermind rankMastermind

      The standard use case for `!snmpDiagnose` is to just provide the hostname of the device you want to test. It'll pull the snmp creds from the device in LM and do some basic testing, along with pinging.

  • SNMP diagnose only requires the host name. It checks standard oids to make sure they are available and that SNMP is working. 

    Do

    help !snmpDiagnose

    • Dave_Lee's avatar
      Dave_Lee
      Icon for Neophyte rankNeophyte

      I guess the things I'm testing against (Cisco Meraki's cloud based SNMP service) doesn't respond to some of the standard OIDs it's checking for.

      help !snmpDiagnose seems to give me the same output as just doing !snmpdiagnose, which suggests I should be able to specific oids at the end of the command, like you do with snmp.

       

      • Stuart_Weenig's avatar
        Stuart_Weenig
        Icon for Mastermind rankMastermind

        That's about par for Meraki. Also make sure you don't have an IP restriction on Meraki and that it's using v3, which is required by Meraki.