× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: How can I see the AS/400 from my Linux box?
  • From: "Goodbar, Loyd (AFS-Water Valley)" <LGoodbar@xxxxxxxxxxxxxx>
  • Date: Thu, 7 Dec 2000 16:37:41 -0500

I got *something* connected, but not sure what.
Running RedHat Linux 6.0 (Hedwig) with Samba 2.0.3 (RPMs during
installation).

Our AS/400 is named QWVAS400 (for Netserver) and WVAS400 (system name), at
V4R3.

[root@linux /]# smbmount '//QWVAS400/QDLS' -U goodbar -I 10.138.8.8 -c
'mount /mnt/as400'
Added interface ip=10.138.8.13 bcast=10.138.15.255 umask=255.255.248.0
Server time is Thu Dec  7 15:06:58 2000
Timezone is UTC-0.0
Password: <entered AS/400 password>
security=user
SMBFS: Win95 bug fixes enabled
[root@linux /]# dir /mnt/as400
smb_receive_trans2: copied, parm=4041 of 4079, data=472 of 472
smb_receive_trans2: copeid, parm=4079 of 4079, data=944 of 472
smb_proc_readdir_long: name=, entries=14, rcls=1, err=2
smb_refill_dircache: readdir failed, result=-2
[root@linux /]#

Some notes:
The smbmount command ONLY worked when I specified the -I option with the
AS/400's IP address.
The -U user is my AS/400 user profile.
QDLS is shared out via OpsNav. Netserver is running.

I didn't see anything in nmb.log or smb.log, only the above error messages.
Is the AS/400 sending too much information on a dir? smbclient works without
problems.

I could not even get that far with the system name:

[root@linux /]# smbmount '//WVAS400/QDLS' -U goodbar -c 'mount /mnt/as400'
or
[root@linux /]# smbmount '//WVAS400/QDLS' -U goodbar -c 'mount /mnt/as400'
-I 10.138.8.8

Added interface ip=10.138.8.13 bcast=10.138.15.255 umask=255.255.248.0
Session request failed (131,130) with myname=LINUX destname=WVAS400
Called name not present
Try to connect to another name (instead of WVAS400)
You may find the -I option useful for this
[root@linux /]#

So you absolutely must use Nameserver with V4Rx to attempt mounting drives.
My mistake earlier.


Pieces of SMB definitely work. I can use the smbclient interface and view
QDLS:

[root@linux /]# smbclient '//WVAS400/QDLS' -U goodbar
Added interface ip=10.138.8.13 bcast=10.138.15.255 umask=255.255.248.0
session request to WVAS400 failed
Password: <entered AS/400 password>
smb: \> dir
  ARGENT                              D       0  Mon Dec 21 10:36:00 1998
  BAULT                               D       0  Wed May  5 12:55:02 1999
... more of the list ...
  MRCWORKL.IB                         D       0  Mon Mar  9 09:27:08 1998

                65535 blocks of size 32768. 65535 blocks available
smb: \>quit

I can subsequently cd into directories and get files to the linux box.

This also works. (Using the Netserver way)

[root@linux /]# smbclient '//QWVAS400/QDLS' -U goodbar -I 10.138.8.8
Added interface ip=10.138.8.13 bcast=10.138.15.255 umask=255.255.248.0
Password: <entered AS/400 password>
smb: \> dir
  ARGENT                              D       0  Mon Dec 21 10:36:00 1998
  BAULT                               D       0  Wed May  5 12:55:02 1999
... more of the list ...
  MRCWORKL.IB                         D       0  Mon Mar  9 09:27:08 1998

                65535 blocks of size 32768. 65535 blocks available
smb: \>quit


Note I had to add the IP address of my AS/400 again for this.


This is as far as I'm able to get. smbclient, yes usable, browse the AS/400.
Can appear to mount a share, but not view it. Maybe someone could pick up
from here??

Loyd


-----Original Message-----
From: Martin Rowe [mailto:martin@dbg400.net]
Sent: Thursday, December 07, 2000 2:17 PM
To: MIDRANGE-L@midrange.com
Subject: Re: How can I see the AS/400 from my Linux box?


On Thursday 07 December 2000 16:32, you wrote:
> Samba also comes with an SMB client that is a linux pgm that allows the
> Linux box to see other SMB compatible resources on the LAN like a
> NetServer enabled AS400 or other PC's.
>
> Jerry
>
> PS:  I am in the process of loading this on a Sun Sparc system that is
> also on an AS400 network.  I don't see any problems.  But proof if
> proof.  Samba is available on both Sun, Intel, and Linux, as well as
> other Unix based OS's.

Hi Jerry

If you get this to work I'd be *very* interested. Using smbmount works 
fine for other windows shares but it just hangs my box if I try it on and 
AS/400 share (Mandrake Linux 7.0 & V4R3/R4). NFS works very nicely with 
two exceptions: 1) I can't get at QDLS shared over NFS - the mount 
completes without errors, but attempting to access the mounted directory 
results in a box freeze until it finally comes back with an out of memory 
error. 2) The Linux mount command changed at some point[1] to using TCP 
rather than UDP for NFS shares. The AS/400 only supports UDP[2] so more 
recent distributions just can't get access unless you use an older binary.

I'd be interested in hearing[3] from any other Linux & AS/400 users out 
there on how they get the two to communicate. There doesn't seem to be a 
lot of information on combining the two and I'd like to put some 
resources & pointers on my web site. I'm the only Linux user at my site 
and I'd appreciate finding more people in the same situation.

Regards, Martin

[1] Mandrake 7.0 works with mount version 2.9y. Versions 7.1 & 7.2 with 
2.10 versions don't. SuSE 6.4 works but SuSE 7.0 doesn't.
[2] I found this on a SuSE mailing list from a chap ho upgraded from 6.4 
to 7.0 and hit problems. After tracing what was going on he got in touch 
with IBM to be told the above. He couldn't get QDLS shares to work either 
:-(
[3] Probably best off list - I'll post back when I've got something up 
for people to see.
-- 
martin@dbg400.net / jamaro@firstlinux.net
http://www.dbg400.net DBG/400 - DataBase Generation utilities 
Free test environment tools for the AS/400 and misc other stuff
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.