[rhn-users] Frequent checks for updated packages via RHN
Buchan Milne
bgmilne at staff.telkomsa.net
Mon Mar 20 13:44:44 UTC 2006
On Wednesday 22 February 2006 16:13, Clifford Perry wrote:
> I would suggest to look at using the API to do the same task. API uses
> the username/password to login and allow you to query Errata and
> packages associated with channels. Currently any time up2date runs and
> performs any type of action against RHN, it has to check-in. Since there
> are counters that monitor the rate of check-in for each system, (as you
> found out) frequent check-ins for a system cause it to be flagged as an
> abuse of service. You can avoid this by using the API for
> username/password login and queries.
>
> https://rhn.redhat.com/rpc/api/ shows the current API's available.
> There is documentation and example script usage within the RHN Reference
> Guide as well.
I finally managed to find time to look at this, but the example at
https://rhn.redhat.com/rhn/help/reference/rhn405/en/s1-rhn-api-script.jsp
uses generic hostnames. Can someone confirm the URL that should be used for
using the API in the case of no Satellite server? Using:
my $XMLRPC = 'https://rhn.redhat.com/rpc/';
print "Creating XML-RPC connection:\n";
my $client = new Frontier::Client(url => $XMLRPC );
print "Logging in:\n";
my $session = $client->call('auth.login', $username, $password);
results in:
Creating XML-RPC connection:
Logging in:
500 SSL read timeout:
However I can connect to RHN with lynx from this host (ie 'lynx
https://rhn.redhat.com'). I have also tried with:
my $XMLRPC = 'https://xmlrpc.rhn.redhat.com/XMLRPC';
which results in:
Creating XML-RPC connection:
Logging in:
Fault returned from XML RPC Server, fault code -1: While running 'auth.login':
caught
server.apacheRequest.UnknownXML : Invalid request received (class xmlrpc.auth
is not defined (function = login)).
and with:
my $XMLRPC = 'https://xmlrpc.rhn.redhat.com/';
which results in:
Creating XML-RPC connection:
Logging in:
405 Method Not Allowed
Regards,
Buchan
--
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20060320/3c029bf0/attachment.sig>
More information about the rhn-users
mailing list