Author |
Message
|
achocks |
Posted: Sun Aug 26, 2012 3:59 am Post subject: FileRead from Network Drive(LAN) |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
Got stuck with this...can some one please help. I am kind of new to WMB development. Searched and couldn't much information on this.
Question: I am using a FileRead Node to read a file and FileOutput node to write. My issue is, it is working fine with local drive (C:\Test). But when I change it to a network drive like (\\company.ad\Directory1) it is not finding the file (When reading). The error I get is 'cannot find the file or you do not have permission'. I checked and the file is there. But WMB is not finding it.
Am I missing something?
Has anyone used a network drive in the past with FileRead/FileOutput node?
Thanks in advance! |
|
Back to top |
|
 |
lancelotlinc |
Posted: Sun Aug 26, 2012 4:01 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
The service Id you run WMB under must have ActiveDirectory query privileges. Therefore, don't start the WMB runtime as SYSTEM or LOCALSYSTEM account. You should have your ActiveDirectory admins setup a service Id for you to use (don't use your own, or you may be locked out next time you change your password). _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
achocks |
Posted: Sun Aug 26, 2012 4:15 am Post subject: |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
Thank you so much!! Really appreciate your help! I will look in to that route. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Sun Aug 26, 2012 4:19 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Your welcome. Also be sure to check, after you get the service Id, that the service Id has read access to the network share you are trying to reach. WMB File nodes are oblivious to local or remote directories and should work either way, assuming you have the right permissions. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
achocks |
Posted: Sun Aug 26, 2012 4:29 am Post subject: |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
Sure. Will request a ID with our InfoSec team.
QQ..is there a way to see what ID it is currently using in higher environments.?
I am concerned that I might overwrite the Service ID that is already it is running under. Also do you have the command line to set the service Id?
Thank you so much! You saved at least a day!  |
|
Back to top |
|
 |
achocks |
Posted: Sun Aug 26, 2012 4:43 am Post subject: |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
Just checked the MQSIREPORTBROKER and I dont see anything.
<mqadm@uxihubt01:/home/mqadm-> mqsireportbroker MBHUBTBRKR
BIP8927I: Broker Name 'MBHUBTBRKR'
Install path = '/opt/IBM/mqsi/7.0'
Work path = '/var/mqsi'
Broker UUID = '18564320-0570-17e1-bf6c-000000000000'
Process id = '528470'
Queue Manager = 'QMT01IHUB'
User lil path = ''
User exit path = ''
Active user exits = ''
LDAP principal = ''
LDAP credentials = ''
ICU converter path = ''
Trusted (fastpath) Queue Manager application = 'false'
Configuration change timeout = '300' seconds
Internal configuration timeout = '60' seconds
Statistics major interval = '60' minutes
Operation mode = 'enterprise'
Fixpack capability level = '' (effective level '7.0.0.1')
Broker registry format = 'v7.0'
Administration security = 'inactive'
Multi-instance Broker = 'false'
Shared Work Path = 'none'
Start as WebSphere MQ Service = 'undefined'
HTTP listener port = '7080' |
|
Back to top |
|
 |
lancelotlinc |
Posted: Sun Aug 26, 2012 4:49 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Nice detective work using mqsireportbroker.
Open Services, then right click the WMB runtime service, and you will see the user id that is currently being used.
Also, update your WMB runtime to use 7.0.0.4 at least and reset your effective level. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
achocks |
Posted: Sun Aug 26, 2012 4:50 am Post subject: |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
You are awesome! Thank you so much!  |
|
Back to top |
|
 |
lancelotlinc |
Posted: Sun Aug 26, 2012 4:57 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
I just noticed your runtime is on Unix. If its Linux, you'll need to get SAMBA (or equivalent) running on Linux to access Windows Network shares. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
achocks |
Posted: Sun Aug 26, 2012 5:06 am Post subject: |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
You are correct. Except DEV , all the regions are in Linux. I will request the samba share access to the LAN folders. I think all the higher regions runs under MQADM id. I came to know that by seeing the owner of the trace files which are created in Linux. So I should request SAMBA access to the folders for the MQADM id for the higher regions to the folder I have my files..
But by DEV is in Windows. I am not seeing anything in the services. I was planning to use my ID for the DEV..Do you see any issues?
Thanks a bunch for your time!! |
|
Back to top |
|
 |
lancelotlinc |
Posted: Sun Aug 26, 2012 5:12 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Just to get it to work, you can use your own Id, but don't leave it that way. The next time you change your password, your account may get locked out. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|