ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Problem with CONNAME

Post new topic  Reply to topic
 Problem with CONNAME « View previous topic :: View next topic » 
Author Message
rajaram
PostPosted: Wed Apr 13, 2005 4:45 am    Post subject: Problem with CONNAME Reply with quote

Acolyte

Joined: 02 Jan 2004
Posts: 53

Hi,

I am trying to create a sender channel. I am on AIX 5.3.
I tried to create it like:

DEFINE CHANNEL(SDRCH) CHLTYPE(SDR) CONNAME(xx.xx.xx.xxx('1421')).

but I am getting error
amq8405: Syntax error detected at or near end of command segment below:-
ALTER CHANNEL(SDRCH) CHLTYPE(SDR) CONNAME(xx.xx.xx.xxx(

I think my syntax is wrong here fo the conname property ..some one pls tell me how we give the conname along with the port number.

Thanks in Advance,
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed Apr 13, 2005 5:03 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Hmmmmm

Wonder why it is saying error in an alter when you are showing a define?

Having said that.....remove the quotes from around the port number....that should do it.
Back to top
View user's profile Send private message
Nigelg
PostPosted: Wed Apr 13, 2005 5:08 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Not quite...

Put quotes round the entire CONNAME. You need to make the complete attribute a string. Like this...

Quote:
CONNAME('xx.xx.xx.xxx(1421)')
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Apr 13, 2005 6:30 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And you can't define a sender channel without xmitq ...

Back to top
View user's profile Send private message Send e-mail
rajaram
PostPosted: Thu Apr 14, 2005 12:42 am    Post subject: Reply with quote

Acolyte

Joined: 02 Jan 2004
Posts: 53

Thank you all...

It worked with the settings CONNAME('xx.xx.xx.xxx(1421)') . Thanks Nigel

Sorry for the confusion regading ALTER, dEFINE AND XMITQ. It was typo.

Now, I am getting the error
-----------------------------------------------------------------------------------------
AMQ9209: Connection to host 'sys005 (xx.xx.xx.xxx)' closed.

EXPLANATION:
An error occurred receiving data from 'sys005 (xx.xx.xx.xxx)' over TCP/IP.
The connection to the remote host has unexpectedly terminated.
ACTION:
Tell the systems administrator.
-------------------------------------------------------------------------------------

I am not sure if the listener is running on the target qm. I have added the entries for listener ports in the inted.conf and services. I guess the listener should start automatically if i add the entries. How do i know if the listener is running?.
Back to top
View user's profile Send private message
Nigelg
PostPosted: Thu Apr 14, 2005 12:58 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

After adding the defs to /etc/services and /etc/inetd.conf you have to refresh the UNIX listener. On AIX you can do 'refresh inetd' if src (System Resource Controller) is running, and on all UNIX systems you can get inetd to refresh by sending signal 1 (SIGHUP) to inetd, like this:

Quote:
$ ps -ef | grep inetd
root 19350 1 0 14 Nov - 0:01 /etc/inetd.afs /etc/inetd.conf.afs
root 25950 9026 0 09:57:55 pts/4 0:00 grep inetd
root 216758 1 0 17 Mar - 0:00 /usr/sbin/inetd
$ kill -1 216758
$
Back to top
View user's profile Send private message
rajaram
PostPosted: Thu Apr 14, 2005 2:00 am    Post subject: Reply with quote

Acolyte

Joined: 02 Jan 2004
Posts: 53

thanks again Nigel.
Actually I dont haveROOT permissions to REFRESH the channel. I know the entriesare added. I also told the admin to do the refresh. I think he did that.
these are the entries that i added in inetd.conf and services file
inetd.conf
-----------
MQSeries stream tcp nowait mqm /mqmtop/bin/amqcrsta amqcrsta -m b
MQSeries2 stream tcp nowait mqm /mqmtop/bin/amqcrsta amqcrsta -m c
services
--------
MQSeries 1420/tcp
MQSeries2 1421/tcp

How do i know if the listener is running? Is there any process to know if the listener is running ?
Back to top
View user's profile Send private message
woodoo2k
PostPosted: Thu Apr 14, 2005 2:33 am    Post subject: Reply with quote

Apprentice

Joined: 07 Feb 2005
Posts: 28
Location: USA

Its not difficult.
Just run telnet with the ip and port number.
if it ends in error eg host not available, then the listener is not running.
if you get a blank screen, then connection is established.
type any thing and press enter. this will close the connection.
But you surely know that listener is running.
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Thu Apr 14, 2005 4:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

rana1976 wrote:
if it ends in error eg host not available, then the listener is not running.


Or there is a firewall rule blocking the connection, or there is not a good network route to the machine or there is some other networking failure.

Also, using telnet in this way will cause the MQServer to log an error if telnet actually connects.

This is not necessarily a bad thing, but it might surprise the MQ Admins. And surprising your MQ Admins is always a bad thing.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
woodoo2k
PostPosted: Thu Apr 14, 2005 5:14 am    Post subject: Reply with quote

Apprentice

Joined: 07 Feb 2005
Posts: 28
Location: USA

Quote:

jefflowrey wrote:
Or there is a firewall rule blocking the connection, or there is not a good network route to the machine or there is some other networking failure.


Well Thanks for pointing out these drawbacks... But if such conditions are existing, then how can you expect the Channel program to go thru. Better check these issues out BEFORE looking at the remote host for listener to be running.

cheers
Back to top
View user's profile Send private message Yahoo Messenger
PeterPotkay
PostPosted: Thu Apr 14, 2005 5:16 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Telneting is a good test, but looks like it throws a lot of errors:



From the QM Error log:
Code:

-------------------------------------------------------------------------------
04/14/2005  09:12:44
AMQ9207: The data received from host 'ITSCT1ARCL0088 (157.209.93.70)' is not
valid.

EXPLANATION:
Incorrect data format received from host 'ITSCT1ARCL0088 (157.209.93.70)' over
TCP/IP. It may be that an unknown host is attempting to send data. An FFST file
has been generated containing the invalid data received.
ACTION:
Tell the systems administrator.
----- amqccita.c : 2888 -------------------------------------------------------
04/14/2005  09:12:44
AMQ9228: The TCP/IP responder program could not be started.

EXPLANATION:
An attempt was made to start an instance of the responder program, but the
program was rejected.
ACTION:
The failure could be because either the subsystem has not been started (in this
case you should start the subsystem), or there are too many programs waiting
(in this case you should try to start the responder program later). The  reason
code was 0.
----- amqrmrsa.c : 461 --------------------------------------------------------



It also throws an FDC.

From the AMQERR01.LOG at the system level:
Code:

----- amqzuax0.c : 6207 -------------------------------------------------------
04/14/2005  09:12:43
AMQ9207: The data received from host 'ITSCT1ARCL0088 (157.209.93.70)' is not
valid.

EXPLANATION:
Incorrect data format received from host 'ITSCT1ARCL0088 (157.209.93.70)' over
TCP/IP. It may be that an unknown host is attempting to send data. An FFST file
has been generated containing the invalid data received.
ACTION:
Tell the systems administrator.
----- amqxfdcp.c : 631 --------------------------------------------------------
04/14/2005  09:12:43
AMQ6183: An internal WebSphere MQ error has occurred.

EXPLANATION:
An error has been detected, and the WebSphere MQ error recording routine has
been called. The failing process is process 2560.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center.  Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 671 --------------------------------------------------------


The FDC:
Code:

+-----------------------------------------------------------------------------+
|                                                                             |
| WebSphere MQ First Failure Symptom Report                                   |
| =========================================                                   |
|                                                                             |
| Date/Time         :- Thu April 14 09:12:44 Eastern Daylight Time 2005       |
| Host Name         :- MQIDEV01 (Windows 2000 Build 2195: Service Pack 4)     |
| PIDS              :- 5724B4100                                              |
| LVLS              :- 530.8  CSD08                                           |
| Product Long Name :- WebSphere MQ for Windows                               |
| Vendor            :- IBM                                                    |
| Probe Id          :- CO052000                                               |
| Application Name  :- MQM                                                    |
| Component         :- cciTcpReceive                                          |
| Build Date        :- Sep 22 2004                                            |
| CMVC level        :- p530-08-L040921                                        |
| Build Type        :- IKAP - (Production)                                    |
| UserID            :- MUSR_MQADMIN                                           |
| Process Name      :- E:\Programs\MQSeries\bin\AMQRMPPA.EXE                  |
| Process           :- 00002560                                               |
| Thread            :- 00000003                                               |
| Major Errorcode   :- rrcE_BAD_DATA_RECEIVED                                 |
| Minor Errorcode   :- OK                                                     |
| Probe Type        :- MSGAMQ9207                                             |
| Probe Severity    :- 2                                                      |
| Probe Description :- AMQ9207: The data received from host 'ITSCT1ARCL0088   |
|   (157.209.93.70)' is not valid.                                            |
| FDCSequenceNumber :- 0                                                      |
| Comment1          :- ITSCT1ARCL0088 (157.209.93.70)                         |
|                                                                             |
| Comment2          :- TCP/IP                                                 |
|                                                                             |
| Comment3          :-                                                        |
|                                                                             |
|                                                                             |
+-----------------------------------------------------------------------------+

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
JT
PostPosted: Thu Apr 14, 2005 2:47 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Additionally, since you're running v5.3, you should consider switching the listener from inetd.conf to a background 'runmqlsr'. This link succinctly outlines the benefits: http://www.developer.ibm.com/tech/faq/individual?oid=2:81789
Back to top
View user's profile Send private message
rajaram
PostPosted: Thu Apr 14, 2005 9:01 pm    Post subject: Reply with quote

Acolyte

Joined: 02 Jan 2004
Posts: 53

Thank You all for the valuable information. I think the entries in inetd are not refreshed. right now, i am using runmqlsr and its working fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Problem with CONNAME
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.