MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  getting file from MQ running in openshift

    Posted 12/14/23 12:46 PM

    Hi Folks,

    I'm hoping someone does this and can tell me....

    I've got MQ in openshift. I've run a dmp of queue into a local file. I know need to get that file onto a local machine i.e. my laptop. 
    Does anyone have any idea how I would do that??? the MQ container has no tools installed on it eg. ftp et al. I can't seem to install any other tools on to it. So I think I'm a bit stuck !

    many thanks for any help !

    John.



    ------------------------------
    John Hawkins
    Integration Consultant
    ------------------------------


  • 2.  RE: getting file from MQ running in openshift

    Posted 12/15/23 01:48 AM

    Have you tried using WinSCP ? (use the ssh port on the MQ server)



    ------------------------------
    Francois Brandelik
    ------------------------------



  • 3.  RE: getting file from MQ running in openshift

    Posted 12/15/23 03:46 AM

    Hi John,

    You can use "oc cp" from a command line in your computer.

    First you need to login into openshift from your Terminal. Then, you just need to run a similar command to this:

    oc cp podname:/location /mylocal_location

    By example:

    oc cp myqme-ibm-mq-0:/tmp/dumpfile /home/andres/dumpfile

    In this case i have a linux directory because im using wsl2 on windows. But it could be done from powershell "oc" command.



    ------------------------------
    Andres Colodrero
    ------------------------------



  • 4.  RE: getting file from MQ running in openshift

    Posted 12/15/23 04:57 AM

    Hi John,

    Theres a couple of ways to grab files from active pods. To grab a whole directory you can use something like:

    oc rsync mqns/perf0-ibm-mq-1:/var/mqm/errors /tmp/oc
    or for individual files:
    oc cp mqns/perf0-ibm-mq-1:/var/mqm/errors/AMQERR01.LOG /tmp/error.log
    regards,
    Sam



    ------------------------------
    Sam Massey
    ------------------------------



  • 5.  RE: getting file from MQ running in openshift

    Posted 12/18/23 04:19 AM

    thanks Sam - this is my first time in openshift and I struggled to understand OC - however, once I understood the token mechanism and managed to find - it then I got the gist :-)

    cheers!
    John.



    ------------------------------
    John Hawkins
    Integration Consultant
    ------------------------------



  • 6.  RE: getting file from MQ running in openshift

    Posted 12/18/23 04:44 AM

    Next time don't use the local message dump facility but use the remote one (dmpmqmsg -c ). As long as you can access the qmgr remotely you can also dump the messages remotely...



    ------------------------------
    Francois Brandelik
    ------------------------------



  • 7.  RE: getting file from MQ running in openshift

    Posted 12/18/23 01:48 AM

    Do you have Infrared360 on-site? If you do, you can skip all those steps and dump queue info or even messages from the queue directly to a file system, either on your laptop or mapped drive ... or ... even another queue on a different qmgr (that you have access to) via the EZ browser UI. 



    ------------------------------
    Peter D'Agosta
    Product Manager
    Avada Software
    Rockaway NJ
    19737273847
    ------------------------------