Thanks all. I think we will take the API route similar to what Josh suggested.<div><br></div><div>Thanks,</div><div><br></div><div>Wayman<br><br><div class="gmail_quote">On Tue, Nov 16, 2010 at 7:37 AM,  <span dir="ltr"><<a href="mailto:Josh.Mullis@cox.com">Josh.Mullis@cox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Here's a script I have that grabs the raw config file contents...<br>
(You may want to remove the "org" stuff if you only have 1 org)<br>
<br>
I also have that grabs the custom info for a given system.<br>
Let me know if you would like that one as well.<br>
<br>
<br>
------------------------------------------------------------------------------------------------------------------<br>
#!/usr/bin/perl<br>
use Frontier::Client;<br>
<br>
my $orgname = $ARGV[0];<br>
if (!$orgname)<br>
{<br>
   print "Command Syntax:  <a href="http://spacewalk-get-cfg-file.pl" target="_blank">spacewalk-get-cfg-file.pl</a> <org_name> <config_chan> <file_path>\n";<br>
   exit;<br>
}<br>
<br>
my $cfgchan = $ARGV[1];<br>
if (!$cfgchan)<br>
{<br>
   print "Command Syntax:  <a href="http://spacewalk-get-cfg-file.pl" target="_blank">spacewalk-get-cfg-file.pl</a> $orgname <config_chan> <file_path>\n";<br>
   exit;<br>
}<br>
<br>
my $file = $ARGV[2];<br>
if (!$file)<br>
{<br>
   print "Command Syntax:  <a href="http://spacewalk-get-cfg-file.pl" target="_blank">spacewalk-get-cfg-file.pl</a> $orgname $cfgchan <file_path>\n";<br>
   exit;<br>
}<br>
<br>
<br>
my $HOST = 'localhost';<br>
my $user = "$orgname-apiuser";<br>
my $pass = 'YOUR_PASS';<br>
<br>
my $client = new Frontier::Client(url => "http://$HOST/rpc/api");<br>
my $session = $client->call('auth.login',$user, $pass);<br>
<br>
<br>
@files = ( "$file" );<br>
<br>
my $filedetails = $client->call('configchannel.lookupFileInfo', $session, $cfgchan, \@files);<br>
foreach my $filedetail (@$filedetails) {<br>
   print $filedetail->{'contents'}."\n";<br>
}<br>
<br>
<br>
<br>
$client->call('auth.logout', $session);<br>
-------------------------------------------------------------------------------------------------------------------<br>
<br>
<br>
<br>
<br>
________________________________________<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>] On Behalf Of Colin Coe [<a href="mailto:colin.coe@gmail.com">colin.coe@gmail.com</a>]<br>

Sent: Monday, November 15, 2010 7:03 PM<br>
To: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
Subject: Re: [Spacewalk-list] exporting configuration channel data<br>
<div><div></div><div class="h5"><br>
On Tue, Nov 16, 2010 at 6:48 AM, Jan Pazdziora <<a href="mailto:jpazdziora@redhat.com">jpazdziora@redhat.com</a>> wrote:<br>
> On Mon, Nov 15, 2010 at 04:59:43PM -0500, wayne smith wrote:<br>
>> Hello Spacewalk-list,<br>
>><br>
>> I am a spacewalk user, and I would like to know if there is a way to export<br>
>> configuration channel data in the same manner software channel data is<br>
>> exported?<br>
><br>
> No, exporter does not support that.<br>
><br>
> You might want to check the APIs to see if any backup / restore<br>
> functionality can be built around it.<br>
><br>
> --<br>
> Jan Pazdziora<br>
> Principal Software Engineer, Satellite Engineering, Red Hat<br>
><br>
<br>
My immediate though when I saw this post was how would (potential)<br>
macros in the config files be handled as these introduce 'uniqueness'<br>
in the files.<br>
<br>
Maybe a new API call in the configchannel namespace called<br>
'getRawFile(String sessionKey, String chanLabel, String fileName)'<br>
returning a structure similar to 'server.config.lookupFileInfo' but<br>
the 'contents' would be raw?<br>
<br>
CC<br>
<br>
--<br>
RHCE#805007969328369<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</div></div></blockquote></div><br></div>