Skip to content

Commit e6dc506

Browse files
authored
Merge pull request #18 from AsBuiltReport/dev
v0.4.2 public release
2 parents be04ac8 + a4a0a55 commit e6dc506

21 files changed

+700
-1126
lines changed

AsBuiltReport.VMware.SRM.Style.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ Style -Name 'Title 3' -Size 12 -Color '006A91' -Align Center
1010
Style -Name 'Heading 1' -Size 16 -Color '00364D'
1111
Style -Name 'Heading 2' -Size 14 -Color '004B6B'
1212
Style -Name 'Heading 3' -Size 12 -Color '00567A'
13+
Style -Name 'NO TOC Heading 3' -Size 12 -Color '00567A'
1314
Style -Name 'Heading 4' -Size 11 -Color '00648F'
15+
Style -Name 'NO TOC Heading 4' -Size 11 -Color '00648F'
1416
Style -Name 'Heading 5' -Size 10 -Color '0072A3'
17+
Style -Name 'NO TOC Heading 5' -Size 10 -Color '0072A3'
1518
Style -Name 'Normal' -Size 10 -Color '565656' -Default
1619
Style -Name 'Caption' -Size 10 -Color '565656' -Italic -Align Center
1720
Style -Name 'Header' -Size 10 -Color '565656' -Align Center

