Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

TCPDUMP in RT Linux on cRIO

Hi, 

 

It seems that TCPDUMP is not included in the Linux installation. Is there away to install this application so that we can sniff an ethernet interface?

 

BR

Jonas

0 Kudos
Message 1 of 13
(2,109 Views)

You can use Raw Ethernet Frame Decode and Encode Example. Follow the instructions in the readme to install the library for Linux RT.

Alternatively, you install the package from NI feed. See Solved: Wireshark and libpcap

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 13
(2,081 Views)

TCPDUMP is available through the OPKG package manager:

 

>> opkg install tcpdump

0 Kudos
Message 3 of 13
(2,055 Views)

Hi, 

 

Seems like tcpdump is not part of the installation:

 

admin@EBS9-1:~# opkg install tcpdump
Collected errors:
* opkg_prepare_url_for_install: Couldn't find anything to satisfy 'tcpdump'.
admin@EBS9-1:~#

 

The linux machine doesn't have internet access.

0 Kudos
Message 4 of 13
(1,983 Views)

Hi,

 

It's possible to download the needed packages for TCPDUMP on your desktop PC, copy it to the cRIO and then install it. I did this several times, also with TCPDUMP. Here is a short tutorial and tipps: https://dokuwiki.hampel-soft.com/kb/ni-rt/linuxrt/opkg#installation_of_packages_on_offline_devices

 

Regards

Manu

Message 5 of 13
(1,977 Views)

Hi, 

 

Which .ipk file should I download to install TCPDUMP?

 

Regards,

Jonas

0 Kudos
Message 6 of 13
(1,951 Views)

The tcpdump is included with the NI Linux RT System Image Feed. If your controller does not have access to the internet, follow the steps in Offline installation of OPKG packages on Linux Real-Time devices

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 7 of 13
(1,948 Views)

The windows server with which I connect to the cRIO neither has internet connection. Is that a problem if I use NI Linux Real-Time Offline Installation Support  ?

0 Kudos
Message 8 of 13
(1,943 Views)

You can use another PC that has internet access to download the NI Linux Real-Time Offline Installation Support, then install it to the machine without internet access. The machine will then act as the feed repo server for the real-time target. No further internet access is required.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 9 of 13
(1,940 Views)

I get the following error when I try to enable the server.
I tried everything that is suggested here but it doesn't solve the problem:
“SSH Must Be Enabled on the Target” Message Displayed When Adding Software to NI Linux Real-Time Tar...

 

Jonas_A_1-1693919141709.png

 

 

Jonas_A_0-1693919115411.png

 

---------------------------
Real-Time Software
---------------------------
Something went wrong while getting the installed and available software.

SSH must be enabled on the target.
---------------------------
OK
---------------------------

0 Kudos
Message 10 of 13
(1,893 Views)