[Spacewalk-list] Antwort: Re: Any chance to get "Schedule"-Jobs running on SW-Server?

P.Cookson at bham.ac.uk P.Cookson at bham.ac.uk
Wed Jan 23 12:03:20 UTC 2019


Hi Matthias

No problem, I have NO ability to write as much as you have in a foreign language so you’re still doing far better than me☺

When Spacewalk is installed on the server osa-dispatcher will be running automatically. Scheduled tasks (including scripts initiated from Remote Command) will only be picked up every 4 hours, as mentioned below. You could possibly reduce this to minutes, rather than hours, by amending the setting in /etc/sysconfig/rhn/rhnsd. Alternatively, you can install OSAD on registered client systems and then scheduled tasks should be picked up almost immediately.

If you want to install OSAD my notes, below, may help?

osa-dispatcher
Server-side service written in Python that determines when an osad client instance needs to be pinged or run rhn_check and sends a message telling them to do so.

Open Source Architecture Daemon (OSAD)
Client-side service written in Python that responds to pings and runs rhn_check when told to by osa-dispatcher.

Install OSAD and related RHN/Spacewalk packages
# yum -y install osad rhncfg rhncfg-actions rhncfg-client

Spacewalk Actions Control - Enable Scheduled Actions
# rhn-actions-control --enable-all

Spacewalk Actions Control - Show Status
# rhn-actions-control --report

Start OSAD
# systemctl start osad.service OR service osad start

Enable OSAD
# systemctl enable osad.service OR chkconfig osad on

OSAD Log File
/var/log/osad

Regards
Phil

From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> On Behalf Of MGruber at metzler.com
Sent: 23 January 2019 11:21
To: spacewalk-list at redhat.com
Subject: [Spacewalk-list] Antwort: Re: Any chance to get "Schedule"-Jobs running on SW-Server?

Hi Phil,

thanks for your explanation, sorry, as non native english person, I had some trouble to formulate it correct....

Yes thats the way, as you describe with client systems, the way I also do it or via spacecmd, but I would like to schedule this way on my SpaceWalk-Server, not the client.
As far as I noticed there is the osa-dispatcher running but not an osad (client) therefore he (my spacewalk-server) doesnt pick the job

This was my question... (still have trouble to put it in propper english sentences ;->)

cheers
Matthias


------------------------------------------------------------------------------------
METZLER
Informationstechnologie

Matthias Gruber
IT-Infrastruktur & -Betrieb

B. Metzler seel. Sohn & Co.
Kommanditgesellschaft auf Aktien
Untermainanlage 1
60329 Frankfurt am Main
Telefon (0 69) 21 04 - 43 30
Telefax (0 69) 21 04 - 40 40
MGruber at metzler.com<mailto:MGruber at metzler.com>
www.metzler.com



Von:        "P.Cookson at bham.ac.uk<mailto:P.Cookson at bham.ac.uk>" <P.Cookson at bham.ac.uk<mailto:P.Cookson at bham.ac.uk>>
An:        "spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>" <spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>>
Datum:        23.01.2019 11:43
Betreff:        Re: [Spacewalk-list] Any chance to get "Schedule"-Jobs running        on        SW-Server?
Gesendet von:        spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>
________________________________



Hi Matthias

I’m not entirely sure what you’re asking but you can schedule scripts from the Spacewalk Web UI in the following way:

Systems > Click on system name > Remote Command - Add script details then click on Schedule

Click on Schedule top menu item to see progress of Action

Note, by default, the rhnsd daemon on a client system connects to the Spacewalk server every 4 hours (see /etc/sysconfig/rhn/rhnsd) and performs any updates or actions that you have scheduled. However, if you install the Open Source Architecture Daemon (OSAD), on the client system, updates and actions should be picked up almost immediately from the Spacewalk server.

Regards
Phil

From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com> <spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>> On Behalf Of MGruber at metzler.com<mailto:MGruber at metzler.com>
Sent: 23 January 2019 09:56
To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
Subject: [Spacewalk-list] Any chance to get "Schedule"-Jobs running on SW-Server?

Hi!

Is there any chance to Schedule-Jobs via "system_runscript" working on a SpaceWalk-Server like it works on any Client?
I know taskomatic is the "scheduler" within SpaceWalk, but that is not configurable.

At the moment I use at to schedule dynamic processes, but thats a bit "tricky"

Perhaps someone has a better solution, and not using something like obsidian or Automic?

cheers
Matthias

------------------------------------------------------------------------------------
METZLER
Informationstechnologie

Matthias Gruber
IT-Infrastruktur & -Betrieb

B. Metzler seel. Sohn & Co.
Kommanditgesellschaft auf Aktien
Untermainanlage 1
60329 Frankfurt am Main
Telefon (0 69) 21 04 - 43 30
Telefax (0 69) 21 04 - 40 40
MGruber at metzler.com<mailto:MGruber at metzler.com>
www.metzler.com


Persönlich haftende Gesellschafter: Harald Illy, Michael Klaus, Friedrich von Metzler, Emmerich Müller, Gerhard Wiesheu
Vorsitzender des Aufsichtsrats: Dr. Christoph Schücking
Sitz der Gesellschaft: Frankfurt am Main, Handelsregister-Nr. HRB 27 515

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfänger sein, so bitten wir Sie höflich, dies unverzüglich dem Absender mitzuteilen und die Nachricht zu löschen. Es ist unzulässig, die Nachricht unbefugt weiterzuleiten oder zu kopieren. Da wir nicht die Echtheit oder Vollständigkeit der in dieser Nachricht enthaltenen Informationen garantieren oder zusichern können, sind die vorstehenden Ausführungen rechtlich nicht bindend. Eine Haftung hierfür wird ausgeschlossen.
This message is confidential. If you are not the intended recipient, we kindly ask you to inform the sender and delete the information. Any unauthorised dissemination or copying hereof is prohibited. As we cannot guarantee or assure the genuineness or completeness of the information contained in this message, the statements set forth above are not legally binding. Accordingly we cannot accept any liability for their contents. _______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list




Persönlich haftende Gesellschafter: Harald Illy, Michael Klaus, Friedrich von Metzler, Emmerich Müller, Gerhard Wiesheu
Vorsitzender des Aufsichtsrats: Dr. Christoph Schücking
Sitz der Gesellschaft: Frankfurt am Main, Handelsregister-Nr. HRB 27 515

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfänger sein, so bitten wir Sie höflich, dies unverzüglich dem Absender mitzuteilen und die Nachricht zu löschen. Es ist unzulässig, die Nachricht unbefugt weiterzuleiten oder zu kopieren. Da wir nicht die Echtheit oder Vollständigkeit der in dieser Nachricht enthaltenen Informationen garantieren oder zusichern können, sind die vorstehenden Ausführungen rechtlich nicht bindend. Eine Haftung hierfür wird ausgeschlossen.
This message is confidential. If you are not the intended recipient, we kindly ask you to inform the sender and delete the information. Any unauthorised dissemination or copying hereof is prohibited. As we cannot guarantee or assure the genuineness or completeness of the information contained in this message, the statements set forth above are not legally binding. Accordingly we cannot accept any liability for their contents.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190123/bb7b31b1/attachment.htm>


More information about the Spacewalk-list mailing list