Interesting. That actually gives me a permission denied error on the Spacewalk server.<br><br><h1>Permission Error</h1>

<p>You do not have the appropriate permission set to access the 
requested page.  You may have reached this error page in one of several 
ways:</p>
          <ol><li>Your login session has expired.  For security reasons, Red Hat
            Network terminates your login session after 15 minutes of 
            inactivity.  To sign in again, click <a href="https://patch101.vclk.net/">here</a>.
            </li><li>You've found an error in our site. Please contact your Support representative with details of how you received this message.</li><li>Your browser does not have cookies enabled.  The Red
            Hat Network requires cookies in order to function; if you
            have disabled them, please re-enable them to use the site.
            </li><li>You've done something naughty.  Stop it.</li></ol><br><br><div class="gmail_quote">On Mon, Dec 12, 2011 at 2:08 AM, Tomas Lestach <span dir="ltr"><<a href="mailto:tlestach@redhat.com">tlestach@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Friday 09 of December 2011 09:23:03 Mark wrote:<br>
> Hey all - I'm trying to use the dell-satellite-sync tool, but Spacewalk is<br>
> balking at the scheduleScriptRun calls. I made a smaller, POC script and it<br>
> dies in the same way: "Fault returned from XML RPC Server, fault code 2401:<br>
> redstone.xmlrpc.XmlRpcFault: Missing capability".  Anyone know what could<br>
> be causing this and how to remedy it? We're on Spacewalk 1.5.<br>
<br>
</div>I'd say, your client isn't Remote Command execution capable.<br>
Check, if you can schedule remote commands via WebUI:<br>
/network/systems/details/remote_commands.pxt?sid=<sid><br>
<br>
Regards,<br>
Tomas<br>
<span class="HOEnZb"><font color="#888888">--<br>
Tomas Lestach<br>
RHN Satellite Engineering, Red Hat<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> Script:<br>
><br>
> #!/usr/bin/perl -w<br>
><br>
> use strict;<br>
> use Frontier::Client;<br>
> use POSIX qw(strftime);<br>
><br>
><br>
> my $HOST = 'hostname';<br>
> my $client = new Frontier::Client(url => "http://$HOST/rpc/api", debug=>1);<br>
> my $session = $client->call('auth.login', 'username', 'password');<br>
><br>
> my $system = "1000012345";<br>
> my $user = "root";<br>
> my $group = "root";<br>
> my $script = "#!/bin/sh<br>
> echo FOO";<br>
> my $date = $client->date_time(strftime("%Y%m%dT%H:%M:%S",<br>
> localtime(time()+60)));<br>
><br>
> $client->call("system.scheduleScriptRun", $session, $system, $user, $group,<br>
> 10, $script, $date);<br>
><br>
> Result:<br>
><br>
> ---- request ----<br>
> <?xml version="1.0"?><br>
> <methodCall><br>
> <methodName>auth.login</methodName><br>
> <params><br>
> <param><value><string>username</string></value></param><br>
> <param><value><string>password</string></value></param><br>
> </params><br>
> </methodCall><br>
> ---- response ----<br>
> <?xml version="1.0"<br>
> encoding="UTF-8"?><methodResponse><params><param><value><string>102695xd5bc0<br>
> 9aa765f23f1c952e66dcd2814cf</string></value></param></params></methodRespons<br>
> e>---- request ----<br>
> <?xml version="1.0"?><br>
> <methodCall><br>
> <methodName>system.scheduleScriptRun</methodName><br>
> <params><br>
> <param><value><string>102695xd5bc09aa765f23f1c952e66dcd2814cf</string></valu<br>
> e></param> <param><value><i4>1000012345</i4></value></param><br>
> <param><value><string>root</string></value></param><br>
> <param><value><string>root</string></value></param><br>
> <param><value><i4>10</i4></value></param><br>
> <param><value><string>#!/bin/sh<br>
> echo FOO</string></value></param><br>
> <param><value><dateTime.iso8601>20111209T09:22:45</dateTime.iso8601></value><br>
> </param><br>
> </params><br>
> </methodCall><br>
> ---- response ----<br>
> Fault returned from XML RPC Server, fault code 2401:<br>
> redstone.xmlrpc.XmlRpcFault: Missing capability<br>
> <?xml version="1.0"<br>
> encoding="UTF-8"?><methodResponse><fault><value><struct><member><name>faultC<br>
> ode</name><value><int>2401</int></value></member><member><name>faultString</<br>
> name><value><string>redstone.xmlrpc.XmlRpcFault: Missing<br>
> capability</string></value></member></struct></value></fault></methodRespons<br>
> e><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Writing Calisthenics : <a href="http://blog.markjuric.com">http://blog.markjuric.com</a><br>