Command Line Metric Examples
The sample Command Line Metric below is basically running a script locally stored on the Target Server that was delivered via Software Delivery process. It gets executed and the results are recorded and if exceeds value X then a trigger occurs.
The following sample basically returns the Disk Volume status on the target server. The diskscripts.txt was also delivered to the server using software delivery process and simply inputs into the diskpart command the parameters to List Volumes and then the command line metric records the details according to the Instance Column return.
This metric is only recording for reporting. It can also be used to trigger alarms.