#!/bin/sh
#
# SNMPv3 USM config for snmpd
#

## common SNMPv3 USM config
. ./Sv3usmconfigbase

## standard config
CONFIGAGENT [snmp] persistentdir $SNMP_TMP_PERSISTENTDIR
[ "x$SNMP_SMUX_SOCKET" = "x" ] && SNMP_SMUX_SOCKET=1.0.0.0
CONFIGAGENT smuxsocket $SNMP_SMUX_SOCKET
[ "x$CREATEAUTHUSER" != "x" ] && CONFIGAGENT $CREATEAUTHUSER
[ "x$CREATEAUTHUSER2" != "x" ] && CONFIGAGENT $CREATEAUTHUSER2
[ "x$CREATEPRIVUSER" != "x" ] && CONFIGAGENT $CREATEPRIVUSER
[ "x$CREATEPRIVUSER2" != "x" ] && CONFIGAGENT $CREATEPRIVUSER2
CONFIGAGENT rwuser $TESTAUTHUSER auth
CONFIGAGENT rwuser $TESTPRIVUSER priv

CONFIGAGENT_ENGINEID() {
  AGENT_ENGINEID=0x80001f88801ff4905ea7804943
  CONFIGAGENT oldEngineID $AGENT_ENGINEID
}
