Hello Pramod,
the basic commands are
set snmp community read-only
set snmp community read-write
you can use
set snmp trap enable all| or single categories
set snmp trap ip-address
to specify the server that has to receive the traps
Hope to help
Giuseppe