[Spacewalk-list] registering servers with spacewalk
William H. ten Bensel
WHTENBEN at up.com
Wed Apr 5 14:52:02 UTC 2017
Instead of re-registering each server remotely. Could you just switch
their base channels or add/remove child channels from the spacewalk
itself?
BASE:
spacecmd -q -s myspacewalk.domain.com softwarechannel_listbasechannels
spacecmd -q -s myspacewalk.domain.com system_listbasechannel $myserver
spacecmd -q -s myspacewalk.domain.com system_setbasechannel $myserver
$mynewbase (add -y to not prompt you)
If you want to do this in BULK... ALL servers in a channel
spacecmd -q -s myspacewalk.domain.com system_setbasechannel
channel:$myoldbase $mynewbase (add -y to not prompt you)
CHILD:
softwarechannel_listchildchannels
system_listchildchannels
system_addchildchannels
system_removechildchannels
If you want to do this in BULK... ALL servers in a channel
spacecmd -q -s myspacewalk.domain.com system_addchildchannels
channel:$myoldchannel $mynewchannel (add -y to not prompt you)
spacecmd -q -s myspacewalk.domain.com system_removechildchannels
channel:$mynewchannel $myoldchannel (add -y to not prompt you)
Thanks and good luck
From: Elizabeth Jones <oogiejonz at yahoo.com>
To: "spacewalk-list at redhat.com" <spacewalk-list at redhat.com>
Date: 04/05/2017 09:37 AM
Subject: [Spacewalk-list] registering servers with spacewalk
Sent by: spacewalk-list-bounces at redhat.com
This email originated from outside of the company. Please use discretion
if opening attachments or clicking on links.
I'm trying to set up a system where I can use remote command scripts from
spacewalk to update registration of my servers. For instance, I have all
my servers registered to a set of channels that are frozen from october
2016. I want to update them all to use a set of channels frozen from
March 2017. I can do this by sending a remote command from spacewalk with
the new activation key and using --force flag - but this creates a new
registration in spacewalk. The old one is still there. Does anyone know
of a good way to do a group update to a new activation key without needing
to go back afterward and delete the registrations with the old key?
This email originated from outside of the company. Please use discretion
if opening attachments or clicking on links.
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
**
This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170405/831f4318/attachment.htm>
More information about the Spacewalk-list
mailing list