Smarts ASL: How do I script a Smarts ASL equivalent to the DMCTL or Perl "notify" command?
search cancel

Smarts ASL: How do I script a Smarts ASL equivalent to the DMCTL or Perl "notify" command?

book

Article ID: 304086

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How do I script a Smarts ASL equivalent to the DMCTL or Perl "notify" command?

How do I script the following DMCTL command in Smarts ASL:

dmctl -s INCHARGE-AM-PM notify Host::HostABC::DiscoveryError






The Smarts ASL equivalent to the DMCTL notify command is as follows:

hostObj = object("Host","HostABC";
notify(hostObj->DiscoveryError);

To clear the event in Smarts ASL:

hostObj = object("Host","HostABC");
clear(hostObj->DiscoveryError);