Code Monkey home page Code Monkey logo

asbuiltreport.dellemc.vxrail's Introduction

Buy Me a Coffee at ko-fi.com

Dell EMC VxRail As Built Report

Dell EMC VxRail As Built Report is a PowerShell module which works in conjunction with AsBuiltReport.Core.

AsBuiltReport is an open-sourced community project which utilises PowerShell to produce as-built documentation in multiple document formats for multiple vendors and technologies.

The Dell EMC VxRail As Built Report module is used to generate as built documentation for Dell EMC VxRail hyperconverged infrastructure.

๐Ÿ“š Sample Reports

Sample Report - Default Style

Sample Dell EMC VxRail As Built Report with health checks, using default report style.

Sample Dell EMC VxRail As Built Report

Sample Dell EMC VxRail As Built Report HTML file: Sample Dell EMC VxRail As Built Report.html

๐Ÿ”ฐ Getting Started

Below are the instructions on how to install, configure and generate a Dell EMC VxRail As Built Report.

๐Ÿ’พ Supported Versions

  • VxRail 4.7 and higher

PowerShell

This report is compatible with the following PowerShell versions;

Windows PowerShell 5.1 PowerShell 7
โœ… โœ…

๐Ÿ”ง System Requirements

PowerShell 5.1 or PowerShell 7, and the following PowerShell modules are required for generating a Dell EMC VxRail As Built report.

Install the following modules by following the module installation procedure.

Linux & macOS

โ— If you are unable to install .NET Core, you must set ShowCoverPageImage to False in the report JSON configuration file.

๐Ÿ” Required Privileges

  • A VMware vSphere user account with administrator privileges is required to generate a Dell EMC VxRail As Built Report.

๐Ÿ“ฆ Module Installation

PowerShell

Open a PowerShell terminal window and install the required module.

โš ๏ธ VMware PowerCLI 12.3 or higher is required. Please ensure older PowerCLI versions have been uninstalled.

install-module VMware.PowerCLI -MinimumVersion 12.3 -AllowClobber
install-module AsBuiltReport.DellEMC.VxRail

GitHub

If you are unable to use the PowerShell Gallery, you can still install the module manually. Ensure you repeat the following steps for the system requirements also.

  1. Download the code package / latest release zip from GitHub
  2. Extract the zip file
  3. Copy the folder AsBuiltReport.DellEMC.VxRail to a path that is set in $env:PSModulePath.
  4. Open a PowerShell terminal window and unblock the downloaded files with
    $path = (Get-Module -Name AsBuiltReport.DellEMC.VxRail -ListAvailable).ModuleBase; Unblock-File -Path $path\*.psd1; Unblock-File -Path $path\Src\Public\*.ps1; Unblock-File -Path $path\Src\Private\*.ps1
  5. Close and reopen the PowerShell terminal window.

Note: You are not limited to installing the module to those example paths, you can add a new entry to the environment variable PSModulePath if you want to use another path.

โœ๏ธ Configuration

The Dell EMC VxRail As Built Report utilises a JSON file to allow configuration of report information, options, detail and healthchecks.

A Dell EMC VxRail report configuration file can be generated by executing the following command;

New-AsBuiltReportConfig -Report DellEMC.VxRail -FolderPath <User specified folder> -Filename <Optional>

Executing this command will copy the default Dell EMC VxRail report JSON configuration to a user specified folder.

All report settings can then be configured via the JSON file.

The following provides information of how to configure each schema within the report's JSON file.

Report

The Report schema provides configuration of the VxRail Manager report information

Sub-Schema Setting Default Description
Name User defined Dell VxRail As Built Report The name of the As Built Report
Version User defined 1.0 The report version
Status User defined Released The report release status
ShowCoverPageImage true / false true Toggle to enable/disable the display of the cover page image
ShowTableOfContents true / false true Toggle to enable/disable table of contents
ShowHeaderFooter true / false true Toggle to enable/disable document headers & footers
ShowTableCaptions true / false true Toggle to enable/disable table captions/numbering

Options

The Options schema allows certain options within the report to be toggled on or off.

InfoLevel

The InfoLevel schema allows configuration of each section of the report at a granular level.

There are 2 levels (0-1) of detail granularity for each section as follows;

Setting InfoLevel Description
0 Disabled Does not collect or display any information
1 Enabled / Summary Provides summarised information for a collection of objects
2 Detailed Provides detailed information for individual objects

The table below outlines the default and maximum InfoLevel settings for each section.

