본문 바로가기
HW Knowledge/Hewlett-Packard Enterprise

OneView/How remove Alert Logs from Oneview via PowerShell

by 스쳐가는인연 2022. 4. 19.

Revised: 2022-04-19

 

1. HPE Oneview Powershell library 설치
a. 사용중인 Powershell 버전 확인
PS> $host
PS> $PSVersionTable

Note. POSH 5.1 이상 필요
필요 시, Powershell 5.1 이상 설치
https://docs.microsoft.com/ko-kr/powershell/scripting/install/installing-windows-powershell?view=powershell-7
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2

b. 기존 설치 모듈 확인
PS> Get-InstalledModule

c. 필요 시 기존 Oneview POSH module 제거
e.g.) PS> Uninstall-Module -Name HPOneView.500

d. POSH 모듈 설치
Note. 5.0 이상 설치를 위해서는 Internet이 가능해야 함
PS> Install-Module -Name HPEOneView.630 -verbose

HPEOneView.630
https://psg-prod-centralus.cloudapp.net/packages/HPEOneView.630/6.30.2928.3678

e. POSH 모듈 로드
PS> Import-Module -Name HPEOneView.630 -verbose

2. Login to Oneview
PS> Connect-OVMgmt -Hostname <%Oneview_IP_Address or Hostname%> -UserName Administrator -Password <% Password %> -verbose
PS> Connect-OVMgmt -Hostname 192.168.0.1  -UserName Administrator -Password SynegyOVpwd -verbose

3. Locked 이벤트 확인 및 해제 후 재확인
a. 확인/재확인
PS> Get-OVAlert -State Locked

 

b. locked 이벤트 해제(Clear)
PS> Get-OVAlert -State Locked | Set-OVAlert -Cleared:$True

 

 

 

 

 

반응형