System information
Usin g t h e Command Lin e t o Man age Users on Satellit e 6
This example uses the hammer command to perform the same task as the previous examples. Use the
following command format:
# hammer shell
> user list
> user delete --id 4 --login example
> user create --admin true --firstname Example --lastname User --login
example --mail root@ localhost --password redhat --auth-source-id 1
An example session might appear as follows:
# hammer shell
[Foreman] password for admin:
Welcome to the hammer interactive shell
Type 'help' for usage information
hammer> user list
---|---------|--------------|---------------
ID | LOGIN | NAME | EMAIL
---|---------|--------------|---------------
4 | example | Example User | root@ localhost
3 | admin | Admin User | root@ localhost
---|---------|--------------|---------------
hammer> user delete --id 4 --login example
User deleted
hammer> user list
---|-------|------------|---------------
ID | LOGIN | NAME | EMAIL
---|-------|------------|---------------
3 | admin | Admin User | root@ localhost
---|-------|------------|---------------
hammer> user create --admin true --firstname Example --lastname User --
login example --mail root@ localhost --password redhat --auth-source-id 1
User created
hammer> user list
---|----------|--------------|---------------
ID | LOGIN | NAME | EMAIL
---|----------|--------------|---------------
3 | admin | Admin User | root@ localhost
5 | example | Example User | root@ localhost
---|----------|--------------|---------------
hammer>
Report a bug
4 .1.2. Sat ellit e 6 API T ips
This section provides some general tips to help optimize your experience with the Satellite 6 API.
Bro wsing t h e Sat ellite 6 API
Red Hat Sat ellit e 6 .0 T ransit ion G uid e
52