Nexec Probe - Unable to run .sh script

book

Article ID: 192480

calendar_today

Updated On:

Products

NIMSOFT PROBES DX Infrastructure Management

Issue/Introduction

I have configured a profile in order to run an .sh script vía nexec probe. It does fail with all execution levels. All user have read and execution permissions over the script, but even if I select "Available to all" the script is not executed. I need to run this script using nexec in order to avoid using cron.

Environment

Release : 9.0.2

Component : UIM - NEXEC

Resolution

nexec just executes programs or scripts. So if your command is -> xxx start, create a .bat or .sh on the system and put that command it in.

You can of course log to a file as well. Then have the nexec probe call the script you created (locally) on the Windows/UNIX system.

You can use a simple command, something like this as a test.

Create a new file called demo.sh using a text editor such as vi in Linux-> demo.sh

Add the following code:
#!/bin/bash
echo "Hello World"

Set the script executable permission by running chmod command in Linux: chmod +x demo.sh or just use chmod 755 demo.sh

Execute the shell script in Linux: ./demo.sh to make sure it runs.

Use that script in your nexec configuration. Make sure that the shell script is stored and referenced locally.

nexec guide attached.

Attachments

1591640071949__nexec guide.pdf get_app