The web UI can definitely do what you want regarding syncing packages. However, the APIs around synchronizing packages between systems seems to be lacking a little bit now that I look at it. The API calls to create and compare package profiles are good and spacecmd already implements those. system.scheduleSyncPackagesWithSystem could probably be used to do what you want, but the fact that you have to pass it a list of package IDs seems a little odd; I guess you would get the package list from the system you want to sync with and then pass that list, but that shouldn't really be necessary since you're already passing both system IDs.
As for errata, the way you described is probably the only way to do it. This could be implemented as a function in spacecmd and probably wouldn't be too difficult. I'll try to take a look at implementing these in spacecmd for you as they do seem useful. /aron ----- Original Message ----- From: "Marco Shaw" <[email protected]> To: [email protected] Sent: Friday, December 3, 2010 9:57:34 AM GMT -05:00 US/Canada Eastern Subject: [Spacewalk-list] spacecmd usage May be sending to rhn-satellite-users also. I'm in a particular situation where I need to get a list of packages from system A, and apply the same set of packages on system B. I'm thinking if I can manage this from the command-line using spacecmd, this will be a more efficient and repeatable process. spacecmd can list what RPMs are on a system, but doesn't seem to be able to list what errata has been applied to a system (it can only list *outstanding* errata?), so I can take that errata list, and apply that against system B. Which this last part would seem easy enough with spacecmd... I can likely dump all the packages on system A, and grep through the 'spacecmd errata_details' output to build my errata list, but I'd like to know if there's a more efficient way, than this... I don't think I could even get this applied errata list from the Satellite UI... Any ideas? Marco _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
