The "(BlockExit)" part is the function to call inside the DLL. The exit is loaded when someone uses the channel. Try the following simple test procedure:
Creating a test server connection channel called "test" define the exit against that Open a DOS window set MQSERVER=test/TCP/localhost Use a tool to get or put a message to a test queue Check that the log file is created in the directory you specified in the parameter file Here is a sample parameter file: LogPath=\mqm\logs LogDrive=c: LogFormat=NDC LogFileName=MQCHANNEL LogExt=txt # # # #BlockMqmUsers=Y # # Disable using older style # #Userids=god,user1,user2 #Patterns=203.0.*.*,172.30.*.* # CON=203.0.228.*;*;MCA=mqa CON=172.30.*.*;*;MCA=dbadm This creates a log file MQCHANNEL_test_20040427.txt Hope this helps! Sid -----Original Message----- From: Benjamin F. Zhou [mailto:[EMAIL PROTECTED] Sent: Tuesday, 27 April 2004 5:42 AM To: [EMAIL PROTECTED] Subject: Re: Need help with BlokIP exit Hi Ruzi, did you figure out how to set it? I don't seem to be able to make the BlockIP2.dll get loaded. specifically, I put all the files into d:\utils\exit, and configured my SYSTEM.ADMIN.SVRCONN with scyexit('d:\utils\exit\BlockIP2(BlockExit)'), and scydata('d:\utils\exit\blck.cfg; -d') But it doesn't seem to produce any log file, so I anticipate it didn't load. Would you mind shed some light on this setting? BTW, that does this "(BlockExit)" mean? as parameter? Benjamin F. Zhou Messaging & Integration Supp. Mercedes-Benz USA (201) 573-2474 Ruzi R <[EMAIL PROTECTED] To: [EMAIL PROTECTED] OM> cc: Sent by: Subject: Re: Need help with BlokIP exit MQSeries List <[EMAIL PROTECTED] en.AC.AT> 02/24/2004 05:45 PM Please respond to MQSeries List Where is this c:\exit.log file defined? Ruzi --- Roger Lacroix <[EMAIL PROTECTED]> wrote: > Hi, > > What errors are you getting - what is in the > c:\exit.log file ?? > > The one thing that I have learned about playing with > Security Exits is that the > OS and/or the MCA can be a REAL pain. Once a DLL or shared-object is > loaded, it can stay loaded. > > Therefore, here is what I do whenever I rebuild an > exit OR change the SYCDATA > attribute of the channel. > > (1) Stop the channel with mode(force) until there > are no more connections. > (2) Copy DLL or shared-object to exit directory > (3) Make any SYCDATA changes > (4) Start the channel > (5) Run program to make a connection. > > This may sound tedious but I have banged my head > many times because a DLL or > shared-object was previously loaded and I didn't > realize it. > > P.S. I tried your example and it worked. > i.e. > SCYDATA(FN=c:\temp\Blockspec.txt;) > > > Hope that helps. > > Regards, > Roger Lacroix > Capitalware Inc. > http://www.capitalware.biz > > > Quoting Ruzi R <[EMAIL PROTECTED]>: > > > Roger, > > > > Thanks. I just downloaded the BlockIP2 and tried > again > > and it works with SCYDATA having more than one IP. > > However I still could not get the file working. > > Display of the SCYDATA is: > FN=c:\temp\Blockspec.txt; > > > > And Blockspec.txt has the following entries: > > Patterns=125.25.2.23,125.25.3.44; > > Userids=userid1,userid2; > > BlockMqmUsers=Y; > > > > Any ideas what I am missing? Anyone? > > > > Thanks. > > > > Ruzi > > > > > > --- Roger Lacroix <[EMAIL PROTECTED]> > > wrote: > > > Hi, > > > > > > You MUST put an ending semi-colon ";". > > > i.e. > > > SCYDATA(125.25.2.23;125.25.3.44;) > > > > > > Hope that helps. Also, you should use BlockIP2 > > > (more features!!) > > > > > > Regards, > > > Roger Lacroix > > > Capitalware Inc. > > > http://www.capitalware.biz > > > > > > > > > Quoting Ruzi R <[EMAIL PROTECTED]>: > > > > > > > MQ 5.3 CSD06 on Windows2000. I am trying to > test > > > > different configurations using BlockIP > security > > > exit. > > > > It works when I use only one IP (full or > partial > > > with > > > > an *) in SCYDATA. > > > > > > > > However, I could not get it to work when I > specify > > > > SCYDATA with more than one IP address like the > > > > following: > > > > > > > > 1- SCYDATA(125.25.2.23;125.25.3.44) or > > > > SCYDATA(125.25.2.*;125.25.3.*). Actually, > because > > > of > > > > the requirements, I don t want to use a > pattern > > > but > > > > specify the full IP addresses. > > > > > > > > 2- So that I can specify more IPs, I tried > using > > > FN > > > > as follows without success: > > > > SCYDATA('FN=c:\path..\Blockspec.txt;'). My Blockspec.txt is > > > > defined like this (minding my > > > commas > > > > and semicolons): > > > > > > > > Patterns=125.25.2.23,125.25.3.44; Userids=userid1,userid2; > > > > BlockMqmUsers=Y; > > > > > > > > Has anyone gotten it working using the 1st ot > 2nd > > > > method mentioned above? > > > > > > > > Many thanks in advance. > > > > > > > > Ruzi > > > > > > > > Instructions for managing your mailing list > > > subscription are provided in > > > > the Listserv General Users Guide available at > > > http://www.lsoft.com > > > > Archive: > http://vm.akh-wien.ac.at/MQSeries.archive > > > > > > > > > > Instructions for managing your mailing list > > > subscription are provided in > > > the Listserv General Users Guide available at http://www.lsoft.com > > > Archive: > http://vm.akh-wien.ac.at/MQSeries.archive > > > > Instructions for managing your mailing list > subscription are provided in > > the Listserv General Users Guide available at > http://www.lsoft.com > > Archive: http://vm.akh-wien.ac.at/MQSeries.archive > > > > Instructions for managing your mailing list > subscription are provided in > the Listserv General Users Guide available at http://www.lsoft.com > Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive