I tried the command:

snmptrap -v 3 -u  Simon  -a MD5 -A  SimonPass -l authNoPriv 172.27.37.227
"" coldStart.0

(with  security name  : Simon and   authentication password  : SimonPass ).

These parameters are not set in any config files anywhere.

On another PC with IP 172.27.37.227, I have a MIB browser and trap
receiver. The trap receiver is receiving the trap even when it is not
configured with the  security name  : Simon and   authentication password
: SimonPass .

I was not expecting to receive the trap until I configured the trap
receiver with the same security name and authentication password!?!

Simon




On Tue, Apr 25, 2023 at 3:17 AM Craig Small via Net-snmp-coders <
net-snmp-coders@lists.sourceforge.net> wrote:

> On Sat, 15 Apr 2023 at 11:12, Simon Chamlian <simon.chaml...@mpbc.ca>
> wrote:
>
>>
>> snmptrap -v 3 -u  Simon  -a MD5 -A  SimonPass -l authNoPriv 172.27.37.227
>> "" coldStart.0
>>
>> I do receive the trap on my Trap Receiver even if I didn't specify a
>> Username and Authentication password in the MIB browser (on 172.27.37.227 )
>> !
>>
> Do you mean the security name instead of the username?
> The -u sets the security name, -A sets the authentication password.
> They're set in the example you gave.
>
> Or are you saying that you tried that command without the username and
> authentication password?
> If so, are you sure that you don't have those parameters set in an snmp
> configuration file?
>
> Trying the command with -Dread_config:line may help here.
>
> I tried snmptrap 5.9.3 with no -u and -A flags and with/without a
> configuration file and it only worked with the configuration file.
>
>  - Craig
>
> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to