Skip to content

Commit

Permalink
System: Add Get-ArubaSWSystemStatusSwtich back...
Browse files Browse the repository at this point in the history
remove by mistake
  • Loading branch information
alagoutte committed Nov 25, 2018
1 parent 513081d commit 0ee97b5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions PowerArubaSW/Public/System.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,31 @@ function Get-ArubaSWSystemStatusCpu {
End {
}
}

function Get-ArubaSWSystemStatusSwitch {

<#
.SYNOPSIS
Get System Status Switch about ArubaOS Switch (Provision)
.DESCRIPTION
Get System Status Switch Product and Hardware info
.EXAMPLE
Get-ArubaSWSystemStatusSwitch
Get System Status Switch Product (Name / Number) and Hardware (FAN / ports) info
#>

Begin {
}

Process {

$url = "rest/v4/system/status/switch"

$response = invoke-ArubaSWWebRequest -method "GET" -url $url

$response.content | convertfrom-json
}

End {
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ Get-ArubaSWRestSessionTimeout
Get-ArubaSWRestVersion
Get-ArubaSWSystem
Get-ArubaSWSystemStatus
Get-ArubaSWSystemStatusSwitch
Get-ArubaSWVlans
Get-ArubaSWVlansPorts
Invoke-ArubaSWWebRequest
Expand Down

0 comments on commit 0ee97b5

Please sign in to comment.