KBI 312297 - How To Use Relator Parameters And Generic LINUX/Unix Script Rule

Version

Argent Omega all versions


Date

Thursday, September 18, 2025


Summary

A typical LINUX/Unix Script Rule tests some performance metrics and compares with a threshold.

Take SCP_LINUX_JUST_REBOOT as example, it compares minutes since last reboot with some threshold for the condition. Though the threshold can be hardcoded in the script, the user must create two separate Rules if one is for being just rebooted for 30 minutes, the other for one hour. This can be simplified using Relator parameters and a generic LINUX/Unix Script Rule.

The key is that Argent Omega Generator replaces keywords in the format of ‘{{some keyword}} in script with the correspondent value specified in Relator parameters before executing the Rule.

 

The above example contains keyword ‘threshold_minutes’ in the format of ‘{<threshold_minutes>}’. Argent Omega Generator replaces it with the actual value specified in Relator parameters.

 

The parameters are specified in JSON format so that multiple parameters can be used.

Note: Testing of Relator with parameters is not working up to Argent Omega 2.2A-2507-B.

It has been corrected in Argent Omega 2.2A-2510-A or later.



Technical Background

N/A



Resolution

N/A