Printer FriendlyEmail Article Link

How to setup a simple CIFS test on the Avalanche client to log in, create, write and read a file on the server?

Answer

The article assumes your Avalanche Client IP addresses, subnet, GW, VLAN, etc have been setup correctly.  The following is an example of the actions needed for a client to log into a CIFS server, open a file called test123.txt, then write to it, read it, and close the file.  The server is at 192.254.219.1.  The username and password are Adminstrator / sundance.  The AUTH_TYPE is NTLM.  The AUTHDOMAIN is WASSA.  The CONNECTION_TREE is \\192.254.219.1\share2.  The share2 is the share directory.

CIFS actions example: 

CIFSNG://192.254.219.1 USER=Administrator PASSWD=sundance AUTH_TYPE=NTLM AUTHDOMAIN=WASSA CONNECTION_TREE=\\192.254.219.1\share2
CIFS_SUB_CMD OPEN_NEW FILENAME=test123.txt
CIFS_SUB_CMD WRITE FILENAME=test123.txt OFFSET=1 BYTE_SIZE=10 INPUT_SOURCE= ON_THE_FLY INPUT_OFFSET=0 FORCE_CLOSE_PER_CHUNK=FALSE
CIFS_SUB_CMD READ FILENAME=test123.txt
CIFS_SUB_CMD CLOSE FILENAME=test123.txt

For more information on CIFS commands please see Avalanche Help from the Avalanche Commander applications. 


Product : Avalanche,Avalanche,CIFS