KBI 312103 New Feature: Use Advanced PowerShell Script Logic in System Command Rule

Version

Argent Omega 2.2A-2307-B (Build: 2.2.2310.2) or later

Date

Monday, 2 October 2023

Summary

System Command Rule can test exit code and output of CLI process. However sometimes the user might require more complicated logic. Following are some examples:

  1. Rule is broken if output contains some strings but no other strings
  2. Rule is broken if output matches some complex pattern that requires regular expression.
  3. Rule needs some logic to parse output to get some metrics to save to Argent Forecaster.

Ability to use custom PowerShell Script is extremely useful for these complicated cases.

System Command Rule has built-in PowerShell properties and methods to access process exit code and output.

(Properties)

(Methods)

Technical Background

N/A

Resolution

Upgrade to Argent Omega 2.2A-2307-B (Build: 2.2.2310.2) or later

For further assistance, please contact Argent on Instant Help at
https://Instanthelp.Argent.com/