FW: Problems with samba

Derek Lai Derek.Lai at onyxco.com
Thu May 27 02:03:59 GMT 2004


I inherited the administration of a HP-UX system that is running Samba
version 2.2.3a. It's been running pretty well.

One of the developer that I support is using running a job daily that puts 3
files on a Windows server using smbclient. It's been working well for a
while. However, all of a sudden last week we had trouble on 2 days where
cmbclient put command failed - it created the file but it is of zero length.
The message we get actually says "Succcess" - see below. Anyone has any
ideas? Does smbclient generate any log file or has option for generating log
file? The job has since been running great. Just want to know how to
trouble-shoot this.


Thanks,

Derek

>  -----Original Message-----
> From: 	Joan Castner  
> Sent:	Monday, May 24, 2004 2:42 PM
> To:	Derek Lai
> Subject:	Problems with samba
> 
> Hello Derek,
> 
> Last week, one of our 'move' jobs to the RVS folder using SAMBA failed
> twice.  Just wondering if you would have any idea on why it failed.
> 
> This is the code that moves 3 files to the RVS folder:
> 
> LOOPTRK="1"
> while (test $LOOPTRK -eq "1")
> do
>   REPR306=`ll REPR306* 2>/dev/null | grep -v Z | awk '($5 != "0") {print
> $9}' | tail -n 1`
>   if [[ -n $REPR306 ]]
>   then
>     /opt/samba/bin/smbclient //ntsfs1/rvs b1gtest -D repos -U smbclient -c
> "put $REPR306"
>     compress -f $REPR306
>   else
>     LOOPTRK="0"
>   fi
> done
> 
> 
> This is the log of BAD RUN:  I highlited the error parts.
> +++++++++++++++++++++++ start Sat May 22 03:34:19 PDT 2004
> +++++++++++++++++++++
> 
> added interface ip=10.2.3.102 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=10.2.3.100 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=192.168.20.148 bcast=192.168.20.255 nmask=255.255.255.0
> added interface ip=192.192.200.1 bcast=192.192.200.255 nmask=255.255.255.0
> Domain=[ONYX] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
> SUCCESS - 0 opening remote file \repos\REPR306_ONYX_20040522.pdf
> added interface ip=10.2.3.102 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=10.2.3.100 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=192.168.20.148 bcast=192.168.20.255 nmask=255.255.255.0
> added interface ip=192.192.200.1 bcast=192.192.200.255 nmask=255.255.255.0
> Domain=[ONYX] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
> cd \repos\: SUCCESS - 0
> SUCCESS - 0 opening remote file \REPR306_GOLD_20040522.pdf
> added interface ip=10.2.3.102 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=10.2.3.100 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=192.168.20.148 bcast=192.168.20.255 nmask=255.255.255.0
> added interface ip=192.192.200.1 bcast=192.192.200.255 nmask=255.255.255.0
> Domain=[ONYX] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
> cd \repos\: SUCCESS - 0
> SUCCESS - 0 opening remote file \REPR306_ALL_20040522.pdf
> 
> +++++++++++++++++++++++ end Sat May 22 03:35:22 PDT 2004
> +++++++++++++++++++++
> 
> 
> This is the log of the GOOD RUN:
> +++++++++++++++++++++++ start Fri May 21 03:40:47 PDT 2004
> +++++++++++++++++++++
> 
> added interface ip=10.2.3.102 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=10.2.3.100 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=192.168.20.148 bcast=192.168.20.255 nmask=255.255.255.0
> added interface ip=192.192.200.1 bcast=192.192.200.255 nmask=255.255.255.0
> Domain=[ONYX] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
> putting file REPR306_ONYX_20040521.pdf as \repos\REPR306_ONYX_20040521.pdf
> (310.1 kb/s) (average 310.1 kb
> /s)
> added interface ip=10.2.3.102 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=10.2.3.100 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=192.168.20.148 bcast=192.168.20.255 nmask=255.255.255.0
> added interface ip=192.192.200.1 bcast=192.192.200.255 nmask=255.255.255.0
> Domain=[ONYX] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
> putting file REPR306_GOLD_20040521.pdf as \repos\REPR306_GOLD_20040521.pdf
> (56.1 kb/s) (average 56.1 kb/s
> )
> added interface ip=10.2.3.102 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=10.2.3.100 bcast=10.2.255.255 nmask=255.255.0.0
> added interface ip=192.168.20.148 bcast=192.168.20.255 nmask=255.255.255.0
> added interface ip=192.192.200.1 bcast=192.192.200.255 nmask=255.255.255.0
> Domain=[ONYX] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
> putting file REPR306_ALL_20040521.pdf as \repos\REPR306_ALL_20040521.pdf
> (348.0 kb/s) (average 348.0 kb/s
> )
> 
> +++++++++++++++++++++++ end Fri May 21 03:40:50 PDT 2004
> +++++++++++++++++++++
> 
> Joan Castner
> Onyx Acceptance Corporation
> 949-465-3870
> 


More information about the smb-clients mailing list