Update Satellite Client Profile (Description, Location, Etc) Via Command Line

Latest response

I've created a script that is ran after a system is installed. This script prompts the admin if the machine needs to be added to the domain, Satellite server, and so on.

I want to be able to prompt the user for a location. For instance "What building and room is this machine located?" When a client is registered with Red Hat Satellite server, it seems to upload its profile (system architecture and all) but with the current location info blank. I'd like to modify this profile in this script to add the location. This configuration would occur after the system has been registered with the local Satellite server.

Unfortunately, I do not know the command or location where I can do this. I've tried editing the /etc/sysconfig/rhn/systemid file and running rhn_check, but this does not seem to work. I've also tried using /usr/sbin/rhn-profile-sync but this doesn't change anything either.

Any thoughts on how to update a Satellite client's profile via command line, mostly for the location field?

Responses