Site Navigation


GME Command Line Utilities Reference

The command line utilities are located in the /scripts directory. Each uses the GME API to implement common GME functionality. All of the command line tools that run during service uptime take a -factory argument that allows you to specify the factory class that will be used to get handles to Mobius network services. Omitting this flag will cause the tools to use the default factory for handles. Scripts ending .bat are for Windows, .sh for *nix.

Start a GME
Starts a GME server, parsing the config file passed in. Starting a GME is a generic action, the specifics of which are determined by your config file.
Script Name: startMako
Arguments:
Path to config file (required)
Add An Authority
This program will add an authority to a GME.
Script name: addAuthority
Arguments:
-authority The service ID of the GME to add as an authority (required)
-service The service ID of the GME (required)
Add A Namespace
This program will add a namespace to a GME.
Script name: addNamespace
Arguments:
-namespace The namespace to add (required)
-service The service ID of the GME (required)
Add A Subordinate
This program will add a subordinate to a GME.
Script name: addSubordinate
Arguments:
-subordinate Service ID of the GME to be a subordinate (required)
-service Service ID for the GME (required)
Add A Subordinate Namespace
This program will add a namespace that a subordinate has authority over to a GME.
Script name: addSubordinateNamespace
Arguments:
-namespace The namespace to add (required)
-subordinate The service ID of the subordinate GME (required)
-service The service ID of the GME (required)
Get Authoritative Namespaces
This program will give you a list of the namespaces that a GME has authority over.
Script name: getAuthoritativeNamespaces
Arguments:
-service The service ID of the GME (required)
Get Authorities
This program will give you a list of Mobius Network Service Handles describing each GME that is an authority of the specified one.
Script name: getAuthorities
Arguments:
-service The service ID of the GME (required)
Get Subordinates
This program will give you a list of Mobius Network Service Handles describing each GME that is a subordinate of the specified one.
Script name: getSubordinates
Arguments:
-service The service ID of the GME (required)
Publish A Schema
This program will publish a schema to a GME.
Script name: publishSchema
Arguments:
-service The service ID of the GME (required)
-schema The xsd schema file name (required)
Requesting A Schema
This program requests a schema from a GME and prints its text to the console.
Script name: requestSchema
Arguments:
-service The service ID of the GME (required)
-uri The uri of the schema (required)
Requesting A Schema and All the Schemas it References
This program requests a schema from the GME and prints its text to the console. It also retrieves all the schemas that are referenced, and all the schemas that are referenced by the referenced schemas, ad infinitum.
Script name: getSchemaAndReferenced
Arguments:
-uri The schema URI to retrieve (required)
-service the Service ID of the GME (required)
Resolving A Namespace
This program will attempt to resolve the authority for a give namespace.
Script name: resolveNamespace
Arguments:
-namespace The namespace to resolve (required)
-service The service ID of the GME (required)
Listing Schemas For A Namespace
This program will print out a list of schema URIs for a given namespace on a GME.
Script name: schemaList
Arguments:
-namespace The namespace to get schema URIs from (required)
-service The service ID of the GME (required)
Check Status
This program will request the status of a GME and print some useful information (uptime, service descriptor, supported requests).
Script name: statusCheck
Arguments:
-service The service ID of the GME (required)
Stopping the GME
This program stops one or more GMEs.
Script name: stopGME
Arguments:
-services The service IDs of the GMEs to stop (required)
Destroying the GME
Under certain circumstances, you may wish to completly throw away the GME and all of its information and start over. This program causes the GME to drop its databases and exit, wiping out any schemata, namespace, or authority/subordinate information it may have previously held.
Script name: destroyGME
Arguments:
-services The service IDs of the GMEs to destroy (required)