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 » IBM MQ Installation/Configuration Support » Block IP error on Solaris

Post new topic  Reply to topic
 Block IP error on Solaris « View previous topic :: View next topic » 
Author Message
mq007
PostPosted: Mon Feb 12, 2007 10:10 am    Post subject: Block IP error on Solaris Reply with quote

Newbie

Joined: 12 Feb 2007
Posts: 3

Hello,

I have downloaded blockip exit from http://www.mrmq.dk/. This is a great exit. However i am having some issues trying to set it up and running on solaris.

MQ 6.0 and Solaris 8.

The exit has been compiled successfully and configured.

Works fine if for almost all of the keywords/attributes available, except for MAXCHL. And unfortunately, this is exactly what i want to work .
I get a 2002 whenever i try to connect using the channel that is configured with the exit. Here are the sequence of steps.

Configure channel XYZ with Blockip exit.
Use a config file and specify just MAXCHL=XYZ;2; (2 channels for testing purposes)
On windows command prompt set mqserver and connect to a queue using this channel.
First and the ONLY time i try to connect, works just fine. I get a connection.
Next time i try to connect, it starts to fail with a 2002, already connected.
Even after i stop and restart the queue manager, i still get a 2002. No idea why.

Can someone help? Jørgen, i would appreciate any insights into it.

Here is the error log

2007-02-12|12:12:59|ConName is now [XXXX]
2007-02-12|12:12:59|MAX active channels set on [xyz] set to [2] Pattern used[xyz]
2007-02-12|12:12:59|======= INIT ======
2007-02-12|12:12:59|lMaxChannelActive is now 2 (before channel check)
2007-02-12|12:12:59|Entered: CheckRunningChannels
2007-02-12|12:12:59|Connect to default Qmgr TEST.
2007-02-12|12:12:59|Debug connecting to TEST. Reason=2002 hConn=2
2007-02-12|12:12:59|Connected to QueueManager [TEST]
2007-02-12|12:12:59|In openStatusQ
2007-02-12|12:12:59|Before MQOPEN status Q
2007-02-12|12:12:59|In leave openStatusQ
2007-02-12|12:12:59|Update status Q entered....
2007-02-12|12:12:59|Before MQ Get....
2007-02-12|12:12:59|CheckRunningChannels() Get... update
2007-02-12|12:12:59|Entered: getActualCurrentNumberOfRunningChannels()
2007-02-12|12:13:00|Update status Q entered....
2007-02-12|12:13:00|Before MQ Get....
2007-02-12|12:13:04|ConName is now [XXXX]
2007-02-12|12:13:04|MAX active channels set on [xyz] set to [2] Pattern used[xyz]
2007-02-12|12:13:04|======= INIT ======
2007-02-12|12:13:04|lMaxChannelActive is now 2 (before channel check)
2007-02-12|12:13:04|Entered: CheckRunningChannels
2007-02-12|12:13:04|Connect to default Qmgr TEST.
2007-02-12|12:13:04|Debug connecting to TEST. Reason=2002 hConn=2
2007-02-12|12:13:04|Connected to QueueManager [TEST]
2007-02-12|12:13:04|In openStatusQ
2007-02-12|12:13:04|Before MQOPEN status Q
2007-02-12|12:13:10|In leave openStatusQ
2007-02-12|12:13:10|Update status Q entered....
2007-02-12|12:13:10|Before MQ Get....
2007-02-12|12:13:10|CheckRunningChannels() Get... update
2007-02-12|12:13:10|Entered: getActualCurrentNumberOfRunningChannels()
2007-02-12|12:13:11|Update status Q entered....
2007-02-12|12:13:11|Before MQ Get....

Thanks in advance
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Feb 13, 2007 4:43 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Connect in one window then open another command window, set the variable and try form that one, then a third to see if you achieve the result required.

Are you also filtering by IP/Host/User?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
mq007
PostPosted: Tue Feb 13, 2007 6:27 am    Post subject: Reply with quote

Newbie

Joined: 12 Feb 2007
Posts: 3

Thanks exerk, that is exactly what i did and get the same result.
I want to do IP/Host, however, for this testing purposes i have isolated this issue to just MAXCHL.

exerk wrote:
Connect in one window then open another command window, set the variable and try form that one, then a third to see if you achieve the result required.

Are you also filtering by IP/Host/User?


On windows command prompt set mqserver and connect to a queue using this channel.
First and the ONLY time i try to connect, works just fine. I get a connection.
Next time i try to connect, it starts to fail with a 2002, already connected.
Even after i stop and restart the queue manager, i still get a 2002. No idea why.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Feb 13, 2007 6:32 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Apologies, I misinterpreted your post
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 13, 2007 6:38 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What does the queue manager show for active connections after you restart it (but before you try to reconnect)?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mq007
PostPosted: Tue Feb 13, 2007 7:04 am    Post subject: Reply with quote

Newbie

Joined: 12 Feb 2007
Posts: 3

None.
No channels running and no connections active.

jefflowrey wrote:
What does the queue manager show for active connections after you restart it (but before you try to reconnect)?


Update:
I think this has to do with the compile options. I have been reviewing the code and also the options with which this needs to be compiled and found that there are some additional command line args needed during compilation.

However, the problem is, if i use the new args i see Semaphores being created(which was the issue earlier), but now it is hanging after one connection Again. Even though the number of MAXCHL has been set to 2.

If anyone has any thoughts on how to get around this, please add your comments.

Also, if someone has compiled and used this exit successfully on Solaris with 32/64 bit, would appreciate if you can pass on the compiler options.

PS: I have not been able to compile/use using the commands specified in the manual. Neither have i been able to compile/use using Application programming refernce.

Thanks.
Back to top
View user's profile Send private message
oz1ccg
PostPosted: Wed Feb 14, 2007 6:06 am    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

Shure the compilation options that seems to work should be:

cc -xarch=v9 -xcode=abs64 -mt -G -o /var/mqm/exits64/BlockIP2 BlockIP2.c -I/opt/mqm/inc -L/opt/mqm/lib64 -R/opt/mqm/lib64 -R/usr/lib/64 -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl -DUNIX -DSOLARIS -D_REENTRANT -DHNLUP

--- Lock it or Lose it ---
_________________
Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Block IP error on Solaris
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.