Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section

New batch file example:

The batch file must sometimes be changed dependent on the windows version or security on your PC. Also which version of plink and whireshark you use can have an influence on the batch file.

We can only share information when we adjusted the batch file to solve issues caused by the above. We can not support you solving Windows/security/plink issues.

Below is a batch file that is used today by us that works with the N870 software 2.26, plink latest putty version ... , Windows 10 and Wireshark Wireshark 3.0.8

Info
titleBatch file example

@echo off
set ipaddress=
set password=
set interface=
set wire=
set optionshost=
set optionsport=


@echo off

echo.
echo !!! This is used on your own risk !!!
echo.
echo.
echo To use default values (192.168.178.190, cliadmin, any), just press ENTER
echo.
echo Specially for the path to wireshark,
echo it is the easiest to press enter for the standard installation path!
echo (default: C:\Wireshark\Wireshark.exe)
echo.
echo Please enter...
echo Connection:
set /p ipaddress=1. ...IP-address from DECT Manager (for example, 192.168.178.190):
set /p password=2. ...admin-password (for example, Gigaset123):
echo.
echo Options:
set /p optionsport=3. ...the port for tracing (leave empty for ANY):
set /p optionshost=4. ...the host for tracing (leave empty for ANY):
echo.
echo Miscellaneous:
set /p interface=5. ...interface to capture (for example, any):
set /p wire=6. ...the full-path to wireshark:
echo.


if "%ipaddress%"=="" (set ipaddress=192.168.178.190)
if "%password%"=="" (set password=Gigaset123)
if "%interface%"=="" (set interface=any)
if "%wire%"=="" (set wire="C:\Wireshark\Wireshark.exe")
if NOT "%optionshost%"=="" (set optionshost=and host %optionshost%)
if "%optionsport%"=="" (set optionsport=not port 22) else (set optionsport=port %optionsport%)
echo %wire%

%CD%\plink.exe -ssh -pw %password% cli@%ipaddress% "exit"
%CD%\plink.exe -ssh -batch -pw %password% cli@%ipaddress% "sudo /usr/sbin/tcpdump -s0 %optionsport% %optionshost% -w -" | wireshark.exe -k -l -i -