Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is the command which I have written:

c:/usr/bin> snmptrap -v 3 -l authPriv -u sam -a MD5 -A mysecretpass -x Des _x mypassphrase localhost . 3 0"

getting error as:

0: Missing type/value for variable

What is the solution? Something is missing in command line?

share|improve this question

The syntax for SNMPv3 is significantly different from SNMPv1 ... and unfortunately, many of the options that snmptrap expects are very sensitive to position on the command line. You're not the only one to be tripped up by this. :-)

You can try something more like the following:

snmptrap -v 3 -l authPriv -u sam -a MD5 -A mysecretpass -x des -X mypassphrase \ 69 coldStart . s trap

The option immediately following the OID is a type indicator (integer, unsigned, etc.), and "3" is not a valid specifier (see man snmptrap). I've chosen s for string here, but you'll need to adapt your command to use the appropriate type for your purposes.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.