Monitoring (Checking) an InfoHub

To check the status of an InfoHub from the shell, execute a command like:

$ $gtm_dist/mumps -run InfoHub --action=status [--full] 

To check the status of an InfoHub from within GT.M, invoke the following entry point in the InfoHub API as an extrinsic function:

$$status^InfoHub(InfoHubID,{0|1})

0 specifies one line summary of the current status and health of the specified InfoHub and 1 is equivalent to the --full option.

Example:

$ $gtm_dist/mumps -run InfoHub --action=status 

This example displays the one line summary on the status and health of the most recent InfoHub.

GTM>if $$status^InfoHub(7421,1)
InfoHub ID      |InfoHub Name   |State
7421            |DEMO           |Running
Process listing
   10215 InfoHub       /usr/lib/fis-gtm/V6.0-002/mumps -direct InfoHub ^InfoHubMain 7421 /opt/InfoHub/InfoHub.gld
   10222   NoInfo      /usr/lib/fis-gtm/V6.0-002/mumps -direct InfoHub ^InfoHubNoInfo 7421 04261677 3 /opt/InfoHub/InfoHub.gld
   10217   Publishers  /usr/lib/fis-gtm/V6.0-002/mumps -direct InfoHub ^InfoHubPublisher 7421 321 /opt/InfoHub/InfoHub.gld
   10305    FileLine   /usr/lib/fis-gtm/V6.0-002/mumps -direct InfoHub ^InfoHubFileLine 7421 321 3 123 /opt/InfoHub/InfoHub.gld

This example displays the status of InfoHub ID 7421 and produces a process listing of InfoHub processes.

Related Information: