laura_albrecht_automic

Filter objects and double quotes

Discussion created by laura_albrecht_automic on Jun 30, 2016
Latest reply on Jun 30, 2016 by laura_albrecht_automic
I am trying to use a Filter object to look for "S" - INCLUDING the double quotes.  It's not working.  I am trying to code up a process that will look for down agents, then retrieve the service manager information (ucybsmcl) and then issue a start command (also using ucybsmcl).  

To do that I issue the GET_PROCESS_LIST parameter to retrieve all the information for that specific port.  The results or output look like this:

"UNIX USBDSCESPA9100" "S"
"SQL SQL_ORACLE" "R" "9360" "2016-06-16 12:01" "14/05:50" "0/00:47:28.00"
"SQL SQL_SERVICE" "R" "9394" "2016-06-16 12:01" "14/05:50" "0/00:48:52.00"
"RA RA_FTP" "R" "9428" "2016-06-16 12:01" "14/05:50" "0/02:15:25.00"

The entry with "S" indicates the stopped agent.  Then you have to use the "phrase" (UNIX USBDSCESPA9100) as part of the START_PROCESS command.

ucybsmcl -c START_PROCESS -h USBDSCESPA9100:8874 -N SHIRE_DV -S "UNIX USBDSCESPA9100"

Just wondering if double quotes aren't allowed in filters.  That seems weird, but just wondering if anyone else has run into this.  Doesn't seem like I can get the PREP_PROCESS_REPORT to work to filter on double quotes either.

I suppose I could change the phrase so that it is just the agent name, but figured there's gotta be a way to do this.  Maybe I am making this too complicated.  Just trying to automate restarting downed agents using the service manager program.

Thanks.

Outcomes