Example 2 – HP Integrity NonStop H-Series User Manual

Page 87

Advertising
background image

or get command; next issue the stru f command (to return FTP to file-structure transfer mode).
The following example illustrates this.

This example copies a local key-sequenced structured file (containing embedded <CRLF> character
sequences), named keyseq, to a remote NonStop system.

First, before starting FTP, obtain a detailed listing of the file:

$PUBS FTPTEST 14> fup info $abc.source.keyseq,detail

$ABC.SOURCE.KEYSEQ 22 May 1995, 11:35
ENSCRIBE
TYPE K
CODE 1001
EXT ( 6 PAGES, 6 PAGES )
REC 4000
BLOCK 4096
IBLOCK 4096
KEYLEN 4
KEYOFF 0
MAXEXTENTS 16
OWNER 8,164
SECURITY (RWEP): NUNU
DATA MODIF: 19 May 1995, 10:11
CREATION DATE: 19 May 1995, 10:11
LAST OPEN: 19 May 1995, 10:11
EOF: 20480 (10.4% USED)
FILE LABEL: 214 (5.2% USED)
EXTENTS ALLOCATED: 2
INDEX LEVELS: 1

Next, start FTP and open a connection to the desired FTP server using its IPv4 address. (This example
assumes that both hosts have IPv4 addresses.) Then, issue the stru r command. Using the
information highlighted in the above example, issue the FTP put command, then issue the stru
f

command:

117> ftp
FTP Client - T9552D30 - (31OCT94) - COPYRIGHT TANDEM COMPUTERS INC. 1994
ftp> open 133.255.17.1
Connecting to 133.255.17.1.........Established.
220 comm.Tandem.COM FTP SERVER T9552D30 (Version 2.c TANDEM 31OCT94) ready.
Name (133.255.17.1:guest): manuals.writer
331 Password required for MANUALS.WRITER.
Password:
230 User MANUALS.WRITER logged in.
ftp> stru r
200 STRU R ok.
ftp> put $abc.source.keyseq keyseq,k,1001,6,6,4000,4,0,4096
200 PORT command successful.
150 Opening data connection for source.keyseq (130.252.12.3,4394d) (7680 bytes).
226 Transfer complete.
local: keyseq remote: source.keyseq
6000 bytes received in 0.45 seconds (13.02 Kbytes/s)
ftp> stru f
200 STRU F ok.

Example 2

This example is similar to Example 1. This example copies a local, key-sequenced, structured file
(containing embedded <CRLF> character sequences), named PERFK0, to a file named keyseq
on remote NonStop system.The example, however, assumes that both the local and remote systems
use IPv6 addresses.

As in the previous examples, use a FUP INFO command to obtain a detailed listing of the file
before starting FTP. In this example, assume that the TYPE, CODE, REC, IBLOCK, KEYLEN, KEYOFF,
and MAXEXTENTS values are the same as those for the file in Example 1.

FTP Command Reference

87

Advertising
This manual is related to the following products: