Hi all i tried this code
D:\Apps\tools\autorep\ixpautorep.exe -M sendevent -J jobname -E CHANGE_STATUS -s SUCCESS
But it shows status of event is missing and ignores success
Please help
Related
Failed to create a tmux session in a remote machine with SSHLibrary in robot framework.
Code tried -
Execute Command tmux new -s session01
Output-
20211213 12:33:37.257 : INFO : Executing command 'tmux new -s session01'.
20211213 12:33:37.348 : INFO : Command exited with return code 1.
I was able to execute in the following way -
Execute Command tmux new-session -d -s session_name 'Command To Execute'
How can I programmatically check the status of a page in my application? I'd like to be able to reboot the server if I receive a 404. Is it possible to do this on an automated basis, checking page status at 15 second intervals?
Something like
#! /bin/bash
while true; do
curl --fail --silent http://localhost/your.page >/dev/null
if [[ $? -eq 22 ]]; then
sudo reboot
fi
sleep 15
done
Check the curl man page for more details
I found many similar questions on internet but no one could resolve my problem..I am working on Solaris 5.10 machine.. Here Inside a shell script a customized command is being run like below.
palf -f ${basePath}/palf_file.DAT -e ${basePath}/LOG/palf_file.log
This command only runs while logged in as "palf" user. Now this script & subsequently this command is running perfectly from command prompt. But crontab is not able run this command.
I tried few things.. I changed the entry of my crontab file like below which could not even run the script.
40 15 * * * palf bash /opt/bin/scripts/script.sh
Then I tried to edit a cronfile as "palf" user by using the below command but it gave me "invalid options" error.
crontab -u palf -e
I also tried
crontab -e palf
It opened a crontab file but it was same as the root's crontab file not the user's specific
Nothing worked for me. Could anyone please help here? Thanks.
palf -f ${basePath}/palf_file.DAT -e ${basePath}/LOG/palf_file.log
if [[ $? -ne 0 ]]; then
logger "palf command failed. Please check..." 1
else
logger "palf command successfully executed..." 0
fi
This is how I am checking the status of palf command.. and it prints "palf command failed. Please check..." using logger function every time it runs using cronjob.
I have a job J1 which is dependent from the success of a job J0.
First time J0 failed so J1 is currently under status "failure".
This is fine.
Anyway I'd like now to reset its status so I can perform another test.
How to set J1's status from "FAILURE" to "INACTIVE", in other words its initial status?
SENDEVENT -J J1 -E CHANGE_STATUS -s INACTIVE
You can use below command. Question been asked long back, just answering so that other people can refer it !!
sendevent -E CHANGE_STATUS -s INACTIVE -J {job name}
I am new to Autosys. Is it possible to find all the running jobs on a particular server in Autosys. (Like what we are doing in TWS or other monitoring tools).
The command to show running jobs on a specific server is this:
autorep -M servername -d
- note that the servername value has to match exactly what's in the JIL.
Also the output isn't detailed like you'd get from "autorep -d -j jobname" - but then it does what you asked!
If you want the job detail you might want to use the previous suggestion. Or you could use autorep -M as I suggested to get the running jobs and pipe that list through autorep -j to get detail just for those specific jobs.
Yes you can find out the list of jobs running in autosys. Put the command in GUI as autorep -j % | find " RU ". in Unix machine use grep in place of find
autorep -M agent_name -d
autorep -M -d shows jobs that are in running on the specified node.
autorep -M machine1 -d
Machine Name Max Load Current Load Factor O/S Status
machine1 --- --- 1.00 Sys Agent Online
Current Jobs:
Job Name Machine Status Load Priority
CMD1 machine1 RUNNING 0 0
CMD2 machine1 RUNNING 0 0
autorep -I MachineName | Find "RU"