Highlighted
zargaran Honored Contributor.
Honored Contributor.
638 views

how can i fix this Problem ? execute command : Failure

Jump to solution

Hi

i created a correlation rule and i want to execute a simple command after matching conditions.

my configuration is :

Execute Command: 

Platform : Linux

Command : /bin/bash

Parameters: $command

Automaticaly Run on Manager 

Also in the Manager host i have a variable $command  ( export command=/opt/arcsight/manager/bin/scripts/command.sh)

"also with full permission for arcsight user"

command.sh :

#!/bin/bash

sshpass -p P@SSw0rd ssh -t user@x.x.x.x 'cmd /c C:\Users\Almasiran\Desktop\1.mp3'

 

this command sent to a windows server and run a mp3 file after ssh authenticating via "freeSSHD Application".

Very urgent !!!

BR

Amir

 

 

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Acclaimed Contributor.. Shaun Acclaimed Contributor..
Acclaimed Contributor..

Re: how can i fix this Problem ? execute command : Failure

Jump to solution
Try adding the full path to "sshpass" in your script.
2 Replies
Acclaimed Contributor.. Shaun Acclaimed Contributor..
Acclaimed Contributor..

Re: how can i fix this Problem ? execute command : Failure

Jump to solution
Try adding the full path to "sshpass" in your script.
zargaran Honored Contributor.
Honored Contributor.

Re: how can i fix this Problem ? execute command : Failure

Jump to solution

thanks @Shaun

when i create a script with full path of sshpass , i am recieving command execution continual.

is this job Queue from past failed execution?

BR

Amir

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.