Skip to content

dascgit/PCoIPLogAnalyzer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

PCoIP Log Analyzer is a set of PowerShell commandlets which allows you to analyze pcoip_server log files generated by VMware Horizon View Agent v5.3 - 7.x.

Installation

To install PCoIP Log Analyzer simply copy the PCoIPLogAnalyzer.psm1 file from the repository to your computer. Then execute command Import-Module PCoIPLogAnalyzer.psm1 to add commandlets to PowerShell.

Execution

Use PowerShell commandlet Get-PCoIPStatistics to analyze log file.

Get-PCoIPStatistics -FilePath <string> [-ResultPath <string>] [-Format <string>] [-NoScreenOutput] [-MaxSamples <int>]

Parameters:

  • -FilePath <string> - (mandatory) Specify path to the pcoip_server log file.
  • -ResultPath <string> - (optional) Specify path to export results to the file.
  • -Format <string> - (optional) Specify the report format. Supported values are: CSV, HTML or TEXT. By default data is saved in the TEXT format.
  • -NoScreenOutput - (optional) Specify this parameter, if you want to skip output the result to the console.
  • -MaxSamples <int> - (optional) Set the maximum number of rows to output. If not defined, the default value is 500.

Examples:

#Analyze log file and print the report to the console

Get-PCoIPStatistics -FilePath "C:\Temp\pcoip_server_2017_12_19_000034d0.txt"

#Analyze log file, generate the report and export it to the HTML file

Get-PCoIPStatistics -FilePath "C:\Temp\pcoip_server_2017_12_16_00000230.txt" -ResultPath "C:\Temp\report.html" -Format HTML

Use PowerShell commandlet Import-PCoIPLog to get a PowerShell object which contains session data from the log file.

Import-PCoIPLog -FilePath <string>

Parameters:

  • -FilePath <string> - (mandatory) Specify path to the pcoip_server log file. Examples:

#Get an object from the log file

$PCoIPLog = Import-PCoIPLog -FilePath "C:\Temp\pcoip_server_2017_12_19_000034d0.txt"

Releases

v2.2 - Added disconnect reason to the reports.

v2.1 - Changed HTML report template. Added zoom capability to HTML reports.

v2.0 - Redesigned to PowerShell module architecture. Added Import-PCoIPLog, Export-PCoIPStatistics, Show-PCoIPStatistics and Get-PCoIPStatistics commandlets. Added support for Horizon Agent v5.3 and 6.x logs. Added support to export report to the CSV format.

v1.1 - Fixed display of audio/image/other traffic RX and TX statistics.

v1.0 - Initial release.

Known issues

  1. Current version supports pcoip_server log files generated by VMware Horizon Agent version 5.3, 6.x or 7.x. Other versions could have some changes in log format and are not supported.
  2. Current version does not display some statistics from log files from desktops with PCoIP Hardware Host Card (Teradici Remote Workstation Card).
  3. To correctly display the styles and charts in the HTML report, your computer needs access to https://code.jquery.com https://cdnjs.cloudflare.com and https://code.highcharts.com to download additional java scripts and stylesheets.

Licensing

The MIT License

Copyright 2018 https://blog.vmpress.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

PCoIP Log Analyzer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 85.0%
  • FreeMarker 15.0%