Description:

For analysis and monitoring the output of status tables and show commands is often required. In many cases it is necessary to get the output repeatedly, so that changes can be recognized.

This article describes how status tables and show commands can be read out and stored in cyclic intervals with a batch file using the tool PLINK.


Requirements:


Procedure:

In the attached batch file the following status tables are read out and show commands are executed:

The output is read out once per second and is saved to a text file with the current time. Therefore a new file is created for each query.

1) Dial in to your LANCOM router via PuTTY once to ensure that the SSH-Key is entered into the registry.

2) Open the attached batch script Batch-Info.bat with any desired text editor.

3. Adjust the following parameters:


It is possible to add additional commands in the batch file. For that purpose the following syntax has to be used (<Name> and <command to be executed> have to be adjusted):

echo [%DATETIMEF%] <Name>
%PLINK% %LCMS_TARGET% -batch -pw %LCMS_TARGET_PASS% <command to be executed> >> %DATETIMEF%_info.txt

4) Execute the batch script via a double click to execute the commands and write the output to a text file.