Do we have any utility (script / command line utility to run automatically)to add line in metric grouping. We need to amend multiple metrics by searching a keyword and add another expression.
Note:- I have raised ticket '00253644' to CA Support and they answered 'Unfortunately we do not have any of the said utility which could amend the metric grouping expression on the run'
I need this script for TIBCO BW Agent to automatically add 'Metric Grouping Agent Expression' and 'Metric Expression' line.
I have added one line manually to monitor metric for both 'SOI-5' and 'FPIP-U'. 'SOI-5' was already there and I want to monitor 'FPIP-U' for the same metric so I added one more line as shown in attached screen shot.
I need the script to add lines on behalf of given search as I searched for 'SOI-5' then added manually for 'FPIP-U' so same should be automatically done.
I don't have a script for this. What you can do is the following:
I forgot to reply here as I was talking with the support engineer who is working on your question.
As Guenter_Grossberger stated, the only way to programmatically do this is to do it his way.
I misunderstood originally thinking you were talking about adding/modifying lines in the agent profile.