By default, grid-mapfile-check-consistency will check the gridmap file named by the GRIDMAP environment variable if present. If that variable is not set, it will check the file $HOME/.gridmap for non-root users if present. If that doesn't exist or grid-mapfile-check-consistency is run as root, it will then check /etc/grid-security/grid-mapfile. This can be changed by the use of the -mapfile or -f command-line options.
The full set of command-line options to grid-mapfile-check-consistency are:
-help, -h, -usage
-version
-mapfile MAPFILE, -f MAPFILE
Check that the gridmap file in /etc/grid-security is valid:
% grid-mapfile-check-consistency -f /etc/grid-security/grid-mapfile Checking /etc/grid-security/grid-mapfile Verifying grid mapfile existence...OK Checking for duplicate entries...OK Checking for valid user names...OK
Check a gridmap file that has an invalid local user name:
% grid-mapfile-check-consistency -f /etc/grid-security/grid-mapfile Checking /etc/grid-security/grid-mapfile Verifying grid mapfile existence...OK Checking for duplicate entries...OK ERROR: baduser is not a valid local username ERROR: Found 1 invalid username(s)
The following environment variables affect the execution of grid-mapfile-check-consistency:
GRIDMAP
The following files affect the execution of grid-mapfile-check-consistency:
$HOME/.gridmap
/etc/grid-security/grid-mapfile
grid-mapfile-add-entry(8), grid-mapfile-delete-entry(8)
University of Chicago