AsBuiltReport.VMware.SRM.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"InfoLevel": {
1515
"_comment_": "0 = Disabled, 1 = Enabled, 2 = Adv Summary, 3 = Detailed",
1616
"Sites": 1,
17-
"vCenter": 1,
1817
"License": 1,
1918
"Permission": 1,
2019
"ArrayPairs": 1,

AsBuiltReport.VMware.SRM.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'AsBuiltReport.VMware.SRM.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.4.1'
15+
ModuleVersion = '0.4.2'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# :arrows_clockwise: VMware SRM As Built Report Changelog
22

3+
## [0.4.2] - 2023-05-16
4+
5+
### Changed
6+
7+
- Code cleanup
8+
- Removed unused files
9+
- Modified SRA and Array Manager section for better handling of errors
10+
311
## [0.4.1] - 2023-05-15
412

513
### Added

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Tested On:
5252
- SRM 8.3
5353
- SRM 8.4
5454
- SRM 8.5
55+
- SRM 8.6
56+
- SRM 8.7
5557

5658
### PowerShell
5759

Samples/Sample VMware SRM As Built Report.html

Lines changed: 344 additions & 531 deletions
Large diffs are not rendered by default.
395 KB
Binary file not shown.

Samples/Sample_SRM_Report_1.png

-149 KB
Binary file not shown.

Samples/Sample_SRM_Report_2.png

-115 KB
Binary file not shown.

Samples/Sample_SRM_Report_3.png

-186 KB
Binary file not shown.

Samples/Sample_SRM_Report_4.png

-164 KB
Binary file not shown.

Src/Private/Get-AbrSRMArrayPairs.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrSRMArrayPairs {
55
.DESCRIPTION
66
Documents the configuration of VMware SRM in Word/HTML/Text formats using PScribo.
77
.NOTES
8-
Version: 0.1.0
8+
Version: 0.4.2
99
Author: Tim Carman
1010
Twitter: @tpcarman
1111
Github: @tpcarman
@@ -18,17 +18,17 @@ function Get-AbrSRMArrayPairs {
1818
}
1919

2020
process {
21-
$LocalArrayPair = $LocalSRM.ExtensionData.Storage.QueryArrayManagers().GetArrayInfo()
22-
$RemoteArrayPair = $RemoteSRM.ExtensionData.Storage.QueryArrayManagers().GetArrayInfo()
23-
$LocalSRA = $LocalSRM.ExtensionData.Storage.QueryArrayManagers().getadapter().fetchinfo()
24-
$RemoteSRA = $RemoteSRM.ExtensionData.Storage.QueryArrayManagers().getadapter().fetchinfo()
21+
try {
22+
$LocalArrayPair = $LocalSRM.ExtensionData.Storage.QueryArrayManagers().GetArrayInfo()
23+
$RemoteArrayPair = $RemoteSRM.ExtensionData.Storage.QueryArrayManagers().GetArrayInfo()
24+
$LocalSRA = $LocalSRM.ExtensionData.Storage.QueryArrayManagers().getadapter().fetchinfo()
25+
$RemoteSRA = $RemoteSRM.ExtensionData.Storage.QueryArrayManagers().getadapter().fetchinfo()
2526

26-
if (($LocalArrayPair) -and ($RemoteArrayPair)) {
27-
try {
27+
if (($LocalArrayPair) -and ($RemoteArrayPair)) {
2828
Section -Style Heading2 'Array Pairs' {
2929
if ($Options.ShowDefinitionInfo) {
3030
}
31-
Paragraph "The following table provides information for the Storage Array Pairs which have been configured at each site."
31+
Paragraph "The following table provides information about the Storage Array Pairs which have been configured at each site."
3232
BlankLine
3333
$HashObj = @{}
3434
$LocalObj = $LocalArrayPair.Key
@@ -53,9 +53,9 @@ function Get-AbrSRMArrayPairs {
5353
}
5454
$OutObj | Table @TableParams
5555
}
56-
} catch {
57-
Write-PScriboMessage -IsWarning $_.Exception.Message
5856
}
57+
} catch {
58+
Write-PScriboMessage -IsWarning $_.Exception.Message
5959
}
6060
}
6161

Src/Private/Get-AbrSRMLicense.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrSRMLicense {
55
.DESCRIPTION
66
Documents the configuration of VMware SRM in Word/HTML/Text formats using PScribo.
77
.NOTES
8-
Version: 0.4.0
8+
Version: 0.4.2
99
Author: Jonathan Colon & Tim Carman
1010
Twitter: @jcolonfzenpr / @tpcarman
1111
Github: @rebelinux / @tpcarman
@@ -27,7 +27,7 @@ function Get-AbrSRMLicense {
2727
$RemoteLicenseInfo = $RemoteSRM.ExtensionData.GetLicenseInfo()
2828
if (($LocalLicenseInfo) -or ($RemoteLicenseInfo)) {
2929
Section -Style Heading2 'Licensing' {
30-
Paragraph "The following table provides information for the VMware SRM licensing."
30+
Paragraph "The following table provides information about configured licensing at each site."
3131
BlankLine
3232
$OutObj = @()
3333
if ($LocalLicenseInfo) {

Src/Private/Get-AbrSRMNetworkMapping.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ function Get-AbrSRMNetworkMapping {
3333
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."
3434
Blankline
3535
}
36-
36+
3737
if ($LocalNetworkMappings) {
38-
Section -Style Heading3 -ExcludeFromTOC $($ProtectedSiteName) {
38+
Section -Style NOTOCHeading3 -ExcludeFromTOC $($ProtectedSiteName) {
3939
$OutObj = @()
4040
foreach ($ObjMap in $LocalNetworkMappings) {
4141
$inObj = [Ordered]@{
@@ -67,15 +67,15 @@ function Get-AbrSRMNetworkMapping {
6767
}
6868

6969
if ($RemoteNetworkMappings) {
70-
Section -Style Heading3 -ExcludeFromTOC $($RecoverySiteName) {
70+
Section -Style NOTOCHeading3 -ExcludeFromTOC $($RecoverySiteName) {
7171
$OutObj = @()
7272
foreach ($ObjMap in $RemoteNetworkMappings) {
7373
$inObj = [Ordered]@{
7474
'Protected Network' = Get-View $ObjMap.PrimaryObject -Server $RemotevCenter | Select-Object -ExpandProperty Name -Unique
7575
'Recovery Network' = Get-View $ObjMap.SecondaryObject -Server $LocalvCenter | Select-Object -ExpandProperty Name -Unique
7676
'Test Network' = & {
7777
if ($RemoteTestNetworkMappings | Where-Object {$_.Key -eq $ObjMap.SecondaryObject}) {
78-
Get-View (($RemoteTestNetworkMappings | Where-Object {$_.Key -eq $ObjMap.SecondaryObject}).TestNetwork) -Server $RemotevCenter
78+
Get-View (($RemoteTestNetworkMappings | Where-Object {$_.Key -eq $ObjMap.SecondaryObject}).TestNetwork) -Server $RemotevCenter
7979
} else {
8080
'Isolated network (auto created)'
8181
}

Src/Private/Get-AbrSRMPermission.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrSRMPermission {
55
.DESCRIPTION
66
Documents the configuration of VMware SRM in Word/HTML/Text formats using PScribo.
77
.NOTES
8-
Version: 0.4.0
8+
Version: 0.4.2
99
Author: Jonathan Colon & Tim Carman
1010
Twitter: @jcolonfzenpr / @tpcarman
1111
Github: @rebelinux / @tpcarman
@@ -31,11 +31,11 @@ function Get-AbrSRMPermission {
3131
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."
3232
Blankline
3333
}
34-
Paragraph "The following table provides information for the VMware SRM permissions which have been configured at each site."
34+
Paragraph "The following table provides information about the permissions which have been configured at each site."
3535
BlankLine
3636

3737
if ($LocalVIPermissions) {
38-
Section -Style Heading3 -ExcludeFromTOC $($ProtectedSiteName) {
38+
Section -Style NOTOCHeading3 -ExcludeFromTOC $($ProtectedSiteName) {
3939
$OutObj = @()
4040
foreach ($LocalVIPermission in $LocalVIPermissions) {
4141
Write-PScriboMessage "Discovered SRM Permissions $($LocalVIPermission.Name)."
@@ -63,7 +63,7 @@ function Get-AbrSRMPermission {
6363
}
6464

6565
if ($RemoteVIPermissions) {
66-
Section -Style Heading3 -ExcludeFromTOC $($RecoverySiteName) {
66+
Section -Style NOTOCHeading3 -ExcludeFromTOC $($RecoverySiteName) {
6767
$OutObj = @()
6868
foreach ($RemoteVIPermission in $RemoteVIPermissions) {
6969
Write-PScriboMessage "Discovered SRM Permissions $($RemoteVIPermission.Name)."

0 commit comments

Comments
 (0)