Using the SNMP Utilities
4.2 Using the Trap Sender and Trap Receiver Programs
account that has SYSPRV privilege. Note that the port number must be greater
than zero.
4.2.2.3 Trap Receiver Examples
1.
The following example requests trap information on a system that does not
have traps configured and does not have SYSPRV privilege or sufficient
privilege.
$ snmp_traprcv
No snmp-trap service entry, using default port 162.
bind - : permission denied
2.
The example, supplied from a nonprivileged account, requests trap
information in hexadecimal dump format on port 1026.
$ snmp_traprcv -d -p 1026
Message received from 127.0.0.1
3082002A 02010004 06707562 6C6963A4
0..*.....public.
1D060547 81AD4D01 40040000 00000201
...G..M.@.......
00020100 4304032D AED23082 0000
....C..-..0...
SNMPv1-Trap-PDU:
community -
7075626C 6963
public
enterprise - 0.0
agent address - 0.0.0.0
trap type - Cold Start (0)
timeticks - 53325522
Using the SNMP Utilities 4–13