...
No Format |
---|
$GROUPER_HOME/bin/gsh.sh <option> args: -h, Prints this message args: <filename>, Execute commands in specified file no args: Enters an interactive shell args: -lightWeightProfile Use alternate init script (classes/groovysh_lightWeight.profile) which has less imports and may improve startup performance args: -nocheck, Skips startup check and enters an interactive shell args: -runarg <command> Run command (use \\n to separate commands) args: -main <class> [args...] class, Full class name (must have main method) args, args as required by main method of class args: -initEnv [<configDir>] On Windows sets GROUPER_HOME and adds GROUPER_HOME/bin to path For *nix 'source gsh.sh' for the same result configDir optionally adds an alternative conf directory than GROUPER_HOME/conf to the classpath args: (-xmlimport | -xmlexport | -loader | -test | -registry | -usdu | -findbadmemberships | -ldappc | pspngAttributesToProvisioningAttributes) Enter option to get additional usage for that option -xmlimport, Invokes XmlImporter* *XML format has changed in v1.6. To import the original XML format use -xmlimportold -xmlexport, Invokes XmlExporter -loader, Invokes GrouperLoader -registry, Manipulate the Grouper schema and install bootstrap data -test, Run JUnit tests -usdu, Invoke USDU - Unresolvable Subject Deletion Utility -pspngAttributesToProvisioningAttributes Copies pspng attributes to provisioning -findbadmemberships, Check for membership data inconsistencies -ldappc, Run the grouper ldap provisioning connector to send data to ldap |
...
Command | Description |
---|---|
sqlRun(file) | Execute each line of a sql file, just like ant would. This can run the files generated by registryInitializeSchema() |
sqlRun(string) | Executes a single sql statement |
:exit | Terminate shell |
help() | Display usage information |
p(command) | Pretty print results. |
:quit | Terminate shell |
version() | Return version information |
Unresolvable subject deletion utility (USDU)
usdu finds which memberships are with subjects which cannot be found in a subject source, and prints them on the screen
- if the usdu.DELETE option is passed in, then the memberships will be deleted
- a grouper session must be open when this command is run.
For more information, see Unresolvable Subject Deletion Utility (USDU)
Command | Description |
---|---|
GrouperSession.startRootSession(); | Sample call to find all unresolvable subjects in the registry and print details to the screen |
usdu(usdu.DELETE) | Pass in that you want to delete memberships in the usdu call |
usduBySource("schoolperson") | Work only in a specific subject source, pass in the sourceId from sources.xml |
usduBySource("schoolperson", usdu.DELETE) | Work in a specific source and delete membeships |
subject=SubjectFinder.findById("GrouperSystem") | Work only with a specific member |
usduByMember(member, usdu.DELETE) | usdu by member, and delete memberships |
Find bad memberships
This command will find membership records in the database which are invalid, and prints them on the screen, along with a GSH script that will fix the memberships.
...