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

tcpdump on APA lan


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

Never quit
Regular Advisor
Regular Advisor
Posts: 104
Registered: ‎02-08-2007
Message 2 of 6 (578 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

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

Re: tcpdump on APA lan

tcpdump -D didn't produce any result.

We're only running APA configured interfaces.

# lanscan -q
900 2 4
901 3 5
Never quit
Regular Advisor
Posts: 97
Registered: ‎04-02-2009
Message 4 of 6 (578 Views)

Re: tcpdump on APA lan

Output required.
netstat -rn
swlist | grep -i auto-port
Go to sam > networking.. > auto port...
and there you find the lan900 status.
Occasional Visitor
Posts: 1
Registered: ‎06-12-2012
Message 5 of 6 (546 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.



Honored Contributor
Posts: 6,271
Registered: ‎12-02-2001
Message 6 of 6 (535 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.)


# 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".

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.