Using the %servertype Variable
<< Click to Display Table of Contents >> Navigation: Robo-FTP User's Guide > Script Programming > Internal Script Variables > Using the %servertype Variable |
The %servertype variable is initialized to a numeric value representing the type of server that Robo-FTP automatically detects after logging on.
The following server types may be set in this variable.
UNKNOWN_FORMAT | 0 |
STD_UNIX_FORMAT | 1 |
STD_DOS_FORMAT | 2 |
LONG_DOS_FORMAT | 3 |
STD_NT_FORMAT | 4 |
STD_NOVELL_FORMAT | 5 |
HUMMINGBIRD_FORMAT | 6 * a Windows based server |
MVS_HOST1 | 7 * an IBM mainframe server |
OPEN_VMS | 8 * OS390 server |
AS400 | 9 |
ZOPE_FORMAT | 10 |
TANDEM | 11 |
IBM_4690 | 12 |
WAC_SSH_FORMAT | 13 |
VERIZON_SWITCH | 14 |
JES_QUEUE | 15 |
GXS_VAN | 17 |
TANDEM_UNIX | 18 |
REFLECTION | 19 |
USBANK | 20 |
DEC_VMS | 21 |
ANX_FTP_MAILBOX | 22 |
NLST_FORMAT | 23 * HTTP without WebDAV or NLST issued instead of LIST so only file name present |
MEDITECH | 24 |
ORACLE_FORMAT | 25 |
GLUB_TECH | 26 |
MLSD_FORMAT | 27 * HTTP with WebDAV, SFTP server or FTP Server that supports MLSD |
WACHOVIA | 28 |
HP_UNIX | 29 |
XFTP_FORMAT | 30 |
RUMPUS_FORMAT | 31 |
GXS_DSCV | 32 |
GXS_INTERCHANGE | 33 |
STERLING | 34 |
Robo-FTP parses the directory listings returned by the remote server to find identifying characteristics that help determine the server type. The examples of directory listings from each server type are shown below.
STD_UNIX_FORMAT
-rw-r--r-- 1 1191 bin xxxxxxxxx May 9 1996 tampa.jpg
LONG_DOS_FORMAT
TAMPA JPG 27,686 11-17-99 7:04p tampa.jpg
STD_DOS_FORMAT
TAMPA JPG 27,686 11-17-99 7:04p
STD_NT_FORMAT
12/05/99 08:52p <DIR> xxx,xxx,xxx TAMPA.JPG
12-05-99 08:52p <DIR> xxx,xxx,xxx TAMPA.JPG
STD_NOVELL_FORMAT
d [R----F--] supervisor 512 May 09 17:00 login
- [RWCE-FM-] harlepk.ou=memits 1191 May 09 13:48 tampa.jpg
- [RWCE-FM-] harlepk.ou=memits 1191 May 09 1999 oldtampa.jpg
HUMMINGBIRD_FORMAT
-rw-r--r-- 1 1191 xxxxxxxxx May 9 1996 tampa.jpg
MVS_HOST1
Volume Unit Referred Ext Used Recfm Lrecl BlkSz Dsorg Dsname
SMP351 3390 2000/03/06 1 15 FB 80 6160 PS CV2.DOC
Migrated EHYOUT.LIST3820
ARCIVE Not Direct Access Device BS.BLM.W2.TEST.A122700
PPSP03 3390 **NONE** 1 75 FB 153 27846 PS BS.BLM.W2.VENDOR
GDG BS.EFF.COSTFILE
OPEN_VMS
BACKUP.LOG;3 1304/1304 26-JUL-2000 08:14:13 [PW] (RWED,RWED,RE,)
REALLYREALLYBIFBACKUP.LOG;3
1304/1304 26-JUL-2000 08:14:13 [PW] (RWED,RWED,RE,)
AS400
24576 07.12.94 10:55:06 *DIR QOpenSys/
QDOC 17408 01.01.70 00:00:00 *FLR QDLS/
QSYS 0 31.05.05 21:36:39 *LIB QSYS.LIB/
28672 03.02.95 11:05:10 *DIR tmp/
QSYS 27648 06.11.99 20:04:06 *DIR QPWXCRB/
TTS 49152 01-08-27 10:19:23 *FILE ANRA045200
TTS *MEM ANRA045200.TXT
ZOPE_FORMAT
-rw-rw---- 1 administrator Zope 770 Nov 5 05:20 VirHost.AccessRule
TANDEM
File Code EOF Last Modification Owner RWEP
BUFT0004 101 2746 5-Oct-01 15:19:26 230, 6 "ncnc"
IBM_4690
0 DIR 10-21-2002 08:37 JAVA
8192 A 10-21-2002 09:48 DDACMOS.OL2
WAC_SSH_FORMAT
2003-03-17 19:32 <DIR> Documents and Settings
2003-03-23 09:18 4,644 ffastun.ffa
VERIZON_SWITCH
File Name Type Start Size
----------------------------------------------
NETEDIT.LO CON F28E0 3FB
BACKRTTK.CF SEQ 7E0 7E0
JES_QUEUE
JOBNAME JOBID OWNER STATUS CLASS
BLMLSR2Q JOB30666 BLMLSR2 OUTPUT A RC=000 7 spool files
BLMLSR2Q JOB30245 BLMLSR2 OUTPUT A RC=000 7 spool files
WIN_SSH
0 Nov 05, 2003 13:32 ./
0 Nov 05, 2003 13:32 ../
1321 Nov 05, 2003 13:31 CVRO_20031105_133126843.XML
3892 Oct 31, 2003 18:20 CVRO_One.XML
1281 Oct 31, 2003 19:56 CVRO_Two.XML
GXS_VAN
Sender ILOG IC Control# Sent (EST) Mfile
01:011586336 10061575472 000004848 06OCT04|11:45 MA600002
TANDEM_UNIX
Type Doc Control # Sender ID Size Date/Time Message ID
UNB INVOIC 116 5013546131690 489 1224/1007 INS+LTD.1NYP.1
UNB INVOIC 117 5013546131690 489 1224/1022 INS+LTD.1NZR.1
REFLECTION
a---lgpd 02/08/105 9:08 31198 glxd112671
----lgpds 02/04/105 14:35 <DIR> ipfe procedures
USBANK
-ART------TCP A ceoutb 14922 134804100 Feb 14 20:03 USR021405.zip
-ART------TCP A ceoutb 64904 143350500 Feb 15 20:03 USR021505.zip
Total number of batches listed: 5
DEC_VMS
DISK$PUBLIC:[PUBLIC]
CRYPTO.DIR;1 %%RMS-E-PRV, insufficient privilege or file violation
DEC_DOCUMENTATION.DIR;1
177 7-APR-2003 17:30 [SYSTEM] (RWED,RWED,R,R)
FREECIV.DIR;1 1 28-JUL-2000 15:26 [SYSTEM] (RWED,RWED,R,R)
INDEX.HTML;1 3 7-FEB-2005 08:57 [SYSTEM] (RWED,RWED,R,R)
Total of 205 blocks in 10 files.
ANX_FTP_MAILBOX
Type Size Time Stamp File/Directory Name
-----------------------------------------------------------------------
File 30334046 Jul 6 13:21:05 2005 DCXNVDR.A28974
File 146 Jul 7 14:07:44 2005 .sh_history
File 30334046 Jul 7 13:49:07 2005 DCXNVDR.A06782
NLST_FORMAT
tampa.jpg
oldtampa.jpg
MEDITECH
Contents of: 5 files/subdirectories
Name Date/Time Bytes Params Desc
dr-x .SPOOL 95/03/07 15:26:59 n/a Utility Reports
-rw- 000000CC.TXT 06/09/19 13:42:11 1618
-rw- 060918RX.TXT 06/09/19 08:52:17 344566
-rw- GF FILE1234 06/09/19 10:00:09 871
-rw- RXFILE.TXT 06/09/19 13:48:09 202
ORACLE_FORMAT
drw-r--r-- 2 SYS oracle 0 MAR 08 11:54 sys
-rw-r--r-- 1 SYS oracle 0 MAR 08 11:56 xdbconfig.xml
GLUB_TECH
Tracking ID Filename Size Document Type
E331060187 M3611100 493 856
E331060188 M3611101 493 856
MLSD_FORMAT
size=0;type=cdir;perm=fdelcmp;create=20070808180513;modify=20070808180618; .
size=0;type=pdir;perm=fdelcmp;create=20070808180513;modify=20070808180618; ..
size=0;type=dir;perm=fdelcmp;create=20070808180607;modify=20070808180607; folder1
size=0;type=file;perm=fdrwa;create=20070808180546;modify=20070808180546; testfile1.txt
WACHOVIA
-C--------FTS B 238333 16722 15 Aug 24 20:32 test 1.txt
Total number of batches listed: 1
HP_UNIX
-rw------- 1 ebuser ebuser 592 9ŒŽ 3“ú 21:08 .Xauthority
XFTP_FORMAT
/MIX/ DISPLAYSTART
LIST REPORT FOR EASTPENN ON 11/12/08 AT 16:01
HEADER FROM SOURCE TO DEST
--------------------------------- ---------------- ----------------
SOURCE DEST APPL REF STATUS DATE TIME ISN DATE TIME OSN
-------- -------- -------- ------ ------ ----- ----- ---- ----- ----- ----
NORLEAN EASTPENN PREMIER 15180 NORMAL 11/12 15:45 0607 00/00 00:00 0000
BHAM EASTPENN MASTER 000000 NORMAL 11/12 15:49 1294 00/00 00:00 0000
RUMPUS_FORMAT
drwxrwxrwx folder 0 Nov 2 15:31 2009Nov02
-rw-rw-rw- 0 17966080 17966080 Dec 4 09:42 BPRights.exe
-rw-rw-rw- 0 2699732 2699732 Nov 23 14:56 BPRights.zip
-rw-rw-rw- 0 3618488 3618488 Jan 8 13:46 BPRights080110.zip
GXS_DSCV
Sender ID St APRF SNRF Service Ref. Size
----------------------------------------------------------------------------------------------
DSCVROUT N FILECONF 12230 003498833455377220 1
GXS_INTERCHANGE (root)
Type Name
dir send
dir receive
dir reports
GXS_INTERCHANGE (/send subfolder)
Type ILOG Name
file 03041887383 gxsvalid997-test3totest3edi1.txt
GXS_INTERCHANGE (/receive subfolder)
Sender ILOG IC Control# Sent (GMT) Mfile
01:TEST3 03050055133 000000179 05MAR11|00:33 M3500008
01:TEST3 03041887383 000000179 04MAR11|18:52 M3400000
GXS_INTERCHANGE (/reports subfolder)
RPT Sender Status Report SSTA
RPT Sender Summary SSUM
RPT Sender Retrieved SRET
STERLING
EGZMRZ1 #0715111 CT=000004480 BID=MARITZ.1110211054816.TXT 0848-11042 C R M SACIC000
APACHE_DEFAULT
<tr><td valign="top"><img src="/icons/back.gif" alt="[DIR]"></td><td><a href="/">Parent Directory</a></td><td> </td><td align="right"> - </td><td> </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="Photos/">Photos/</a></td><td align="right">16-Mar-2009 14:00 </td><td align="right"> - </td></tr>
<tr><td valign="top"><img src="/icons/image2.gif" alt="[IMG]"></td><td><a href="Download.jpg">Download.jpg</a></td><td align="right">01-Jun-2010 16:45 </td><td align="right">1.3K</td><td> </td></tr>
Related command(s): FTPLIST
See also: Internal Script Variables