tcpdump on APA lan (436 Views)
Reply
Frequent Advisor
SAM_24
Posts: 172
Registered: ‎03-15-2002
Message 1 of 6 (436 Views)

tcpdump on APA lan

Hi,

How do I do capture on system where I run auto port aggregation? It says lan900 is invalid.

Thanks.
Never quit
Regular Advisor
Regular Advisor
VVS
Posts: 104
Registered: ‎02-08-2007
Message 2 of 6 (436 Views)

Re: tcpdump on APA lan

First, run "tcpdump -D" to identify the index numbers of your interfaces.

Then use the below commands,

tcpdump -lni

Thanks,
VVS
Work is life, you know, and without it, there's nothing but fear and insecurity.
Frequent Advisor
SAM_24
Posts: 172
Registered: ‎03-15-2002
Message 3 of 6 (436 Views)

Re: tcpdump on APA lan

tcpdump -D didn't produce any result.

We're only running APA configured interfaces.

# lanscan -q
0
1
900 2 4
901 3 5
902
903
904
Never quit
Regular Advisor
Abid Iqbal
Posts: 97
Registered: ‎04-02-2009
Message 4 of 6 (436 Views)

Re: tcpdump on APA lan

Hi,
Output required.
lanscan
netstat -rn
swlist | grep -i auto-port
Go to sam > networking.. > auto port...
and there you find the lan900 status.
Occasional Visitor
hpuser72
Posts: 1
Registered: ‎06-12-2012
Message 5 of 6 (404 Views)

Re: tcpdump on APA lan

Hi all,

I have the same problem.

 

The configured aggregation on host  is lan900 with lan0 and lan3:

#lanscan -q

900        0 3

 

But when I execute tcpdump command, I have not output of lan description:

#tcpdump -D

<no output>

 

And "lni" tcpdump option, give invalid index:

#tcpdump -lni 900
tcpdump: Invalid adapter index

 

Any suggestions?

Thank you in advance.

 

Fabio.

Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 6 of 6 (393 Views)

Re: tcpdump on APA lan

On my system, "man tcpdump" includes this note for the -D option:

The -D flag will not be supported if tcpdump was built with an
older version of libpcap that lacks the pcap_findalldevs() function.

 

So, what are your versions of tcpdump and libpcap?

(If you run tcpdump with invalid options, the usage message will include both tcpdump and libpcap version numbers.)


Example:

# tcpdump -V
tcpdump version 4.1.1
libpcap version 1.1.1
Usage: tcpdump [-aAbdDefIKlLnNOpqRStuUvxX] [ -B size ] [ -c count ]
                [ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G seconds ]
                [ -i interface ] [ -M secret ] [ -r file ]
                [ -s snaplen ] [ -T type ] [ -w file ] [ -W filecount ]
                [ -y datalinktype ] [ -z command ] [ -Z user ]
                [ expression ]

 

Index numbers are acceptable as an argument for the -i option only if the option -D is supported. If -D is not supported in your current version, you should be using the full interface name, not just the number, e.g. "tcpdump -lni lan900".

MK
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.