B.6. Channel Labels; B.7. Sample Api Script - Red Hat NETWORK SATELLITE 5.1.1 Reference Manual

Hide thumbs Also See for NETWORK SATELLITE 5.1.1:
Table of Contents

Advertisement

Appendix B. RHN API Access
follows the "=" symbol, as part of a string that resembles the following: "details.pxt?sgid=334958".
Note that the member parameter within the set_group_membership method requires only yes or
no as input to make the association.

B.6. Channel Labels

The architecture of a channel is not always clear from the channel label. Below is a list that shows the
correspondence between channel labels and the official title of the architecture they serve.
Channel Label
channel-i386-sun-solaris
channel-ia32
channel-ia64
channel-sparc
channel-alpha
channel-s390
channel-s390x
channel-iSeries
channel-pSeries
channel-x86_64
channel-ppc
channel-sparc-sun-solaris
Table B.1. Channel Labels
This is particularly necessary to know for the channel.software.create method.

B.7. Sample API Script

The following sample script depicts how to construct an RHN API client. Review the comments and
links for a full discussion of the calls made.
#!/usr/bin/perl -w
use strict;
use Frontier::Client;
use Data::Dumper;
############################################################################
# This is a sample script for use of the experimental RHN Management
APIs. #
# The API is currently available using XMLRPC only, which is described in
#
# depth at:
#
#
#
# http://www.xmlrpc.com/
#
200
Platform
i386 Solaris
IA-32
IA-64
Sparc
Alpha
IBM S/390
IBM System z
IBM eServer System i
IBM eServer System p
AMD64 and Intel EM64T
PPC
Sparc Solaris

Advertisement

Table of Contents
loading

Table of Contents