To extract the contents of an InfoHub Configuration File loaded for an InfoHub, execute a command like:

$ $gtm_dist/mumps -run InfoHub --action=extract [--configuration=[0|1|2|3|..] 

This command writes the configuration to standard output. The contents of "Included" files are also in the output.

--configuration specifies the Configuration Number of the InfoHub Configuration File. InfoHub associates a unique Configuration Number with every correctly configured InfoHub Configuration File loaded for an InfoHub. When configuration is not specified or is specified as 0, InfoHub produces a historic listing of all correctly configured InfoHub Configuration Files that were loaded for an Infohub. The listing includes Configuration Numbers, location of the InfoHub Configuration Files, and the time when they were loaded on InfoHub.

To extract an InfoHub configuration file from within GT.M, invoke the following entry point in the InfoHub API as an extrinsic function:

$$extract^InfoHub(InfoHubID,0|1|2|3|..)

Example:

$ $gtm_dist/mumps -run InfoHub --action=extract
Configuration 1 was installed on 1383129299046237 from the file samples/SimpleMonitor.conf
Configuration 2 was installed on 1383132419190354 from the file samples/SimpleMonitor.conf
Configuration 3 was installed on 1383132426677351 from the file samples/SimpleMonitor.conf
GTM>if $$extract^InfoHub("11",0)

Both examples produce a historic listing of all correctly configured InfoHub Configuration Files that were loaded for an InfoHub.

loading table of contents...