<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1491490319189_3564" dir="ltr"><span>thanks, this works perfectly.</span></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1491490319189_3565"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1491490319189_3569" style="display: block;">  <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1491490319189_3568"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1491490319189_3567"> <div dir="ltr" id="yui_3_16_0_ym19_1_1491490319189_3566"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1491490319189_3571"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> William H. ten Bensel <WHTENBEN@up.com><br> <b><span style="font-weight: bold;">To:</span></b> spacewalk-list@redhat.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, April 5, 2017 9:52 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Spacewalk-list] registering servers with spacewalk<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1491490319189_3573"><br><div id="yiv5528293662"><div id="yui_3_16_0_ym19_1_1491490319189_3575"><font size="2" face="sans-serif" id="yui_3_16_0_ym19_1_1491490319189_3577">Instead of re-registering each server remotely.
 Could you just switch their base channels or add/remove child channels
from the spacewalk itself?<br clear="none"><br clear="none">BASE:<br clear="none">spacecmd -q -s  myspacewalk.domain.com softwarechannel_listbasechannels<br clear="none">spacecmd -q -s myspacewalk.domain.com system_listbasechannel $myserver<br clear="none">spacecmd -q -s myspacewalk.domain.com system_setbasechannel $myserver $mynewbase
  (add -y to not prompt you)<br clear="none"><br clear="none">If you want to do this in BULK... ALL servers in a channel<br clear="none">spacecmd -q -s myspacewalk.domain.com system_setbasechannel channel:$myoldbase
$mynewbase (add -y to not prompt you)</font><div id="yui_3_16_0_ym19_1_1491490319189_3579"><font size="2" face="sans-serif" id="yui_3_16_0_ym19_1_1491490319189_3581">CHILD: <br clear="none">softwarechannel_listchildchannels<br clear="none">system_listchildchannels<br clear="none">system_addchildchannels<br clear="none">system_removechildchannels</font></div><div id="yui_3_16_0_ym19_1_1491490319189_3584"><font size="2" face="sans-serif" id="yui_3_16_0_ym19_1_1491490319189_3583">If you want to do this in BULK... ALL
servers in a channel<br clear="none">spacecmd -q -s myspacewalk.domain.com system_addchildchannels channel:$myoldchannel
$mynewchannel (add -y to not prompt you)<br clear="none">spacecmd -q -s myspacewalk.domain.com system_removechildchannels channel:$mynewchannel
$myoldchannel (add -y to not prompt you)<br clear="none"><br clear="none">Thanks and good luck</font><br clear="none"><br clear="none"><br clear="none"><br clear="none"><font size="1" color="#5f5f5f" face="sans-serif">From:      
 </font><font size="1" face="sans-serif">Elizabeth Jones <oogiejonz@yahoo.com></font><br clear="none"><font size="1" color="#5f5f5f" face="sans-serif">To:      
 </font><font size="1" face="sans-serif">"spacewalk-list@redhat.com"
<spacewalk-list@redhat.com></font></div><div class="yiv5528293662yqt0544538765" id="yiv5528293662yqtfd83007"><br clear="none"><font size="1" color="#5f5f5f" face="sans-serif">Date:      
 </font><font size="1" face="sans-serif">04/05/2017 09:37 AM</font><br clear="none"><font size="1" color="#5f5f5f" face="sans-serif">Subject:    
   </font><font size="1" face="sans-serif">[Spacewalk-list]
registering servers with spacewalk</font><br clear="none"><font size="1" color="#5f5f5f" face="sans-serif">Sent by:    
   </font><font size="1" face="sans-serif">spacewalk-list-bounces@redhat.com</font><br clear="none"></div><div class="yiv5528293662yqt0544538765" id="yiv5528293662yqtfd67274"><hr noshade=""><br clear="none"><br clear="none"><br clear="none"><font size="3">This email originated from outside of the company. Please
use discretion if opening attachments or clicking on links.</font><hr><font size="3"> </font></div><div></div><div class="yiv5528293662yqt0544538765" id="yiv5528293662yqtfd55107"><font size="2" face="Helvetica">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?</font></div><br clear="none"><br clear="none"><tt><font size="2">This email originated from outside of the company.
 Please use discretion if opening attachments or clicking on links.<br clear="none"><br clear="none">_______________________________________________<br clear="none">Spacewalk-list mailing list<br clear="none">Spacewalk-list@redhat.com<br clear="none"></font></tt><a rel="nofollow" shape="rect" target="_blank" href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><font size="2">https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a><br clear="none"><br clear="none">
<br clear="none">
<br clear="none">
**<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
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.<div class="yiv5528293662yqt0544538765" id="yiv5528293662yqtfd64214"><br clear="none">
<br clear="none">
**<br clear="none"></div></div></div>_______________________________________________<br clear="none">Spacewalk-list mailing list<br clear="none"><a shape="rect" ymailto="mailto:Spacewalk-list@redhat.com" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br clear="none"><a shape="rect" href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br><br></div> </div> </div>  </div></div></body></html>