Sub-Schema Default Setting Maximum Setting
Cluster 1 2
Appliance 1 2
Support 1 1
Network 1 1

Healthcheck

The Healthcheck schema is used to toggle health checks on or off.

Cluster

The Cluster schema is used to configure health checks for VxRail clusters.

Sub-Schema Setting Default Description Highlight
HealthStatus true / false true Highlights VxRail clusters which report an error Critical VxRail cluster is in an error state
VMPowerStatus true / false true Highlights VxRail cluster VMs which are powered off Warning VxRail cluster VM is powered off

Appliance

The Appliance schema is used to configure health checks for VxRail appliances.

Sub-Schema Setting Default Description Highlight
HealthStatus true / false true Highlights VxRail appliances which report an issue Warning VxRail appliance is reporting a warning
Critical VxRail appliance is reporting an error
PowerStatus true / false true Highlights VxRail appliances which are powered off Critical VxRail appliance is powered off
BootDevice true / false true Highlights VxRail boot devices which report less than 100% health Warning Boot device reports <100% health
NetworkLinkStatus true / false true Highlights VxRail network adpaters with a link status of Down Critical Network adapter link status is Down
DiskStatus true / false true Highlights VxRail disks which report a status which is not equal to OK Critical Disk status is not OK
PowerSupply true / false true Highlights VxRail power supplies which are not Healthy Critical Power supply is not Healthy

Support

The Support schema is used to configure health checks for the VxRail support configuration.

Sub-Schema Setting Default Description Highlight
EsrsStatus true / false true Highlights when ESRS is Not Configured Warning ESRS is Not Configured
EsrsConnection true / false true Highlights when ESRS connection is Disabled Warning ESRS connection is Disabled

๐Ÿ’ป Examples

โ— The Target parameter MUST specify the vCenter Server IP/FQDN which manages the VxRail cluster. The Username, Password and Credential parameters must also use relevant vCenter Server credentials.

# Generate a VxRail As Built Report for VxRail cluster 'vxrail-01.corp.local' using specified vCenter Server credentials. The VxRail cluster is managed by vCenter Server 'vcenter-01.corp.local'. Export report to HTML & DOCX formats. Use default report style. Append timestamp to report filename. Save reports to 'C:\Users\Tim\Documents'
PS C:\> New-AsBuiltReport -Report DellEMC.VxRail -Target 'vcenter-01.corp.local' -Username '[email protected]' -Password 'VMware1!' -Format Html,Word -OutputFolderPath 'C:\Users\Tim\Documents' -Timestamp

# Generate a VxRail As Built Report for VxRail cluster 'vxrail-01.corp.local' using specified vCenter Server credentials and VxRail report configuration file. The VxRail cluster is managed by vCenter Server 'vcenter-01.corp.local'. Export report to Text, HTML & DOCX formats. Use default report style. Save reports to 'C:\Users\Tim\Documents'. Display verbose messages to the console.
PS C:\> New-AsBuiltReport -Report -Report DellEMC.VxRail -Target 'vcenter-01.corp.local' -Username '[email protected]' -Password 'VMware1!' -Format Text,Html,Word -OutputFolderPath 'C:\Users\Tim\Documents' -Verbose

# Generate a VxRail As Built Report for VxRail cluster 'vxrail-01.corp.local' using stored vCenter Server credentials. The VxRail cluster is managed by vCenter Server 'vcenter-01.corp.local'. Export report to HTML & Text formats. Use default report style. Highlight environment issues within the report. Save reports to 'C:\Users\Tim\Documents'.
PS C:\> $Creds = Get-Credential # Store vCenter Server credentials
PS C:\> New-AsBuiltReport -Report DellEMC.VxRail -Target 'vcenter-01.corp.local' -Credential $Creds -Format Html,Text -OutputFolderPath 'C:\Users\Tim\Documents' -EnableHealthCheck

# Generate a single VxRail As Built Report for VxRail clusters 'vxrail-01.corp.local' and 'vxrail-02.corp.local'. The VxRail clusters are managed by two individual vCenter Servers 'vcenter-01.corp.local' and 'vcenter-02.corp.local'. Report exports to WORD format by default. Apply custom style to the report. Reports are saved to the user profile folder by default.
PS C:\> New-AsBuiltReport -Report DellEMC.VxRail -Target 'vcenter-01.corp.local','vcenter-02.corp.local' -Username '[email protected]' -Password 'VMware1!' -StyleFilePath 'C:\Scripts\Styles\MyCustomStyle.ps1'

