< Back

Convert-Log2Chart

Sat Jan 18, 2020 9:49 am

NAME Convert-Log2Chart



SYNOPSIS





SYNTAX

Convert-Log2Chart [[-FileTemplate] <Object>] [[-ListOfFiles] <Object>] [[-ReportName] <Object>] [-LogType]

<String> [<CommonParameters>]





DESCRIPTION

This module give tools to generate html based log report from iperf or ping logs.



Following log types can be converted to html based log report:

Iperf:

[ 5] 7.00-8.00 sec 7.47 MBytes 62.6 Mbits/sec

[ 5] 8.00-9.00 sec 7.17 MBytes 60.2 Mbits/sec

Linux:

64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=16.0 ms

64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=14.8 ms

Windows:

Reply from 8.8.8.8: bytes=32 time=48ms TTL=45

Reply from 8.8.8.8: bytes=32 time=47ms TTL=45

WindowsWithDate:

07.07.2017-15:16:57> Reply from 8.8.8.8: bytes=32 time=48ms TTL=45

07.07.2017-15:16:58> Reply from 8.8.8.8: bytes=32 time=47ms TTL=45





PARAMETERS

-FileTemplate <Object>

Files that match on this wildcard pattern will be included in generated report.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ListOfFiles <Object>



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ReportName <Object>

Name of the generated report.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LogType <String>

Four type of log can be accapted: Iperf, Linux, Windows and WindowsWithDate



Required? true

Position? 4

Default value Windows

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Convert-Log2Chart -FileTemplate Test*ping.txt -ReportName OutPutReportName -LogType WindowsWithDate















RELATED LINKS