Author |
Message
|
krypton |
Posted: Tue Mar 28, 2017 10:02 am Post subject: Starting Queue Manager with 0.0.0.0:1415 |
|
|
 Disciple
Joined: 14 Mar 2010 Posts: 186
|
Hi, we want to setup our MQ/Queue manager with IP address specified as 0.0.0.0:1415 so that it is not tied to a particular IP address.
How can we achieved that? _________________ Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 28, 2017 10:06 am Post subject: Re: Starting Queue Manager with 0.0.0.0:1415 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
krypton wrote: |
How can we achieved that? |
Define a listener that specifies port 1415.
Tell your network people / sys admins you don't want it assigned to a particular IP address.
Once they've finished laughing, they'll tell you that (like any other process running in the box) you get whatever IP address they assign to the stack and like it.
You can't give a queue manager listener process (or any other process) an IP address. It obtains one from the OS. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
krypton |
Posted: Tue Mar 28, 2017 10:36 am Post subject: |
|
|
 Disciple
Joined: 14 Mar 2010 Posts: 186
|
there is a parameter in DEFINE LISTENER Command
IPADDR(string)
IP address for the listener specified in IPv4 dotted decimal, IPv6 hexadecimal notation, or alphanumeric host name form. If you do not specify a value for this parameter, the listener listens on all configured IPv4 and IPv6 stacks.
So, if we don't specify any value in this parameter, does it has same meaning as 0.0.0.0:1415? _________________ Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 28, 2017 11:29 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
krypton wrote: |
there is a parameter in DEFINE LISTENER Command
IPADDR(string)
IP address for the listener specified in IPv4 dotted decimal, IPv6 hexadecimal notation, or alphanumeric host name form. If you do not specify a value for this parameter, the listener listens on all configured IPv4 and IPv6 stacks.
So, if we don't specify any value in this parameter, does it has same meaning as 0.0.0.0:1415? |
Things you learn.
Given that 0.0.0.0 is the same as "OS defined IP address" then yes.
I'd be interested to know what happens if you specify an IP address that's not configured in any of the IP stacks. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Mar 28, 2017 11:43 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
IF you leave the address as 0.0.0.0 then (especially if you are on a laptop) the OS will handle the change in address when you move networks using DHCP.
If you hard code an address and the Host IP address changes then it would not be a surprise to me to that there will be an nice error in the QMGR error logs about it. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 28, 2017 12:15 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
I'd be interested to know what happens if you specify an IP address that's not configured in any of the IP stacks. |
What happens when you try it?
 _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 29, 2017 4:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
Vitor wrote: |
I'd be interested to know what happens if you specify an IP address that's not configured in any of the IP stacks. |
What happens when you try it?
 |
I'll add it to my to-do list, and report back. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|