# Generate a VxRail As Built Report for VxRail cluster 'vxrail-01.corp.local' using specified credentials. he VxRail cluster is managed by vCenter Server 'vcenter-01.corp.local'. Export report to HTML & DOCX formats. Use default report style. Reports are saved to the user profile folder by default. Attach and send reports via e-mail.
PS C:\> New-AsBuiltReport -Report DellEMC.VxRail -Target 'vcenter-01.corp.local' -Username '[email protected]' -Password 'VMware1!' -Format Html,Word -OutputFolderPath 'C:\Users\Tim\Documents' -SendEmail

asbuiltreport.dellemc.vxrail's People

Contributors

tpcarman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tpcarman

asbuiltreport.dellemc.vxrail's Issues

New-AsBuiltReport : Cannot bind argument to parameter 'Name' because it is an empty string.

New-AsBuiltReport : Cannot bind argument to parameter 'Name' because it is an empty string.
At line:1 char:1

  • New-AsBuiltReport -Report DellEMC.VxRail -Target 'vcenter...
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport
    
    
    

Command:
New-AsBuiltReport -Report DellEMC.VxRail -Target 'vcenter' -Username 'username' -Password 'password' -Format Html,Word -OutputFolderPath 'C:\Users\username\Documents' -Verbose

What i get:

VERBOSE: As Built Report configuration file not saved.
VERBOSE: Config.Report.Author = User
VERBOSE: Config.UserFolder.Path = C:\Users\USER\AsBuiltReport
VERBOSE: Config.Company.FullName =
VERBOSE: Config.Company.Contact =
VERBOSE: Config.Company.Phone =
VERBOSE: Config.Company.Email =
VERBOSE: Config.Company.ShortName =
VERBOSE: Config.Company.Address =
VERBOSE: Config.Email.Port =
VERBOSE: Config.Email.Credentials =
VERBOSE: Config.Email.Server =
VERBOSE: Config.Email.To =
VERBOSE: Config.Email.From =
VERBOSE: Config.Email.UseSSL =
VERBOSE: Config.Email.Body =
VERBOSE: Loading module from path
'C:\Users\USER\Documents\WindowsPowerShell\Modules\AsBuiltReport.DellEMC.VxRail\AsBuiltReport.DellEMC.VxRa
il.psm1'.
VERBOSE: Loading report configuration file from path
'C:\Users\USER\Documents\WindowsPowerShell\Modules\AsBuiltReport.DellEMC.VxRail\AsBuiltReport.DellEMC.VxRa
il.json'.
VERBOSE: Setting report filename to 'Dell EMC VxRail As Built Report'.
VERBOSE: [ 19:18:37:819 ] [ Document ] - Document 'Dell EMC VxRail As Built Report' processing started.
VERBOSE: [ 19:18:37:897 ] [ Document ] - Executing report style script from path
'C:\Users\USER\Documents\WindowsPowerShell\Modules\AsBuiltReport.DellEMC.VxRail\AsBuiltReport.DellEMC.VxRa
il.Style.ps1'.
VERBOSE: [ 19:18:37:897 ] [ Document ] - Setting global document options.
VERBOSE: [ 19:18:37:897 ] [ Document ] - Enabling section/heading numbering.
VERBOSE: [ 19:18:37:897 ] [ Document ] - Setting default font(s) to 'Arial'.
VERBOSE: [ 19:18:37:897 ] [ Document ] - Setting page top margin to '25,05'mm.
VERBOSE: [ 19:18:37:913 ] [ Document ] - Setting page right margin to '25,05'mm.
VERBOSE: [ 19:18:37:913 ] [ Document ] - Setting page bottom margin to '25,05'mm.
VERBOSE: [ 19:18:37:913 ] [ Document ] - Setting page left margin to '25,05'mm.
VERBOSE: [ 19:18:37:913 ] [ Document ] - Setting page size to 'A4'.
VERBOSE: [ 19:18:37:913 ] [ Document ] - Setting page orientation to 'Portrait'.
VERBOSE: [ 19:18:37:913 ] [ Document ] - Setting page height to '297'mm.
VERBOSE: [ 19:18:37:929 ] [ Document ] - Setting page width to '210'mm.
VERBOSE: [ 19:18:37:929 ] [ Document ] - Setting document style 'Title'.
VERBOSE: [ 19:18:37:929 ] [ Document ] - Setting document style 'Title2'.
VERBOSE: [ 19:18:37:929 ] [ Document ] - Setting document style 'Title3'.
VERBOSE: [ 19:18:37:929 ] [ Document ] - Setting document style 'Heading1'.
VERBOSE: [ 19:18:37:929 ] [ Document ] - Setting document style 'Heading2'.
VERBOSE: [ 19:18:37:944 ] [ Document ] - Setting document style 'Heading3'.
VERBOSE: [ 19:18:37:944 ] [ Document ] - Setting document style 'Heading4'.
VERBOSE: [ 19:18:37:944 ] [ Document ] - Setting document style 'Heading5'.
VERBOSE: [ 19:18:37:944 ] [ Document ] - Setting document style 'Normal'.
VERBOSE: [ 19:18:37:960 ] [ Document ] - Setting document style 'Caption'.
VERBOSE: [ 19:18:37:960 ] [ Document ] - Setting document style 'Header'.
VERBOSE: [ 19:18:37:960 ] [ Document ] - Setting document style 'Footer'.
VERBOSE: [ 19:18:37:960 ] [ Document ] - Setting document style 'TOC'.
VERBOSE: [ 19:18:37:960 ] [ Document ] - Setting document style 'TableDefaultHeading'.
VERBOSE: [ 19:18:37:976 ] [ Document ] - Setting document style 'TableDefaultRow'.
VERBOSE: [ 19:18:37:976 ] [ Document ] - Setting document style 'Critical'.
VERBOSE: [ 19:18:37:976 ] [ Document ] - Setting document style 'Warning'.
VERBOSE: [ 19:18:37:991 ] [ Document ] - Setting document style 'Info'.
VERBOSE: [ 19:18:37:991 ] [ Document ] - Setting document style 'OK'.
VERBOSE: [ 19:18:37:991 ] [ Document ] - Setting table style 'TableDefault'.
VERBOSE: [ 19:18:37:991 ] [ Document ] - Setting table style 'Borderless'.
VERBOSE: [ 19:18:38:007 ] [ Document ] - Processing document header started.
VERBOSE: [ 19:18:38:007 ] [ Document ] - Processing paragraph 'Dell EMC VxRail As Built Report - v1.0'.
VERBOSE: [ 19:18:38:007 ] [ Document ] - Processing document header completed.
VERBOSE: [ 19:18:38:007 ] [ Document ] - Processing document footer started.
VERBOSE: [ 19:18:38:022 ] [ Document ] - Processing paragraph 'Page <!# PageNumber #!>'.
VERBOSE: [ 19:18:38:022 ] [ Document ] - Processing document footer completed.
VERBOSE: [ 19:18:38:022 ] [ Document ] - Processing blank line.
VERBOSE: [ 19:18:38:022 ] [ Document ] - Processing paragraph 'Dell EMC VxRail As Built Report'.
VERBOSE: [ 19:18:38:022 ] [ Document ] - Processing blank line.
VERBOSE: [ 19:18:38:022 ] [ Document ] - Processing table 'Cover Page'.
VERBOSE: [ 19:18:38:038 ] [ Document ] - Processing page break.
VERBOSE: [ 19:18:38:038 ] [ Document ] - Processing table of contents 'Table of Contents'.
VERBOSE: [ 19:18:38:038 ] [ Document ] - Processing page break.
VERBOSE: [ 19:18:38:069 ] [ Document ] - Connecting to vCenter Server
VERBOSE: [ 19:18:39:522 ] [ Document ] - Collecting VxRail Manager Information
VERBOSE: [ 19:18:39:726 ] [ Document ] - Performing API reference calls
New-AsBuiltReport : Cannot bind argument to parameter 'Name' because it is an empty string.
At line:1 char:1

  • New-AsBuiltReport -Report DellEMC.VxRail -Target 'vcenter ...
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltRepo
    

The VxRail PowerShell module cannot be found in the PowerShell Gallery

The notes refers to downloading the VxRail PowerShell module with a link to the PowerShell gallery. However the VxRail PowerShell module is not available in the PowerShell gallery as of the 5th of March 2021.

Is there any other location the VxRail PowerShell module can be downloaded from?

Thanks

Pass in parameter VxRail Manager hostname because several VxRail clusters can be managed by the same vcenter

Is your feature request related to a problem? Please describe.
The report collect only information about one VxRail Manager.

Describe the solution you'd like
Pass VxRail Manager hostname as parameter

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.