Author |
Message
|
MiLi |
Posted: Mon Apr 14, 2008 11:39 pm Post subject: FileNodes in Broker 6.1 Cant read from network drive ? |
|
|
Acolyte
Joined: 07 Oct 2005 Posts: 51
|
I want to use the FileInput node and FileOutput node in Broker 6.1 on windows to read and write on a maped networke drive but all I get is error messages saying it cant find the path or the permissions are wrong.
Is this possible or do I have to use ftp ( not what I want to do !!! ) ??
Another remark on the FileOutput node. If I write a file test.txt to a dir it first writes it to a tmp dir and then moves it... Thats perfect, to bad it doesnt say anything about it in the help... anyway if the broker writes it to the tmp dir and then crash it will be a test.txt file left in the tmp dir. This will cause the FileOutput to always fail trying to write test.txt !!! can this be varified by someone ?
Thanks _________________ IBM Certified System Administrator - WebSphere MQ V6.0
IBM Instructor - WebSphere MQ, WebSphere Message Broker |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Apr 15, 2008 3:49 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What's the path?
Is the map created in the context of the Broker service user? Just because you map the drive while logged in as an Admin, doesn't mean that it's visible to the broker process...
There's a relatively undocumented method to add scripts to the mqsiprofile, by putting them in <MQSI-WORKPATH>\common\profiles\. On windows these need to be .cmd files, on unix they are .sh.
You can create a script here and add a script to "net use" the drive to create the mapping. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MiLi |
Posted: Tue Apr 15, 2008 11:45 pm Post subject: |
|
|
Acolyte
Joined: 07 Oct 2005 Posts: 51
|
I log on to the win system using a brkadmin user, the same user running the Broker. I map the drive in windows as Z: and then I can create and delete files on Z but when I try to do it from the broker I got the error messages. _________________ IBM Certified System Administrator - WebSphere MQ V6.0
IBM Instructor - WebSphere MQ, WebSphere Message Broker |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 16, 2008 4:25 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Okay, so you log in as the broker service user, and map the drive.
Nothing you have done there makes the drive map visible in the environment that the Broker is running in - because Broker has already started up as a background service and the drive wasn't mapped in that command shell at that time.
You should discuss this thread with your Windows administrator. She should be able to help you better understand it, and help you to map the drive in the correct way at the correct time. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
csongebalazs |
Posted: Thu Apr 17, 2008 10:25 am Post subject: |
|
|
Voyager
Joined: 30 Jan 2004 Posts: 78
|
Hi jefflowrey,
Could you write, how can we make a mapping in a right way?
I have a same problem, so I interested it very well.
Thanks
Balázs |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 17, 2008 10:27 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
csongebalazs wrote: |
Hi jefflowrey,
Could you write, how can we make a mapping in a right way?
I have a same problem, so I interested it very well. |
I think I already did. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
csongebalazs |
Posted: Fri Apr 18, 2008 12:48 am Post subject: |
|
|
Voyager
Joined: 30 Jan 2004 Posts: 78
|
Could you write more than the following?
Code: |
You should discuss this thread with your Windows administrator. She should be able to help you better understand it, and help you to map the drive in the correct way at the correct time. |
Or there is an another hyperlink, were your solution is writen more detailed?
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Fri Apr 18, 2008 1:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
csongebalazs wrote: |
Or there is an another hyperlink, were your solution is writen more detailed?
|
The Microsoft Knowledge Base has helpful information on this subject (and that's a sentance I never expected to be writing), but really you need to talk to your Windows person. Depending on how your individual site controls network drive assignment, there are a number of possible steps you could take. Some of which won't work because they don't match your setup.
Talk to the admin & get them to ensure the correct drive mapping is available to the broker. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|