HI LuCD,
I tried to excute this script and it'sworking but in output file , i am geting multiple duplicate values. Could you please fix this.
Below is the same output:
Alarm Description Enabled
Host connection and power state Default alarm to monitor host connection and power state TRUE
Host connection and power state Default alarm to monitor host connection and power state TRUE
Host connection and power state Default alarm to monitor host connection and power state TRUE
Host connection and power state Default alarm to monitor host connection and power state TRUE
vSAN health alarm 'Hosts with connectivity issues' Default alarm to monitor changes for the health test 'Hosts with connectivity issues' TRUE
vSAN health alarm 'Hosts with connectivity issues' Default alarm to monitor changes for the health test 'Hosts with connectivity issues' TRUE
vSAN health alarm 'Hosts with connectivity issues' Default alarm to monitor changes for the health test 'Hosts with connectivity issues' TRUE
vSAN health alarm 'Hosts with connectivity issues' Default alarm to monitor changes for the health test 'Hosts with connectivity issues' TRUE
vSAN health alarm 'Data health' Default alarm to monitor changes for the health group test 'Data health' TRUE
vSAN health alarm 'Data health' Default alarm to monitor changes for the health group test 'Data health' TRUE
vSAN health alarm 'Data health' Default alarm to monitor changes for the health group test 'Data health' TRUE
vSAN health alarm 'Data health' Default alarm to monitor changes for the health group test 'Data health' TRUE
Alarm Description Enabled
Host connection and power state Default alarm to monitor host connection and power state TRUE
Host connection and power state Default alarm to monitor host connection and power state TRUE
Host connection and power state Default alarm to monitor host connection and power state TRUE
Host connection and power state Default alarm to monitor host connection and power state TRUE
vSAN health alarm 'Hosts with connectivity issues' Default alarm to monitor changes for the health test 'Hosts with connectivity issues' TRUE
vSAN health alarm 'Hosts with connectivity issues' Default alarm to monitor changes for the health test 'Hosts with connectivity issues' TRUE
vSAN health alarm 'Hosts with connectivity issues' Default alarm to monitor changes for the health test 'Hosts with connectivity issues' TRUE
vSAN health alarm 'Hosts with connectivity issues' Default alarm to monitor changes for the health test 'Hosts with connectivity issues' TRUE
vSAN health alarm 'Data health' Default alarm to monitor changes for the health group test 'Data health' TRUE
vSAN health alarm 'Data health' Default alarm to monitor changes for the health group test 'Data health' TRUE
vSAN health alarm 'Data health' Default alarm to monitor changes for the health group test 'Data health' TRUE
vSAN health alarm 'Data health' Default alarm to monitor changes for the health group test 'Data health' TRUE