Operating System - HP-UX
1825010 Members
3472 Online
109678 Solutions
New Discussion юеВ

Trace of traffic of network

 
SOLVED
Go to solution
Marcelo De Florio
Frequent Advisor

Trace of traffic of network


I need a trace of network, how can I enable this feature in HP-UX 11.0 ?

Thanks

10 REPLIES 10
Berlene Herren
Honored Contributor

Re: Trace of traffic of network

You can download TCPDUMP, or use the built in tracing for HP-UX. For nettl tracing, I attached a document that may help. For TCPDump, you can download that from

http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/tcpdump-3.6.2/

Regards,
Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Steven Sim Kok Leong
Honored Contributor

Re: Trace of traffic of network

Hi,

nettladm is HP-UX's proprietary network tracing and logging administration manager. man nettladm for further information.

Alternatively, use the third-party tcpdump for network tracing.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Ian_4
Honored Contributor

Re: Trace of traffic of network

/usr/sbin/nettl ?start see man nettl
Marcelo De Florio
Frequent Advisor

Re: Trace of traffic of network

After execute nettl -start, How can I view the log of package at network ?
Berlene Herren
Honored Contributor

Re: Trace of traffic of network

If you are just using the nettl start, the file written to is /var/adm/nettl.LOG00.

This is a binary file, so you have to do a net format on it first.

#netfmt -f /var/adm/nettl.LOG00 > /tmp/log.out.

Then you can cat, view, vi or more the /tmp/log.out.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Stefan Schulz
Honored Contributor

Re: Trace of traffic of network

A real goot tool is ethereal which comes with a nice GUI and a lot of options. You can get it at the same site as the tcpdump tool. (See Berlene's post)

CU

Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Marcelo De Florio
Frequent Advisor

Re: Trace of traffic of network

What can I execute to trace of traffic, from server to client ?


Berlene Herren
Honored Contributor

Re: Trace of traffic of network

Looks like my document didn't attach, let me try again,

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Marcelo De Florio_1
Frequent Advisor

Re: Trace of traffic of network

I execute :
nettl -tn pduin pduout -e ns_ls_ip -f /tmp/net.log


nettl : The tracing and logging facility has not yet been started
To start the facility, execute the following command:
/usr/sbin/nettl -start
If the problem persists, contact HP representative with the
following information:
Shared memory tables removed.
(shmget, errno 2: No such file or directory).

Why appear this message ?

Thanks
Marcelo De Florio
Berlene Herren
Honored Contributor
Solution

Re: Trace of traffic of network

Make sure that NETTL=1 in /etc/rc.config.d/nettl

then run

/sbin/init.d/nettl start

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm