Logging of communication

Is it possible to put the internal wireshark function in to the web interface of the controller, so that we don’t have to work in the linux commandline interface? Reason for asking is simple: I have some issues with the OPC_UA communication and would like that the controller is logging the communications. When accessing the FTP page of the controller, there is a number of log’s. but only the OUTPUT_LOG has data. The log file for the OPC_UA functions is empty, what is not very helpful if you want to find an issue in the OPC_UA communication. So, would it be possible to log the OPC_UA communications and a wireshark log in the controller? And set those logs up via the web interface? Peter Paul

Hello Paul, I think it’s a good idea, I’ll pass it to development. I’ll give you a feedback, asap.. Best Regards Eduard

Hi Peter, PLCnext Technology give you possibilities to do this: Please use plink on windows and pipe the binary output of tcpdump directly to Wireshark concept “plink -ssh -pw Password root@192.168.0.12 “tcpdump -s 0 -w - ‘port !22’” | “C:\\Program Files\\Wireshark\\Wireshark.exe” -k -i –”

Hi Acke, thanks for the info. I have been aware of this. But it still needs a PC connected to the controller. My problem is a issue in the OPC_UA communication and a apparent restart of the controller (cold start). For the first issue, my guess is that there is an problem with the OPC_UA client in Visu+. For the second: no reason for a cold start as the system is on an UPS and no one has switch that off. I have spent a very cold night night at the client to observe the system, running logs with wireshark and OPC_UA Expert. The wireshark logs show no issues, OPC_UA Expert shows drop of sessions from Visu+, but not from the laptop running OPC_UA Expert. In this case, I would like to run the logs directly on the controller - 12h at -5°C is a long time. Also is it not always possible to set a logging system up (production, mobile system). Here ist would be nice to setup the logging on the controller (time frame and log items) and to trigger that remotely. Peter Paul

Hello Peter,

you can always start the tcpdump logging from the console and detach the logging from the terminal seesion so it stays active after you close the session. "tcpdump --yourconfig --Ringbuffer --andFilters** &**"

This has the problem that It might fill up your SD Card… so Ackes solution is recommended.

kind regards,
Oliver

Hi Oliver, we did talk about this option and you know the issue at hand. Still it would be a useful function to add to the controller. You could set a limit for the logs to prevent filling the SD card.

Hello Peter, we have a FB that is planned for the next version of the PLCnextBaseLib of the VMM (available in the PLCnext Store). This FB allows you to start / stop the TCPDUMP from the PLC program and to assign parameters. If this FB will be available, you can implement the eHMI Web-Site for starting and sopping. The OPC UA requirement is provided to development, it is synchronized and processed with further requirements for OPC UA. At the moment I’m currently unable to provide the due date for this task. I would like to recommend you Ackes solution for the meantime/workaround. Best Regards Eduard