1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PowerCLIでvROPSのアラートを取得

Last updated at Posted at 2018-03-14

#モジュール読み込み

Import-Module VMware.VimAutomation.vROPS

#接続

  • 接続
Connect-OMServer -server <サーバ名>

-User/-Passwordは入れないと聴いてくる

  • 切断
Disconnect-OMServer -server <サーバ名>

#コマンドレット確認

Get-Command -Module VMware.VimAutomation.vROPS

#アラート出力

  • 全アラート出力
Get-OMAlert
  • 条件フィルタ入れることも可能
Get-OMAlert -Name "VM PCoIP Performance Degraded." -Criticality Critical -Impact Health
  • ワイルドカードも使用可能
Get-OMAlert -Name "*PCoIP*" -Criticality Critical -Impact Health
  • 名前でwhereしてCSV出力とかも普通にPower Shellの構文で出来る
Get-OMAlert | Where-Object {$_.Name -match "pcoip"} | Export-Csv "PATH" -Encoding Default
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?