Hi Thomas,

it seems like you‘re using SET-Fields $PROCESS$, which is used to get the 
STDOUT of the started process assigned to a field. This makes no sense as 
you’re redirecting STDOUT to /dev/null. So in this case use RUN-PROCESS instead 
of Set-Fields.
But your problem seems to be, that ssh is not in $PATH (returncode 127 
indicates this). So try to use an absolute path like /usr/bin/ssh or wherever 
your ssh client is installed.

KR Conny

Von: ARSList <[email protected]> Im Auftrag von Thomas Miskiewicz
Gesendet: Freitag, 30. August 2019 08:28
An: ARSList <[email protected]>
Betreff: Re: How to run a job on individual servers?

Hi Conny,

I setup the ssh stuff on the boxes and it work from the command line, however 
from a filter it doesn’t


Der angeforderte Prozess kann nicht ausgeführt werden. (ARERR 341)


 --> Bestanden - Aktionen durchf�hren
<FLTR> <TID: 0000000311> <RPC ID: 0000756415> <Queue: Fast      > <Client-RPC: 
390620   > <USER: Demo                                         > 
<Overlay-Group: 1         >         0 : Felder einstellen
<FLTR> <TID: 0000000311> <RPC ID: 0000756415> <Queue: Fast      > <Client-RPC: 
390620   > <USER: Demo                                         > 
<Overlay-Group: 1         >               Aktion (536870919) =
<FLTR> <TID: 0000000311> <RPC ID: 0000756415> <Queue: Fast      > <Client-RPC: 
390620   > <USER: Demo                                         > 
<Overlay-Group: 1         > /* Fr Aug 30 2019 08:10:27.4470 */ ssh 
user@o<mailto:[email protected]>ur.box 
/here_the_path/monitor_user.sh 2>/dev/null >/dev/null
<FLTR> <TID: 0000000311> <RPC ID: 0000756415> <Queue: Fast      > <Client-RPC: 
390620   > <USER: Demo                                         > 
<Overlay-Group: 1         > /* Fr Aug 30 2019 08:10:28.5390 */ Exit code: 127  
Value:
<FLTR> <TID: 0000000311> <RPC ID: 0000756415> <Queue: Fast      > <Client-RPC: 
390620   > <USER: Demo                                         > 
<Overlay-Group: 1         > /* Fr Aug 30 2019 08:10:28.5390 */ Error evaluating 
assignment for field 536870915
com.bmc.arsys.domain.process.ExternalProcessExecutionException: ERROR (341): 
Der angeforderte Prozess kann nicht ausgef�hrt werden.;
at 
com.bmc.arsys.server.domain.util.process.ExternalProcessEvaluatorFactory$ExternalProcessEvaluator.runCommand(ExternalProcessEvaluatorFactory.java:306)
 ~[bundlefile:9.1.03-SNAPSHOT]

Any idea why?


Thomas


On 21. Aug 2019, at 13:44, 
[email protected]<mailto:[email protected]> wrote:

Hi,

if you're on *x, you can do something like

RUN-PROCESS ssh server1 /path/to/your/licensetracker
RUN-PROCESS ssh server2 /path/to/your/licensetracker
RUN-PROCESS ssh server3 /path/to/your/licensetracker

within an escalation. If escalations are running on server1 it will connect via 
ssh to itself, which does not really matter.

KR Conny

-----Ursprüngliche Nachricht-----
Von: ARSList <[email protected]<mailto:[email protected]>> 
Im Auftrag von Thomas Miskiewicz
Gesendet: Mittwoch, 21. August 2019 13:21
An: ARSList <[email protected]<mailto:[email protected]>>
Betreff: Re: How to run a job on individual servers?

We're collecting license information on each individual server reading the 
user.log I’m looking for a way to trigger the action on each individual server 
without having to use a cron job.


On 21. Aug 2019, at 13:18, Tauf Chowdhury 
<[email protected]<mailto:[email protected]>> wrote:

Do you mean escalations? Also is this during a maintenance period or scheduled 
outage? You could always bring up one server at a time and that way you can 
ensure escalations are running on that server if you’re in a server group with 
the failover configured.

Sent from my iPhone


On Aug 21, 2019, at 6:50 AM, Thomas Miskiewicz 
<[email protected]<mailto:[email protected]>> wrote:

Hi there

we got three servers in the group and would like to collect information on 
every individual server. We did that in the past using a cron job but would 
prefer escalation which can be controlled by workflow. The problem is 
explanations run only on one of the three servers. Any idea how to trigger 
workflow on each individual server?


Thomas
--
ARSList mailing list
[email protected]<mailto:[email protected]>
https://mailman.rrr.se/cgi/listinfo/arslist

--
ARSList mailing list
[email protected]<mailto:[email protected]>
https://mailman.rrr.se/cgi/listinfo/arslist


--
ARSList mailing list
[email protected]<mailto:[email protected]>
https://mailman.rrr.se/cgi/listinfo/arslist

--
ARSList mailing list
[email protected]<mailto:[email protected]>
https://mailman.rrr.se/cgi/listinfo/arslist

-- 
ARSList mailing list
[email protected]
https://mailman.rrr.se/cgi/listinfo/arslist

Reply via email to