On Thu, Jun 27, 2013 at 8:38 AM, Gaurang Shastri <gmshastri@gmail.com> wrote:
Hi,

You need to do something like below:

pkg_postinst() {

net-snmp-config --create-snmpv3-user -a "my_password" myuser
}

try with above and it should work :)

note it should be 

pkg_postinst_PACKAGENAME(), so in most cases: pkg_postinst_${PN}()

also, see:

http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#post-installation-scripts
http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#usingpoky-extend-addpkg-postinstalls