Operating System - HP-UX
1827289 Members
3178 Online
109717 Solutions
New Discussion

capture snmp packets in HPUX

 
nivi_1
Advisor

capture snmp packets in HPUX

Hi,

I want to capture snmp packets in HPUX 11.31

When i give print, Printer will give its response thru' snmp.

i want to capture those packets using some command.

Is there some command in HP UX will help in capturing snmp packets.

Thanks in advance..


3 REPLIES 3
Avinash20
Honored Contributor

Re: capture snmp packets in HPUX

Please refer to the following post
Here it talks about the tools available.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1236754707435+28353475&threadId=1224661

Please dont forget to assign point.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Taifur
Respected Contributor

Re: capture snmp packets in HPUX

hi nivi

To get network traffic dumps using HP-UX see this document:

http://www.compute-aid.com/nettl.html

Alternatively, HP offers the common open-source tools "tcpdump" and "wireshark" for HP-UX 11.11 and above in the free Internet Express package. Go to http://software.hp.com and run a search for "Internet Express". Then select the Internet Express version that matches your HP-UX version.

Note that you won't need to install the entire Internet Express package set to get these tools: for example, tcpdump can be used by installing just two small packages: Libpcap and Tcpdump.

The basic syntax for grabbing the raw data to file using tcpdump:

tcpdump -i -s 0 -w host and tcp port

Example:
tcpdump -i lan0 -s 0 -w /tmp/file.dmp host somehost.example and tcp port 123

To analyze the dump, you could run:
tcpdump -vvv -X -s 0 -r


Rgds//
Taifur
B. Hulst
Trusted Contributor

Re: capture snmp packets in HPUX

Install tcpdump and capture the snmp traffic with it to file.