Check any MQ is up or down using shell programming

Hi,
I want to know that if there are any methods, which check the MQ, is up or down. Actually I have to write one job which checks the status of any one MQ is up or down.
I don't know if there is any method of MQ, which tells the MQ, is up.
Could u please give some link for the study material of MQ series?

Thanks in advance.

Use /path/to/mq/bin/dspmq and /path/to/mq/bin/dspmqcsv. You may need to parse the output to verify that the queue managers are running.