HPlogo Installing and Managing HP ARPA File Transfer Protocol Network Manager's Guide: HP 3000 MPE/iX Computer Systems > Chapter 4 Managing FTP

MPE/iX FTP Server Commands

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

The quick reference provides a list of the FTP user commands a remote FTP user accessing MPE/iX can use. The corresponding MPE/iX FTP server commands are in parentheses.

User command (SERVER command)

DESCRIPTION

ASCII (TYPE A)

Sets the FTP file transfer type to ASCII. This is the default when you first enter FTP.

BINARY (TYPE I)

Sets the FTP file transfer type to binary.

BYTESTREAM (TYPE L)

Sets the FTP file transfer type to bytestream.

CD remotedirectory (CWD | XCWD)

Changes the working directory on the remote host to the directory specified.

CLOSE (QUIT)

Closes the remote connection but remains in the FTP program.

DELETE remotefilename (DELE)

Deletes the remote file specified. A directory path may be included with the remotefilename.

DIR [remotedirectory] [localfile] (LIST)

Writes the requested remote directory listing to the terminal, or to a local file if specified. If remotedirectory is not included, the current remote working directory contents are listed.

FORM [NONPRINT] (FORM)

Sets the FTP file transfer form to the specified format. The only supported form is NONPRINT.

GET remotefile [localfile] (RETR)

Transfers the remote file specified to a local file. If a local file name is not specified, the file is saved with the same name as the remote file name (assuming a legal file name).

LS [remotedirectory] [localfile] (NLST)

Displays the contents of a remote directory, one file per line. If a localfile name is specified, the listing will be saved to the file specified. If remotedirectory is not included, the current remote working directory contents are listed.

MDELETE remotefiles (NLST,DELE)

The remote system expands the wildcard characters in remotefiles and deletes the set of files on the remote MPE/iX host.

MGET remotefiles (NLST,RETR)

The remote system expands the wildcard characters in remotefiles and retrieves the set of files from the remote host.

MKDIR remotedirectory (MKD | XMKD)

Creates a directory on the remote machine.

MODE [STREAM] (MODE)

Sets the FTP file transfer mode to the specified mode. The only supported mode is STREAM.

MODTIME remotefile (MDTM)

Returns the last modification time and date of the remote file.

MPUT localfiles (NLST,STOR)

The local system expands the wildcard characters in localfiles and transfers the set of files from the local host to the remote MPE/iX system.

OPEN remotehostname

Opens a connection to the remote host specified.

PUT localfile [remotefile] [;buildparms] (STOR)

Transfers a local file to a file on the remote MPE/iX system. Build parameters may be used to change how the file is stored on MPE/iX. If the remote file name is not specified, the file is saved with the local file name provided the local file name is a valid name on the remote MPE/iX system.

PWD (PWD)

Displays the name of the remote working directory on the terminal. On MPE/iX, the session information is returned as well.

QUIT (QUIT)

Closes the connection to the remote system and exits from FTP.

REMOTEHELP [servercommand] (HELP)

Displays the remote host (MPE/iX) FTP server commands supported. If a server command is specified with the REMOTEHELP command, a brief description of the command is displayed.

RENAME remotefile newname (RNFR,RNTO)

Renames a remote file.

RMDIR remotedirectory (RMD|XRMD)

Deletes a directory from the remote machine.

               SITE <sp> HELP
| MPE/iX | BUILDPARMS file-name | USER_LABELS filename [number] | STREAM file-name | TIMEOUT num-secs
(SITE)

Remote system

HELP

Returns a help line.

MPE/iX

Sets an internal flag indicating that the local system is an MPE/iX machine.

BUILDPARMS

Gives the build parameters of the specified file.

USERLABELS

Gives the user label listing of the specified file.

STREAM

Streams a give job-file.

TIMEOUT

Sets the server time-out to the specified value.

SIZE remotefile (SIZE)

Returns the size in bytes of the remote file.

SRUCT [FILE] (STRU)

Sets the FTP file transfer structure to the specified structure. The only supported structure is FILE.

SYSTEM (SYST)

Displays the remote system type.

TYPE [transfertype] (TYPE)

Sets the FTP file transfer type to the specified type. The supported transfer types are ASCII and BINARY.

USER sess,user.acct,group (USER)

Used to enter a logon name in order to establish a session on the remote host. A connection to the remote host must already have been established using OPEN. Passwords may be included in the logon string as follows:

sess,user/userpass.acct/acctpass,group/grppass

Note: Passwords can only be entered once. If you enter passwords with the logon string, do not re-enter them at the password prompt, just press the [Return] key. If you enter passwords as part of the logon string, they are displayed in the message text of the password prompt.

Feedback to webmaster