Operating System - HP-UX
1855688 Members
2755 Online
104103 Solutions
New Discussion

Re: Enhanced CIFS and SAM

 
Ruan_3
Frequent Advisor

Enhanced CIFS and SAM

Hi all

I recently installed Enhanced AutoFS on one of my servers and configured the /etc/auto.direct.cifs map file as shown in the documentation. However, when I try and view the mounted remote filesystems via SAM I get the following error message:

/etc/auto.direct.cifs line 4: syntax error at "cifs"
^
/usr/sam/lbin/autoopt: Problem parsing master automounter file
"/etc/auto_master".

Is there a SAM patch available which will enable SAM to parse the file correctly?

auto_master:

/net -hosts -nosuid,soft
/- /etc/auto.direct
/- /etc/auto.direct.cifs

auto.direct.cifs:

/FTP/CIFS -fstype=cifs,username=user,password=passwd server:/CIFS
8 REPLIES 8
Sanjay Kumar Suri
Honored Contributor

Re: Enhanced CIFS and SAM

Check this patch and its applicability:

http://www1.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_23876&context=hpux:800:11:00

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Ruan_3
Frequent Advisor

Re: Enhanced CIFS and SAM

Hi Sanjay,

Thanks for your quick response. I forgot to mention that the system is running HP-UX 11i, and the patch you recommended is for 11.00. Any other suggestions?

Cheers
Sanjay Kumar Suri
Honored Contributor

Re: Enhanced CIFS and SAM

Check on this:

http://www1.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_28124&context=hpux:800:11:22

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Ruan_3
Frequent Advisor

Re: Enhanced CIFS and SAM

Hi Sanjay,

Thanx, but that patch is for 11.22 and I have 11.11. I had a look at PHCO_28124, but it does not seem to apply. Any other ideas?

Cheers
Sanjay Kumar Suri
Honored Contributor

Re: Enhanced CIFS and SAM

Can you check any errors made in following files:

auto.direct
auto_master


sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Ruan_3
Frequent Advisor

Re: Enhanced CIFS and SAM

Hi Sanjay,

It seems that SAM does not like the
"-fstype=cifs,username=CIFSGUEST,password=general1" option in /etc/auto.direct.cifs, which is the autofs map file which I created for the CIFS autofs filesystems. If I remove this option from the file, autofs tries to NFS mount the filesystem when it should CIFS mount it.

I switched on detailed tracing for autofs by using the "kill -SIGUSER2 pid" command, and saw in the attempt to NFS mount the filesystem.
Sanjay Kumar Suri
Honored Contributor
Ruan_3
Frequent Advisor

Re: Enhanced CIFS and SAM

Hi Sanjay,

I used the autofs admin guide which contains exactly the info contained in the last link you sent. The problem does not seem to be with CIFS, since if I edit the autofs maps manually via vi and run automount -v, autofs behaves as desired. The CIFS filesystem is mounted and accessable.

The problem I have is that SAM does not seem parse the auto_master/auto.direct.cifs maps correctly, so I cannot manage my mounted remote filesystems via SAM.

Cheers