(Click to open topic with navigation)
Synopsis
mcredctl [-d credtype[:credid]] [-h credtype:credid] [-l credtype] [-q {role|limit|profile|accessfrom|accessto|policies} credtype[:credid]] [--format=xml] [-r {stats|credits|fairshare} credtype[:credid]] [-t <STARTTIME>[,<ENDTIME>]
Overview
The mcredctl command controls various aspects about the credential objects within Moab. It can be used to display configuration, limits, roles, and relationships for various moab credential objects.
Arguments
In all cases <CREDTYPE> is one of acct, group, user, class, or qos.
In most cases it is necessary to use the --format=xml flag in order to print the output (see examples below for specific syntax requirements).
-h - HOLD | |
---|---|
Format | <TYPE>:<VAL> |
Description | Toggles whether a given credentials' jobs should be place on hold or not. |
Example |
> mcredctl -h user:john User [john] will be put on hold. |
-r - RESET | |
---|---|
Format | <TYPE> |
Description | Resets the credential within Moab. |
Example |
> mcredctl -r user:john Resets the credential of user john |
Credential Statistics XML Output
Credential statistics can be requested as XML (via the --format=xml argument) and will be written to STDOUT in the following format:
> mcredctl -q profile user --format=xml -o time:1182927600,1183013999 <Data> <user ...> <Profile ...> </Profile> </user> </Data>
Example 4-6: Deleting a group
> mcredctl -d group:john GROUPCFG[john] Successfully purged from config files
Example 4-7: List users in XML format
> mcredctl -l user --format=xml <Data><user ID="john"</user><user ID="john"></user><user ID="root"></user><user ID="dev"></user></Data>
Example 4-8: Display information about a user
> mcredctl -q role user:john --format=xml <Data><user ID="test" role="admin5"></user></Data>
Related topics