Operating System - HP-UX
1833874 Members
2253 Online
110063 Solutions
New Discussion

How can I map windows directory into HPUX system?

 
SOLVED
Go to solution
cbozlagan
Regular Advisor

How can I map windows directory into HPUX system?

How can I map windows directory into HPUX system?

I need to access windows folder from application installed on HPUX.
21 REPLIES 21
Geoff Wild
Honored Contributor

Re: How can I map windows directory into HPUX system?

With smbclient.

man smbclient for more info.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Marco A.
Esteemed Contributor

Re: How can I map windows directory into HPUX system?

You need to install CIFS in your hpux box to achieve that, that's samba.
Samba allows the communication between windows and unix systems.

Rgds,
Just unplug and plug in again ....
Rita C Workman
Honored Contributor
Solution

Re: How can I map windows directory into HPUX system?

What we do is use SAMBA.

So first set up a SAMBA share in the /etc/opt/samba/smb.conf file

Then from Windows:
Start/Expore/Tools/Map Network Drive
Pick an available mapdrive in top white box and in Folder box put in path:
\\\

Bear in mind you must be able to resolve via DNS the server or package name. And obviously you would have to have some knowledge on setting up SAMBA shares. So do a search here for more details.
This just gave a quick start.......

Rgrds,
Rita
Marco A.
Esteemed Contributor

Re: How can I map windows directory into HPUX system?

In addition ... this is the CIFS guide.

http://docs.hp.com/en/B8725-90103/B8725-90103.pdf

you can find more info at www.docs.hp.com

Best regards,

Marco
Just unplug and plug in again ....
cbozlagan
Regular Advisor

Re: How can I map windows directory into HPUX system?

Hi all,

How can I check if samba was installed in my HPUX system?

Thanks
Rita C Workman
Honored Contributor

Re: How can I map windows directory into HPUX system?

How's about:

swlist | grep -i cifs

SAMBA is part of CIFS. Quickest check is go to /opt and see if SAMBA is there.

Rgrds,
Rita
Marco A.
Esteemed Contributor

Re: How can I map windows directory into HPUX system?

You can try by using the following command .:

swlist -l product | grep -i samba CIFS

Hope this helps,

Marco
Just unplug and plug in again ....
cbozlagan
Regular Advisor

Re: How can I map windows directory into HPUX system?

I found SAMBA folder in /opt.
I need quick knowledge to map win folder into my HPUX.I have no time to read 164 pages SAMBA document.

For quick guideness I gave information below
--------------------------------------------
Win computer name:brckxidb
Win computer ip:10.4.5.132
Win.folder(shared to everyone): c:\xml_BXD

HPUX name:brckxits
HPUX ip:10.4.5.14

Step by step mapping into HPUX?

Thanks.
Marco A.
Esteemed Contributor

Re: How can I map windows directory into HPUX system?

Is the smbd process runnind, if not that's the first step!...

/sbin/init.d/smb start ...

Try that and post results ...
Just unplug and plug in again ....
cbozlagan
Regular Advisor

Re: How can I map windows directory into HPUX system?

Hi Marco,

>/sbin/init.d/samba start
>

Ok now starting.
Geoff Wild
Honored Contributor

Re: How can I map windows directory into HPUX system?

Okay - if this is to be mounted, then:

install smbclient (as you need smbmount)
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8724AA


mkdir -p /mnt/xml_BXD

smbmount //brckxidb/xml_BXD /mnt/xml_BXD

or is password needed:
smbmount //brckxidb/xml_BXD /mnt/xml_BXD -o username=mywindowsusername,password=mywindowspassword


Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: How can I map windows directory into HPUX system?

Strange - seems smbmount is not available for HPUX....

So hold my thought...
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rita C Workman
Honored Contributor

Re: How can I map windows directory into HPUX system?

Hello again cbozlagan,

It is a snap once you have it started up. But there are some considerations when starting it. Security for one. Just how much do you plan on or plan to avoid.
I circumvent alot of security, since our folks have already jumped through hoops and this is strictly internal. But you may not want to do that.
And there are a number of things you need to do in the smb.conf file. First make a backup copy of your original.
Creating the actual share is fairly easy....starting it up requires you knowledge of internal IP's & your appl needs (is it read only, what privileges are you granting, etc.).

