This post is more than 5 years old
2 Intern
•
157 Posts
1
7897
May 17th, 2016 14:00
isi_netlogger syntax
I've looked through the CLI guide for 7.2 and cannot find this command listed at all. There is no man page either. When I run this on our NL400 it doesn't capture anything in or out of the 10gig interfaces, only the management ports. Is this expected?
What I am trying to do is just capture traffic out of all 3 nodes on the 10gige-1 interfaces, not all the others. There is no LACP in play.
I tried using the isi_for_array with tcpdump on them but it complained about invalid interface names yet I could run tcpdump against a single if with the same syntax. Makes no sense to me.
thanks
No Events found!



Yan_Faubert
117 Posts
0
May 17th, 2016 14:00
Check this KB.
OneFS: How to gather Isilon cluster diagnostics using the isi_netlogger command
https://support.emc.com/kb/304448
addisdaddy20
65 Posts
2
May 17th, 2016 15:00
Hey Downhill,
I realize this is not exactly what your asking for as you mention only wanting 10gige interfaces and the following command captures for all interfaces but it will name the pcaps appropriately for the interface that it captures on and it will do it for the array by hostname and interface name you can always delete the unneeded interfaces or modify as needed.
1. mkdir -p /ifs/data/Isilon_Support/$(date +%m%d%Y)
2. isi_for_array 'for i in `ifconfig | grep -B2 ether | grep flags | cut -d: -f1`; do tcpdump -i ${i} -s0 -w /ifs/data/Isilon_Support/$(date +%m%d%Y)/`hostname`.${i}_$(date +%m%d%Y_%H%M%S).pcap &; done'
I hope that helps,
D_Tracy
downhill2
2 Intern
•
157 Posts
0
May 19th, 2016 07:00
thanks guys, that was exactly what I was looking for. I didn't realize the names of these interfaces is different in the UI than physically seen with ifconfig, plus my searching the knowledge base for that command kept turning up nothing. Got my captures now though.
dynamox
9 Legend
•
20.4K Posts
0
May 19th, 2016 13:00
thank you D_Tracy, have you tried isi_netlogger with vlanX interfaces (VLAN tagged interfaces, not physical)
dynamox
9 Legend
•
20.4K Posts
0
May 19th, 2016 13:00
Yan,
can isi_netlogger take -w parameter and if so, if you need to capture from vlanX interface on multiple nodes what syntax would i use ? Where would the pcap file reside ..on each node ?
Thank you
addisdaddy20
65 Posts
0
May 19th, 2016 13:00
Once isi_netlogger is stopped any way you ran it, it will bundle all the pcaps up and delete the folders it created and the .pid file. You will find the bundle in /ifs/netlog/bundled (note, if netlogger created a lot of files and/or the files are very large, this process may take some time)
it will look like the following:
ls -l /ifs/netlog/bundled
total 102
-rw-r--r-- 1 root wheel 686 Aug 22 23:52 netlog-2013-08-22_23.52.02.tar.bz2
-rw-rw-rw- 1 root wheel 542 Sep 20 16:01 netlog-2013-09-20_16.01.54.tar.bz2
Yan_Faubert
117 Posts
1
May 19th, 2016 13:00
No need to specify '-w' when using isi_netlogger, that is done by default.
To capture on vlan interface you would use isi_netlogger -i vlan1 for example. This will simply pass the command to 'tcpdump -i '
Example:
If you look at output from 'ps' on a given node you will see how the '-w' switch is used:
And when you ctrl-c from the terminal where you launched isi_netlogger it will bundle the individual capture files as mentioned by D_Tracy.
Notice in the output below that I have 2 files per node since by default it captures for 10 minutes before rotating the file and it will keep 3 files per node (by default). This can be adjusted with the -t (how many minutes before rotating) and -k (how many files to keep) flags.
dynamox
9 Legend
•
20.4K Posts
0
May 19th, 2016 14:00
excellent, thank you Yan
downhill2
2 Intern
•
157 Posts
0
May 31st, 2016 10:00
Yeah, thanks again Yan. Netlogger is slick for capturing things.
dynamox
9 Legend
•
20.4K Posts
0
June 15th, 2016 13:00
Yan,
i tried to use isi_netlogger with vlan interface and getting this. Interface is up and running, serving connections:
cluster-1# isi_netlogger -c -i vlan6 -p
Netlogger keeping 3 logs of 10 minutes each...
On Node cluster-1, Interface vlan6 is either unusable or down or inactive
ifconfig
vlan6: flags=8843 metric 0 mtu 1500
options=103
ether 00:07:43:0a:74:3f
inet 10.224.14.130 netmask 0xffffff00 broadcast 10.224.14.255 zone 1
inet 10.224.14.160 netmask 0xffffff00 broadcast 10.224.14.255 zone 2
Yan_Faubert
117 Posts
0
June 15th, 2016 14:00
Is this error thrown for every node or just for node 1?
dynamox
9 Legend
•
20.4K Posts
0
June 15th, 2016 22:00
i just get the error that i pasted, i looked on other nodes and tcpdump is not running.
Yan_Faubert
117 Posts
0
June 16th, 2016 03:00
You have to use the following workaround, found an internal bug around this. So change your isi_netlogger syntax to this:
isi_netlogger -c -p -a -- -i vlan6
Unfortunately you can't specify any additional filters with the -- construct when you use this workaround; the above will result in the following tcpdump command:
/usr/sbin/tcpdump -U -a -i vlan6
dynamox
9 Legend
•
20.4K Posts
0
June 16th, 2016 04:00
thank you Yan, this makes is very crippled as i need to be able to filter on specific host or specific protocol. Do you know when this bug will be addressed ?
dynamox
9 Legend
•
20.4K Posts
0
June 16th, 2016 05:00
Thank you