anything in the rhn-client-tools we could use for this?

(I could see dep issues this avoids though)