Forgot to do reply all..

-----Original Message-----
From: M, Somashekhar (Somashekhar)
Sent: Wednesday, April 18, 2007 3:15 PM
To: 'Dave Shield'
Subject: RE: Net-snmp-users Digest, Vol 11, Issue 25

I am getting the engine Id as follows from the machine.

function getEngineID()
{
SNMPD_CONF=/root/net-snmp/snmpd.conf
if [ ! -f $SNMPD_CONF ]
then
echo "ERROR:: $SNMPD_CONF file does not exists"
return 1
fi

engineID=$($ECHO `$GREP -i usmUser $SNMPD_CONF` | $CUT -f 4 -d ' ') >>
/dev/null
$ECHO $engineID
}

The engine id got from this passed to snmptrap command.

Snmptrapd is stopped using "killall snmptrapd" or "kill -HUP snmptrapd"
to re-read the configuration file.

Is there any issue here.

Regards,
Som
-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On
Behalf Of Dave Shield
Sent: Wednesday, April 18, 2007 2:57 PM
To: M, Somashekhar (Somashekhar)
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Net-snmp-users Digest, Vol 11, Issue 25

On 18/04/07, M, Somashekhar (Somashekhar)
wrote:
> /root/net-snmp/bin/snmptrap -e -u MyUser -A MyPassword -a
> MD5 -x DES -X NewPassword -l authpriv > running>:162 ''
>
> This is the command being used.


No - what is the *exact* command?
In particular, what are you using for 'engineId' ?



> Snmptrapd.conf is as follows:
>
> #
> # net-snmp (or ucd-snmp) persistent data file.


This is the file /var/net-snmp/snmptrapd.conf - yes?



> # Only "createUser" tokens should be placed here by snmptrapd

administrators.
> engineBoots 3
> oldEngineID 0x80001f880187fefd5b


If this is the only config that you've got, then no - SNMPv3 traps won't
work.
You need to tell it about the SNMPv3 user(s).

> I also tried to add the user using createUser as mentioned as a
> comment in the file.


That's right.
See the tutorial at
http://www.net-snmp.org/wiki/index.p...nmptrap_SNMPv3
for details.


> When we add a v 3 user using createUser and restart the snmptrapd the
> line automatically gets deleted.


The line should be deleted, and replaced by an equivalent 'usmUser'
line.
How exactly are you restarting the trap daemon?
In particular, what is the command used to stop it?


Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users