Difference between revisions of "Template:FAQ:Coding 22"
From Net-SNMP Wiki
(No difference)
|
Revision as of 11:39, 23 October 2006
It doesn't matter which API call you use to specify the
trap - 'send_easy_trap', 'send_v2trap'
or one of the other
calls mentioned above. Generating an SNMPv3 notification
(rather than a community-based one) is controlled by the
snmpd.conf
file.
To send an SNMPv3 trap, this file should contain a
'snmpsess'
directive, specifying the version, security
level, user name and passphrases (if applicable), as
well as the destination address. This is basically
the same as the command line required for sending the
trap manually, using 'snmptrap'
.
Note that (unlike 'snmptrap'
) this directive does not
read default settings from an 'snmp.conf'
file, so these
must be specified explicitly in the 'snmpsess'
line.