Author |
Message
|
souciance |
Posted: Tue Dec 11, 2018 2:23 pm Post subject: dmpmqcfg returns empty |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
We are trying to use dmpmqcfg command in our powershell script to take backup of all our queue managers from a remote server.
Our server has MQ installed but it does not have a connection to every queue manager.
In the script we set the MQSERVER environment variable and to the connection string we want to use and then call dmpmqcfg with -c default
On my local machine it works fine.
On our windows server with only MQ explorer 8.0.0.5 the command returns empty. No error and no result either. No logs either to indicate what could have happened.
Anyone seen this before or knows what could be the issue? |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Dec 11, 2018 4:27 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
If you manually enter the same command to backup the remote qmgr, does it work? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
souciance |
Posted: Tue Dec 11, 2018 4:36 pm Post subject: |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
bruce2359 wrote: |
If you manually enter the same command to backup the remote qmgr, does it work? |
If I run dmpmqcfg on my dev machine against the remote qmgr then it works.
If I run dmpmqcfg on the build server (windows server) against the remote qmgr I get nothing back and goes straight to prompt.
If I run dmpmqcfg on the build server against a local queue manager then it works.
So its is some issue when we are trying to connect as a client.. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Dec 12, 2018 5:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
- Do not use powershell remoting. It is not able to set the environment correctly as per setmqenv
- I would discourage the use of the MQServer variable for dmpmqcfg. Rather build the client end of the channel on the fly as per the documentation
- And you may need to use the mqccred security exit to pass the userid in the MQCSP structure
(Works like a charm for me)...
And I doubt that the return is empty. However to see the error you're getting you probably need to add to your misdirection 2>&1
And before I'd run that I would check with runmqsc to make sure the qmgr is running to avoid overwriting a good file... with and error.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
souciance |
Posted: Mon Dec 17, 2018 11:29 am Post subject: |
|
|
Disciple
Joined: 29 Jun 2010 Posts: 169
|
fjb_saper wrote: |
- Do not use powershell remoting. It is not able to set the environment correctly as per setmqenv
- I would discourage the use of the MQServer variable for dmpmqcfg. Rather build the client end of the channel on the fly as per the documentation
- And you may need to use the mqccred security exit to pass the userid in the MQCSP structure
(Works like a charm for me)...
And I doubt that the return is empty. However to see the error you're getting you probably need to add to your misdirection 2>&1
And before I'd run that I would check with runmqsc to make sure the qmgr is running to avoid overwriting a good file... with and error.
Have fun  |
It does indeed return empty and the misdirection returned also empty. We solved it by simply using powershell to login to the server from our base server and run the dmpmqcfg command then the piping the output to a file. That works. |
|
Back to top |
|
 |
|