INQUIRY: Satellite 6 remote execution of script that does not exist one remote clients
Hi,
I wonder if anyone had this challenge with Satellite 6.
I did not spend lot of time on this yet, so I am looking for lucky punt that somebody else did it.
Scenario: Run once-off a script across on remote clients from Satellite 6 server. The script does not exist on the remote clients.
It is easy to do this for a single remote command or the script that already exists on the remote clients:
# hammer job-invocation create --async --description-format "dusantest" --inputs command=uptime --job-template "Run Command - SSH Default" --search-query 'name ~ myhost'
I would like something simple that Satellite 5 had:
for list in $(spacecmd system_list | awk -F: '{print $1}')
do
spacecmd -y -- system_runscript $list -f myscript.sh
done
Has anyone dealt with similar issue? Ansible Tower is not in use.
Regards,
Dusan Baljevic (amateur radio VK2COT)