[Spacewalk-list] Clone a parent channel and make it a child
Glen Collins
glenc2004 at comcast.net
Mon Sep 29 21:58:27 UTC 2014
Ok. I don't know why I can't get it correct but for whatever reason I don't think this script can do it. But I used "spacecmd" and I was able to successfully create the child channel within the blank parent as I described below....BUT! For the life of me I cannot figure out how to use "spacecmd" in non-interactive mode. Does anyone have a sample they could pass along using spacecmd in no-interactive mode?
[root at xxxxxx bin]# spacecmd
Welcome to spacecmd, a command-line interface to Spacewalk.
Type: 'help' for a list of commands
'help <cmd>' for command-specific help
'quit' to quit
INFO: Connected to https://localhost/rpc/api as admin
spacecmd {SSM:0}> softwarechannel_clone
Source Channels:
oracle-base-channel
oracle-linux-6-x86_64
Select source channel: oracle-linux-6-x86_64
Channel Name: tuesday-oracle-linux-6-x86_64
Channel Label: tuesday-oracle-linux-6-x86_64
Base Channels:
oracle-base-channel
oracle-linux-6-x86_64
Select Parent [blank to create a base channel]: oracle-base-channel
Copy source channel GPG details? [y/N]: n
GPG URL:
GPG ID:
GPG Fingerprint:
Original State (No Errata) [y/N]: y
All the highlighted entries is what I need to feed to spacecmd. I know a while ago a patch was added to allow for non-interactive input but I think that was for new channel only and not a clone.
If anyone can assist it would be helpful!
Thanks
Glen Collins
----- Original Message -----
Hello all. I'm having some issues trying to figure out the spacewalk-clone-by-date script. Is it possible to use this script to clone a base channel into an existing parent channel as a child? Here is what my group looks like...
oel-6.x-base-x86_64 (Always kept up to sync with the Oracle ULN)
oracle-base-channel - (Zero files-Only used for base subscription)
|_______ patcheding-oel-6.x-base-x86_64 (Child channel - Cloned to current date with errata's from oel-6.x-base-x86_64)
What I am trying to do is to setup a monthly patching schedule so my systems all are patched with a certain date/time for the whole month of patching and then delete and recreate for the following month. Am I using the proper script or is there another one I'm not aware of. I've been googeling this and found a few examples but none of them work for me.
Thanks for any assistance!
Glen Collins
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140929/599100ac/attachment.htm>
More information about the Spacewalk-list
mailing list