Re: snmptrap v3 authentication

Niels Baggesen via Net-snmp-coders <[email protected]> Tue, 25 Apr 2023 16:30:31 +0200
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
Which trap receiver are you using? snmptrapd, or something else?

/Niels

Den 25-04-2023 kl. 15:10 skrev Simon Chamlian:
> 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 
> <[email protected]> wrote:
>
>     On Sat, 15 Apr 2023 at 11:12, Simon Chamlian
>     <[email protected]> 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
>     [email protected]
>     https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
>
>
> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

-- 
Niels Baggesen -- @home -- Århus -- Denmark [email protected]
    The purpose of computing is insight, not numbers  --  R W Hamming

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders