Skip to content

Commit

Permalink
Merge pull request #18 from AsBuiltReport/dev
Browse files Browse the repository at this point in the history
v0.4.2 public release
  • Loading branch information
rebelinux authored May 16, 2023
2 parents be04ac8 + a4a0a55 commit e6dc506
Show file tree
Hide file tree
Showing 21 changed files with 700 additions and 1,126 deletions.
3 changes: 3 additions & 0 deletions AsBuiltReport.VMware.SRM.Style.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ Style -Name 'Title 3' -Size 12 -Color '006A91' -Align Center
Style -Name 'Heading 1' -Size 16 -Color '00364D'
Style -Name 'Heading 2' -Size 14 -Color '004B6B'
Style -Name 'Heading 3' -Size 12 -Color '00567A'
Style -Name 'NO TOC Heading 3' -Size 12 -Color '00567A'
Style -Name 'Heading 4' -Size 11 -Color '00648F'
Style -Name 'NO TOC Heading 4' -Size 11 -Color '00648F'
Style -Name 'Heading 5' -Size 10 -Color '0072A3'
Style -Name 'NO TOC Heading 5' -Size 10 -Color '0072A3'
Style -Name 'Normal' -Size 10 -Color '565656' -Default
Style -Name 'Caption' -Size 10 -Color '565656' -Italic -Align Center
Style -Name 'Header' -Size 10 -Color '565656' -Align Center
Expand Down
1 change: 0 additions & 1 deletion AsBuiltReport.VMware.SRM.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"InfoLevel": {
"_comment_": "0 = Disabled, 1 = Enabled, 2 = Adv Summary, 3 = Detailed",
"Sites": 1,
"vCenter": 1,
"License": 1,
"Permission": 1,
"ArrayPairs": 1,
Expand Down
2 changes: 1 addition & 1 deletion AsBuiltReport.VMware.SRM.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'AsBuiltReport.VMware.SRM.psm1'

# Version number of this module.
ModuleVersion = '0.4.1'
ModuleVersion = '0.4.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# :arrows_clockwise: VMware SRM As Built Report Changelog

## [0.4.2] - 2023-05-16

### Changed

- Code cleanup
- Removed unused files
- Modified SRA and Array Manager section for better handling of errors

## [0.4.1] - 2023-05-15

### Added
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Tested On:
- SRM 8.3
- SRM 8.4
- SRM 8.5
- SRM 8.6
- SRM 8.7

### PowerShell

Expand Down
875 changes: 344 additions & 531 deletions Samples/Sample VMware SRM As Built Report.html

Large diffs are not rendered by default.

Binary file added Samples/Sample VMware SRM As Built Report.pdf
Binary file not shown.
Binary file removed Samples/Sample_SRM_Report_1.png
Binary file not shown.
Binary file removed Samples/Sample_SRM_Report_2.png
Binary file not shown.
Binary file removed Samples/Sample_SRM_Report_3.png
Binary file not shown.
Binary file removed Samples/Sample_SRM_Report_4.png
Binary file not shown.
20 changes: 10 additions & 10 deletions Src/Private/Get-AbrSRMArrayPairs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrSRMArrayPairs {
.DESCRIPTION
Documents the configuration of VMware SRM in Word/HTML/Text formats using PScribo.
.NOTES
Version: 0.1.0
Version: 0.4.2
Author: Tim Carman
Twitter: @tpcarman
Github: @tpcarman
Expand All @@ -18,17 +18,17 @@ function Get-AbrSRMArrayPairs {
}

process {
$LocalArrayPair = $LocalSRM.ExtensionData.Storage.QueryArrayManagers().GetArrayInfo()
$RemoteArrayPair = $RemoteSRM.ExtensionData.Storage.QueryArrayManagers().GetArrayInfo()
$LocalSRA = $LocalSRM.ExtensionData.Storage.QueryArrayManagers().getadapter().fetchinfo()
$RemoteSRA = $RemoteSRM.ExtensionData.Storage.QueryArrayManagers().getadapter().fetchinfo()
try {
$LocalArrayPair = $LocalSRM.ExtensionData.Storage.QueryArrayManagers().GetArrayInfo()
$RemoteArrayPair = $RemoteSRM.ExtensionData.Storage.QueryArrayManagers().GetArrayInfo()
$LocalSRA = $LocalSRM.ExtensionData.Storage.QueryArrayManagers().getadapter().fetchinfo()
$RemoteSRA = $RemoteSRM.ExtensionData.Storage.QueryArrayManagers().getadapter().fetchinfo()

if (($LocalArrayPair) -and ($RemoteArrayPair)) {
try {
if (($LocalArrayPair) -and ($RemoteArrayPair)) {
Section -Style Heading2 'Array Pairs' {
if ($Options.ShowDefinitionInfo) {
}
Paragraph "The following table provides information for the Storage Array Pairs which have been configured at each site."
Paragraph "The following table provides information about the Storage Array Pairs which have been configured at each site."
BlankLine
$HashObj = @{}
$LocalObj = $LocalArrayPair.Key
Expand All @@ -53,9 +53,9 @@ function Get-AbrSRMArrayPairs {
}
$OutObj | Table @TableParams
}
} catch {
Write-PScriboMessage -IsWarning $_.Exception.Message
}
} catch {
Write-PScriboMessage -IsWarning $_.Exception.Message
}
}

Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-AbrSRMLicense.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrSRMLicense {
.DESCRIPTION
Documents the configuration of VMware SRM in Word/HTML/Text formats using PScribo.
.NOTES
Version: 0.4.0
Version: 0.4.2
Author: Jonathan Colon & Tim Carman
Twitter: @jcolonfzenpr / @tpcarman
Github: @rebelinux / @tpcarman
Expand All @@ -27,7 +27,7 @@ function Get-AbrSRMLicense {
$RemoteLicenseInfo = $RemoteSRM.ExtensionData.GetLicenseInfo()
if (($LocalLicenseInfo) -or ($RemoteLicenseInfo)) {
Section -Style Heading2 'Licensing' {
Paragraph "The following table provides information for the VMware SRM licensing."
Paragraph "The following table provides information about configured licensing at each site."
BlankLine
$OutObj = @()
if ($LocalLicenseInfo) {
Expand Down
8 changes: 4 additions & 4 deletions Src/Private/Get-AbrSRMNetworkMapping.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ function Get-AbrSRMNetworkMapping {
Paragraph "Network mappings allow you to specify how Site Recovery Manager maps virtual machine networks on the protected site to virtual machine networks on the recovery site."
Blankline
}

if ($LocalNetworkMappings) {
Section -Style Heading3 -ExcludeFromTOC $($ProtectedSiteName) {
Section -Style NOTOCHeading3 -ExcludeFromTOC $($ProtectedSiteName) {
$OutObj = @()
foreach ($ObjMap in $LocalNetworkMappings) {
$inObj = [Ordered]@{
Expand Down Expand Up @@ -67,15 +67,15 @@ function Get-AbrSRMNetworkMapping {
}

if ($RemoteNetworkMappings) {
Section -Style Heading3 -ExcludeFromTOC $($RecoverySiteName) {
Section -Style NOTOCHeading3 -ExcludeFromTOC $($RecoverySiteName) {
$OutObj = @()
foreach ($ObjMap in $RemoteNetworkMappings) {
$inObj = [Ordered]@{
'Protected Network' = Get-View $ObjMap.PrimaryObject -Server $RemotevCenter | Select-Object -ExpandProperty Name -Unique
'Recovery Network' = Get-View $ObjMap.SecondaryObject -Server $LocalvCenter | Select-Object -ExpandProperty Name -Unique
'Test Network' = & {
if ($RemoteTestNetworkMappings | Where-Object {$_.Key -eq $ObjMap.SecondaryObject}) {
Get-View (($RemoteTestNetworkMappings | Where-Object {$_.Key -eq $ObjMap.SecondaryObject}).TestNetwork) -Server $RemotevCenter
Get-View (($RemoteTestNetworkMappings | Where-Object {$_.Key -eq $ObjMap.SecondaryObject}).TestNetwork) -Server $RemotevCenter
} else {
'Isolated network (auto created)'
}
Expand Down
8 changes: 4 additions & 4 deletions Src/Private/Get-AbrSRMPermission.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrSRMPermission {
.DESCRIPTION
Documents the configuration of VMware SRM in Word/HTML/Text formats using PScribo.
.NOTES
Version: 0.4.0
Version: 0.4.2
Author: Jonathan Colon & Tim Carman
Twitter: @jcolonfzenpr / @tpcarman
Github: @rebelinux / @tpcarman
Expand All @@ -31,11 +31,11 @@ function Get-AbrSRMPermission {
Paragraph "Site Recovery Manager includes a set of roles. Each role includes a set of privileges, which allow users with those roles to complete different actions. Roles can have overlapping sets of privileges and actions."
Blankline
}
Paragraph "The following table provides information for the VMware SRM permissions which have been configured at each site."
Paragraph "The following table provides information about the permissions which have been configured at each site."
BlankLine

if ($LocalVIPermissions) {
Section -Style Heading3 -ExcludeFromTOC $($ProtectedSiteName) {
Section -Style NOTOCHeading3 -ExcludeFromTOC $($ProtectedSiteName) {
$OutObj = @()
foreach ($LocalVIPermission in $LocalVIPermissions) {
Write-PScriboMessage "Discovered SRM Permissions $($LocalVIPermission.Name)."
Expand Down Expand Up @@ -63,7 +63,7 @@ function Get-AbrSRMPermission {
}

if ($RemoteVIPermissions) {
Section -Style Heading3 -ExcludeFromTOC $($RecoverySiteName) {
Section -Style NOTOCHeading3 -ExcludeFromTOC $($RecoverySiteName) {
$OutObj = @()
foreach ($RemoteVIPermission in $RemoteVIPermissions) {
Write-PScriboMessage "Discovered SRM Permissions $($RemoteVIPermission.Name)."
Expand Down
Loading

0 comments on commit e6dc506

Please sign in to comment.