MQ

 View Only
  • 1.  MQConsole hostname

    IBM Champion
    Posted Mon April 12, 2021 10:41 AM
    When setting up MQ Console, the host name of the server is provided via setmqweb, and this name is found in the mqwebuser.xml file, u httpHost variable.

    The dspmqweb command allows you to obtain the URLs of the console and the REST server. But these URLs do not necessarily take the value of httpHost. I often get localhost or the ip address of the server, or one of the names in the host file. Examples :

    https://localhost:9443/ibmmq/console/
    https://host.docker.internal:9443/ibmmq/console

    How to get the value of httpHost in the URL provided by dspmqweb?

    Thanks!

    ------------------------------
    --
    Luc-Michel Demey
    DEMEY CONSULTING
    lmd@demey-consulting.fr
    ------------------------------


  • 2.  RE: MQConsole hostname

    IBM Champion
    Posted Tue April 13, 2021 09:59 AM
    In the mqwebuser.xml file uncomment and hostname

    <variable name="httpHost" value="your preferred host name"/>

    It should work.

    ------------------------------
    om prakash
    WI
    ------------------------------



  • 3.  RE: MQConsole hostname

    IBM Champion
    Posted Tue April 13, 2021 10:23 AM
    Yes, it should. But apparently only if there is an unique hostname known by the server.
    I the server have more than one host name, one is taken (at random ?). How to control this ?

    ------------------------------
    Luc-Michel Demey
    DEMEY CONSULTING
    lmd@demey-consulting.fr
    ------------------------------



  • 4.  RE: MQConsole hostname

    IBM Champion
    Posted Tue April 13, 2021 03:13 PM
    The value you add to the Key, that is displayed. You can have multiple hostname/alias names.

    ------------------------------
    om prakash
    WI
    ------------------------------



  • 5.  RE: MQConsole hostname

    IBM Champion
    Posted Wed April 14, 2021 03:24 AM
    Hello,
    On my Windows workstation, here is the configuration:

    mqwebuser.xml file:
    <variable name="httpHost" value="grim"/>

    Hosts file:
    192.168.0.43 grim
    # Added by Docker Desktop
    192.168.0.43 host.docker.internal
    192.168.0.43 gateway.docker.internal
    # To allow the same kube context to work on the host and the container:
    127.0.0.1 kubernetes.docker.internal

    Result of a dspmqweb :
    URLS:
    https://host.docker.internal:9443/ibmmq/console/
    https://host.docker.internal:9443/ibmmq/rest/

    If I contact https://grim:9443/ibmmq/console, I got MQ console.

    There must be a way to display the "correct" hostname in the dspmqweb, but I haven't found it.
    Who has an idea?

    Thanks for your help.

    ------------------------------
    Luc-Michel Demey
    DEMEY CONSULTING
    lmd@demey-consulting.fr
    ------------------------------



  • 6.  RE: MQConsole hostname

    IBM Champion
    Posted Thu April 15, 2021 01:24 AM
    How about adding the host entry as

    192.168.0.43 grim host.docker.internal

    ------------------------------
    om prakash
    WI
    ------------------------------



  • 7.  RE: MQConsole hostname

    IBM Champion
    Posted Fri April 30, 2021 08:50 AM
    Its a kind of magic ... ;-)

    Two week ago, I changed my host file to :
    192.168.0.43 grim host.docker.internal
    No changes in dspmqweb, even after a restart.

    Yesterday I restarted my server, and now dspmqweb gives me :

    URLS:
    https://grim.mshome.net:9443/ibmmq/console/
    https://grim.mshome.net:9443/ibmmq/rest/

    Not perfect (.mshome.net ???) but much better.

    So it looks like Windows needs to be restarted to pickup host file changes.

    ------------------------------
    Luc-Michel Demey
    DEMEY CONSULTING
    lmd@demey-consulting.fr
    ------------------------------