Syntax:
Use this command to configure SNMP traps. You can add, modify, or delete a trap.
where
-if: destination fqdn or IP address
--old_ipaddrfqdn: previous destination fqdn or IP address (Only valid with Change
option or required when changing the destination for an entry.)
-v: SNMP version (1, 2, 3)
--inform: inform entry (v2 & v3 only)
--trap: trap entry
-i: destination IP address
--old_type: previous entry type (inform / trap) (only valid with the 'change' option, required when changing the user/community name)
--port: port Number (default is 162)
-c: v1/v2c Community name
-o: previous community/user name (only valid with the 'change' option, required when changing the user/community name.)
--add: Add trap
--delete: Delete trap
--change: Modify trap
For SNMP v3:
snmptrapconfig -v 3 --inform|--trap --if <ipaddr or fqdn> [--old_ipaddrfqdn <ipaddr or fqdn>] [-i<ipaddr or fqdn>[--old_ipaddrfqdn <ipaddr or fqdn>] -u <user> [-o <user>] [-s authNoPriv|authPriv] [-a <auth_passwd] [--auth_prot <protocol>][-p <priv_passwd>] [-p --priv_prot <protocol>] --add | --delete | --change
snmptrapconfig --help | -h
where
-v: SNMP version (1, 2, 3)
--trap: trap entry
-i: destination IP address
--old_ipaddr: previous destination IP address
-u: v3 user name
-o: Previous community/user name (only valid with the 'change' option, required when changing the user/community name).
-s: v3 security model (authNoPriv, authPriv)
-a: v3 authentication password
--auth_prot: v3 authentication protocol (MD5, SHA)
-p: v3 privacy password
--priv_prot: v3 privacy protocol
-e: Engine ID (used with --if option)
--add: add entry
--delete: delete entry
--change: change entry
--auth_list: list supported authentication protocols
--priv_list: list supported privacy protocols
--rclist: list possible return codes from this command
--rccode: obtain error string associated with a return code
--help | -h: usage (this)