[Spacewalk-list] Antwort: Re: Antwort: Re: Any chance to get "Schedule"-Jobs running on SW-Server?
Matthias Gruber
MGruber at metzler.com
Wed Jan 23 12:45:51 UTC 2019
Hi Phil
Ohh.. thanks a lot for your notices, they are quite helpfull, but :-)
can I install an osad on the spacewalk-server, so that he can schedules
tasks on "himself"?
I tried the following, on the SW-Web-Gui:
Systems -> Seeking my Spacewalk-Server (swmain) -> Details -> Remote
Command
As skript just a "ls" or something like that and schedule in 5 mins.
Got a "Remote Command has been scheduled successfully at 1/23/19 1:34:00
PM CET. "
A look into Schedule tells me "Pending", afai understand, and I will see
it tomorrow, in max 4h he will/should execute my simple ls, and now the
part I am seeking for...
Again thats not scheduled on any client, but on the Spacewalk-Server,
where Spacewalk is running solely, pgsql, the webgui, osa-dispatcher and
all the stuff..
As I learned, the osa-dispatcher -> osad communication does the trick to
schedule it and run it at the designated time, not the 4h cycle, since the
osad runs on SW-clients, there is no trouble, (well sometimes with the
communication of osad, but thats a different topic), now the question,
could I riskfree install a osad on my swmain, there would be running
osa-dispatcher and osad on the same machine, and would he (swmain) pick
the job correctly?
Thanks again for your time
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
www.metzler.com
Von: "P.Cookson at bham.ac.uk" <P.Cookson at bham.ac.uk>
An: "spacewalk-list at redhat.com" <spacewalk-list at redhat.com>
Datum: 23.01.2019 13:03
Betreff: Re: [Spacewalk-list] Antwort: Re: Any chance to get
"Schedule"-Jobs running on SW-Server?
Gesendet von: spacewalk-list-bounces at redhat.com
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 meJ
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
www.metzler.com
Von: "P.Cookson at bham.ac.uk" <P.Cookson at bham.ac.uk>
An: "spacewalk-list at redhat.com" <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
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 <spacewalk-list-bounces at redhat.com
> On Behalf Of MGruber at metzler.com
Sent: 23 January 2019 09:56
To: 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
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
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.
_______________________________________________
Spacewalk-list mailing list
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/872fe6bb/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190123/872fe6bb/attachment.sig>
More information about the Spacewalk-list
mailing list