6.7. Setting Gear Quotas and Sizes for Specific Users
Use the
oo-admin-ctl-user
command to set individual user gear parameters to limit the number of gears a user is allowed, and change user access to gear sizes.
On the broker host, display gear information for a user with the following command. Replace
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
username
with the relevant user name:
oo-admin-ctl-user -l username
# oo-admin-ctl-user -l usernameoo-admin-ctl-user -l username
Example 6.9.
On the broker host, limit the number of gears a user is allowed with the following command. Replace
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
username
with the relevant user name and 101
with the desired number of gears:
oo-admin-ctl-user -l username --setmaxgears 101
# oo-admin-ctl-user -l username --setmaxgears 101oo-admin-ctl-user -l username --setmaxgears 101oo-admin-ctl-user -l username --setmaxgears 101oo-admin-ctl-user -l username --setmaxgears 101
Example 6.10. Limiting a User's Number of Gears
On the broker host, add a gear size for a user with the following command. Replace
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
username
with the relevant user name and medium
with the desired gear size:
oo-admin-ctl-user -l username --addgearsize medium
# oo-admin-ctl-user -l username --addgearsize mediumoo-admin-ctl-user -l username --addgearsize mediumoo-admin-ctl-user -l username --addgearsize mediumoo-admin-ctl-user -l username --addgearsize medium
Example 6.11. Enabling a Gear Size For a User
On the broker host, remove a gear size from a user with the following command. Replace
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
username
with the relevant user name and medium
with the desired gear size:
oo-admin-ctl-user -l username --removegearsize medium
# oo-admin-ctl-user -l username --removegearsize mediumoo-admin-ctl-user -l username --removegearsize mediumoo-admin-ctl-user -l username --removegearsize mediumoo-admin-ctl-user -l username --removegearsize medium
Example 6.12. Removing a Gear Size For a User