Appendix B. RHN API Access
my $systemid = @$systems[0]->{id};
# This next call returns a list of packages present on this system.
# syntax of this call is described at:
#
#
http://$HOST/rpc/api/system/list_packages/
#
# This will probably be a pretty long list.
my $packages = $client->call('system.list_packages', $session, $systemid);
for my $package (@$packages) {
print Dumper($package);
}
# Additional system calls are described at:
#
http://$HOST/rpc/api/system/
222
The