The share portion MIGHT look like this:
[xml_BXD]
comment = Windows connection to brckxits
path = /
public = yes
browseable = yes
: valid users = %u
writeable = yes
guest ok = yes

Your Folders line on Windows map would be:

\\brckxits\xml_BXD

Notice I said MIGHT, and you will note I gave write permissions and guest permissions, which you might not want.
Like I said, there are many other things in the beginning of the smb.conf that you need to understand and configure.

Sorry but you have to take the time to set it up right first for your shop..

Rita

Geoff Wild
Honored Contributor

Re: How can I map windows directory into HPUX system?

Hey Rita - the poster want to mount a windows share on the HP-UX box - not the other way around...

I think he will have to install something like sharity - or sharity-light:

http://www.obdev.at/products/sharity-light/index.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rita C Workman
Honored Contributor

Re: How can I map windows directory into HPUX system?

Hey Geoff,

Sorry....I read it map from Windows to HPUX.

Rgrds,
Rita
cbozlagan
Regular Advisor

Re: How can I map windows directory into HPUX system?

Hi Geoff,

I did--> /sbin/init.d/samba start

must I do --> /sbin/init.d/smb start

I didn't find smb command

And
I did -->mkdir -p /mnt/xml_BXD

is install smbclient a command or comment?

I tried to execute command below and I got
command not found message

smbmount //brckxidb/xml_BXD /mnt/xml_BXD

Maybe samba wasn't installed properly.

I think I must do some checking if samba properly installed.

Thanks for your helps.
Rita C Workman
Honored Contributor

Re: How can I map windows directory into HPUX system?

To start SAMBA you could just run:

/opt/samba/bin/startsmb

No spaces "startsmb".

To stop = stopsmb
To check status = smbstatus

Regards,
Rita

One other note: Each SAMBA connection creates several open files. So, just in case, you may need to make sure your nfile is of a sufficient setting to handle the increase. nfile will not take up too much memory. It just creates the door so lousy programs could open alot. So keep an eye on things.


cbozlagan
Regular Advisor

Re: How can I map windows directory into HPUX system?

Hi Rita,

startsmb is ok.


Mounting the win.shared folder int HP folder?

mounting method for samba?

Thanks
Hein van den Heuvel
Honored Contributor

Re: How can I map windows directory into HPUX system?


Perhaps also consider NFS
Much more Unix-like.

Google for +nfs +site:microsoft.com

Check out "Windows Services for UNIX 3.0"
http://support.microsoft.com/kb/324086

hth,
Hein.
Rita C Workman
Honored Contributor

Re: How can I map windows directory into HPUX system?

Hi again,

One last thing....I'm not a big fan of setting up Windows share whereby the Windows servers becomes the NFS-Server and HPUX becomes the client attaching. Here with some software we had, this connection kept getting hosed up. So the client (HPUX) gets stuck. Now, like I said it could have just been the software, but to unstick the box as quick as possible, I wound up having to stop prod and reboot. Something that I don't like to do unscheduled.
Which is why when we use SAMBA we work to keep the HPUX box as the 'server' and the Windows folks as the 'clients. That way when something gets to choke or hosed up - we have better controls.

..ok...stepping off my soap box...yes I know others will say it's not a problem, and things could be cleaned up without a reboot......guess like most women & HPUX Admin's (ha ha)- I prefer to maintain the control.

Or like Hein said....NFS.

Have fun with SAMBA,
Regards,
Rita
Geoff Wild
Honored Contributor

Re: How can I map windows directory into HPUX system?

Sorry, as I said above, smbmount isn't available for HP-UX.

I'm trying to test sharity - but having difficulty getting it to compile on my 11.31 workstation :(

Let us start again - exactly what do you need to access on the Windows server?

Does it have to be active? (IE mounted on the HPUX server) or passive? IE could you just ftp/sftp or smbclient(works like ftp) to it?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.