Skip to content

Commit b63b5e7

Browse files
committed
Implement single session to Ontap Array
1 parent 97da48c commit b63b5e7

File tree

95 files changed

+209
-209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+209
-209
lines changed

Src/Private/Get-AbrOntapCluster.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ function Get-AbrOntapCluster {
2323
}
2424

2525
process {
26-
$ClusterInfo = Get-NcCluster
26+
$ClusterInfo = Get-NcCluster -Controller $Array
2727
if ($ClusterInfo) {
28-
$ClusterDiag = Get-NcDiagnosisStatus
29-
$ClusterVersion = Get-NcSystemVersion
30-
$ArrayAggr = Get-NcAggr
31-
$ArrayVolumes = Get-NcVol
28+
$ClusterDiag = Get-NcDiagnosisStatus -Controller $Array
29+
$ClusterVersion = Get-NcSystemVersion -Controller $Array
30+
$ArrayAggr = Get-NcAggr -Controller $Array
31+
$ArrayVolumes = Get-NcVol -Controller $Array
3232
$ClusterSummary = [PSCustomObject] @{
3333
'Cluster Name' = $ClusterInfo.ClusterName
3434
'Cluster UUID' = $ClusterInfo.ClusterUuid

Src/Private/Get-AbrOntapClusterASUP.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function Get-AbrOntapClusterASUP {
2323
}
2424

2525
process {
26-
$AutoSupport = Get-NcAutoSupportConfig
26+
$AutoSupport = Get-NcAutoSupportConfig -Controller $Array
2727
if ($AutoSupport) {
2828
$AutoSupportSummary = foreach ($NodesAUTO in $AutoSupport) {
2929
[PSCustomObject] @{

Src/Private/Get-AbrOntapClusterHA.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ function Get-AbrOntapClusterHA {
2323
}
2424

2525
process {
26-
$NodeSum = Get-NcNode | Where-Object { $null -ne $_.NodeModel }
26+
$NodeSum = Get-NcNode -Controller $Array | Where-Object { $null -ne $_.NodeModel }
2727
if ($NodeSum) {
2828
$NodeSummary = foreach ($Nodes in $NodeSum) {
29-
$ClusterHa = Get-NcClusterHa -Node $Nodes.Node
29+
$ClusterHa = Get-NcClusterHa -Node $Nodes.Node -Controller $Array
3030
[PSCustomObject] @{
3131
'Name' = $Nodes.Node
3232
'Partner' = $ClusterHa.Partner

Src/Private/Get-AbrOntapClusterLicense.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ function Get-AbrOntapClusterLicense {
2323
}
2424

2525
process {
26-
$Nodes = Get-NcNode
26+
$Nodes = Get-NcNode -Controller $Array
2727
foreach ($Node in $Nodes) {
2828
Section -Style Heading3 "$Node License Usage Summary" {
2929
Paragraph "The following section provides per node installed licenses on $($ClusterInfo.ClusterName)."
3030
BlankLine
31-
$License = Get-NcLicense -Owner $Node
31+
$License = Get-NcLicense -Owner $Node -Controller $Array
3232
if ($License) {
3333
$LicenseSummary = foreach ($Licenses in $License) {
34-
$EntitlementRisk = Get-NcLicenseEntitlementRisk -Package $Licenses.Package
34+
$EntitlementRisk = Get-NcLicenseEntitlementRisk -Package $Licenses.Package -Controller $Array
3535
[PSCustomObject] @{
3636
'License' = $TextInfo.ToTitleCase($Licenses.Package)
3737
'Type' = $TextInfo.ToTitleCase($Licenses.Type)

Src/Private/Get-AbrOntapClusterLicenseUsage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function Get-AbrOntapClusterLicenseUsage {
2323
}
2424

2525
process {
26-
$LicenseFeature = Get-NcFeatureStatus
26+
$LicenseFeature = Get-NcFeatureStatus -Controller $Array
2727
if ($LicenseFeature) {
2828
$LicenseFeature = foreach ($NodeLFs in $LicenseFeature) {
2929
[PSCustomObject] @{

Src/Private/Get-AbrOntapDiskAssign.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function Get-AbrOntapDiskAssign {
2323
}
2424

2525
process {
26-
$NodeDiskCount = get-ncdisk | ForEach-Object{ $_.DiskOwnershipInfo.HomeNodeName } | Group-Object
26+
$NodeDiskCount = get-ncdisk -Controller $Array | ForEach-Object{ $_.DiskOwnershipInfo.HomeNodeName } | Group-Object
2727
if ($NodeDiskCount) {
2828
$DiskSummary = foreach ($Disks in $NodeDiskCount) {
2929
[PSCustomObject] @{

Src/Private/Get-AbrOntapDiskBroken.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function Get-AbrOntapDiskBroken {
2323
}
2424

2525
process {
26-
$NodeDiskBroken = Get-NcDisk | Where-Object{ $_.DiskRaidInfo.ContainerType -eq "broken" }
26+
$NodeDiskBroken = Get-NcDisk -Controller $Array | Where-Object{ $_.DiskRaidInfo.ContainerType -eq "broken" }
2727
if ($NodeDiskBroken) {
2828
$DiskFailed = foreach ($DiskBroken in $NodeDiskBroken) {
2929
[PSCustomObject] @{

Src/Private/Get-AbrOntapDiskInv.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ function Get-AbrOntapDiskInv {
2323
}
2424

2525
process {
26-
$DiskInv = Get-NcDisk
27-
$NodeDiskBroken = Get-NcDisk | Where-Object{ $_.DiskRaidInfo.ContainerType -eq "broken" }
26+
$DiskInv = Get-NcDisk -Controller $Array
27+
$NodeDiskBroken = Get-NcDisk -Controller $Array | Where-Object{ $_.DiskRaidInfo.ContainerType -eq "broken" }
2828
if ($DiskInv) {
2929
$DiskInventory = foreach ($Disks in $DiskInv) {
30-
$DiskType = Get-NcDisk -Name $Disks.Name | ForEach-Object{ $_.DiskInventoryInfo }
30+
$DiskType = Get-NcDisk -Controller $Array -Name $Disks.Name | ForEach-Object{ $_.DiskInventoryInfo }
3131
$DiskFailed = $NodeDiskBroken | Where-Object { $_.'Name' -eq $Disks.Name }
3232
if ($DiskFailed.Name -eq $Disks.Name ) {
3333
$Disk = " $($DiskFailed.Name)(*)"

Src/Private/Get-AbrOntapDiskOwner.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Get-AbrOntapDiskOwner {
3030
process {
3131
if ($Node) {
3232
$DiskSummary = foreach ($Owner in $Node) {
33-
$DiskOwner = Get-NcDiskOwner -Node $Owner
33+
$DiskOwner = Get-NcDiskOwner -Node $Owner -Controller $Array
3434
foreach ($Disk in $DiskOwner) {
3535
[PSCustomObject] @{
3636
'Disk' = $Disk.Name

Src/Private/Get-AbrOntapDiskShelf.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ function Get-AbrOntapDiskShelf {
2323
}
2424

2525
process {
26-
$NodeSum = Get-NcNode
26+
$NodeSum = Get-NcNode -Controller $Array
2727
if ($NodeSum) {
2828
$ShelfInventory = foreach ($Nodes in $NodeSum) {
29-
$Nodeshelf = Get-NcShelf -NodeName $Nodes.Node
29+
$Nodeshelf = Get-NcShelf -NodeName $Nodes.Node -Controller $Array
3030
if ($Nodeshelf) {
3131
[PSCustomObject] @{
3232
'Node Name' = $Nodeshelf.NodeName

0 commit comments

Comments
 (0)