For test purpose, i'm trying to use the snmptrap command to produce a .18.104.22.168.22.214.171.124.2.0.1 trap (printer alert trap).
I'm not in my two feet with the syntax of the snmptrap command, so can someone explain me how to correctly use this command, specially for this trap if it's possible ?
The syntax is pretty simple:
snmptrap -c public -v 2c 127.0.0.1 "" 126.96.36.199.188.8.131.52.2.0.1
The problem here is that this particular trap should be sent with 6 varbinds:
Thus you'll also have to provide values for all these varbinds. So the Trap Receiver will be able to handle this type of trap properly.
I'd suggest using tools like NetDecision Trap Simulator which automatically configures traps to send based on MIB definitions.