You can use the RHN api from python, perl, etc. and do the deletion from a script. As far as I can discern, you'd need to put your username and password for RHN into the script to make it truly unattended.

Hugh

Barry Allard wrote:
Hello. I've got an odd issue, and I'm probably doing something wrong.
How does one automatically register a box with an in-use activation key?

How does one de-register a box in an automated way as well?

Let's suppose use of rhn.redhat.com instead of a satellite server.  The "key
--skip" trick is already included in the kickstart script to avoid entering
an installation number as well.

All permutations of the following fail:

rhnreg_ks --activationkey=<hexkey> --force

rhnreg_ks --username=<username> --password=<password>
--activationkey=<in-hex> --force

Error Message:

    Registration failed: RHN Software Management service entitlements
exhausted

Error Class Code: 91

Error Class Info: Registration token unable to entitle system: maximum
membership exceeded

Explanation:

     An error has occurred while processing your request. If this problem

     persists please enter a bug report at bugzilla.redhat.com.

     If you choose to submit the bug report, please be sure to include

     details of what you were trying to do when this error occurred and

     details on how to reproduce this problem.

Kind Regards,

Barry Allard

Systems Administrator

Stanford Medical Informatics




------------------------------------------------------------------------

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to