Hello! I have custom DB rule for What objects with match Fields that have regular expressions. With pmgsh I get the ID=24 of this rule.
I can get with # pmgsh get config/ruledb/what/24/objects all objects from this rules.
But I can not create new rules with pmgsh.
I tried:
# pmgsh create config/ruledb/what/24/field --field "Received" --value ".*(?i)(.adsl.co.za)"
And have the Error:
no 'create' handler for 'config/ruledb/what/24/field'
I tried
# pmgsh create config/ruledb/what/24/field -field "Received" -value ".*(?i)(.adsl.co.za)"
# pmgsh create config/ruledb/what/24 -field "Received" -value ".*(?i)(.adsl.co.za)"
and have Error in both cases.
Can anyone help and explain how to create with pmgsh What object rules with key and value?
I need to import this rules with pmgsh.
I can get with # pmgsh get config/ruledb/what/24/objects all objects from this rules.
But I can not create new rules with pmgsh.
I tried:
# pmgsh create config/ruledb/what/24/field --field "Received" --value ".*(?i)(.adsl.co.za)"
And have the Error:
no 'create' handler for 'config/ruledb/what/24/field'
I tried
# pmgsh create config/ruledb/what/24/field -field "Received" -value ".*(?i)(.adsl.co.za)"
# pmgsh create config/ruledb/what/24 -field "Received" -value ".*(?i)(.adsl.co.za)"
and have Error in both cases.
Can anyone help and explain how to create with pmgsh What object rules with key and value?
I need to import this rules with pmgsh.