Matching Criteria can be modified from GUI, in certain use case, users would like to make dynamic modification from CLI.
Smarts - 10.1.x
Smarts-DM - 2.x
TCSA- 2.x
/root
./sm_adapter -s <APM/CM> -DobjName="S-CFG-AggregatePortsGroup/AggregatePort" -DclassName="<ClassName>" -Dvalue="<Value to be matched>" /root/modifyMatchingCriteria.asl | tee
Example:
[<Username>@<Hostname> bin]#./sm_adapter -s INCHARGE-AM-PM -DobjName="S-CFG-AggregatePortsGroup/AggregatePort" -DclassName="PrimaryOwnerContact" -Dvalue="ContactOne" /root/modifyMatchingCriteria.asl | tee
In the example, for ClassName 'PrimaryOwnerContact', matching value passed is ContactOne.
./dmctl -s INCHARGE-AM-PM get 'ICF_ConfigurationSelector::S-CFG-AggregatePortsGroup/AggregatePort::criteria'| tee
Example:
[<Username>@<Hostname> bin]#./dmctl -s INCHARGE-AM-PM get 'ICF_ConfigurationSelector::S-CFG-AggregatePortsGroup/AggregatePort::criteria'| tee
{ { CreationClassName AggregatePort } { PrimaryOwnerContact ContactOne } }