Next Previous

2.1 Site Commands

HPSS also supports the site commands listed below (e.g., " site setcos 300 " or " quote site setcos 300 ").

Note: On some platforms, it may be necessary to specify quote site instead of site .

setcos

chgid

chgrp

chmod

chown (valid only for "root" account)

chuid

stage

wait

symlink

2.1.1 Specifying a File's Class of Service - setcos

setcos is used to specify a class of service and has the following format:

 

quote site setcos <cos_id>

where,

cos_id is the Class of Service identifier (used when creating a new HPSS file during a put operation.)

 

Class of Service is used as a means for specifying the amount of parallelism or stripe width for a file. See your HPSS system administrator for the Class of Service identifiers defined for your site. If a Class of Service is not specified, a default is used.

In the example below, the following commands might be entered to put a large file to HPSS with a Class of Service identifier of 4. In this example, 4 might designate 4-way striping to 3490 tape.

 

ftp> quote site setcos 4

2.1.2 Changing a File's Group by ID - chgid

chgid is used to change the group ID of a file and has the following format:

 

quote site chgid <gid> <file>

where,

gid is the new group ID of the file

file is the name of the file.

 

The user must belong to the specified group and be the owner of the file, or be the root user.

Example: The following may be entered to change the group ID of myfile to group ID 210.

 

ftp> quote site chgid 210 myfile

 

2.1.3 Changing a File's Group by Name - chgrp

chgrp is used to change the group name of a file and has the following format:

 

quote site chgrp <group> <file>

where,

group is the new group name of the file, and file is the name of the file.

 

The user must belong to the specified group and be the owner of the file, or be the root user.

Example: The following may be entered to change the group of myfile to group mygroup.

 

ftp> quote site chgrp mygroup myfile

2.1.4 Changing a File's Permissions - chmod

chmod is used to change the mode of a file and has the following format:

quote site chmod <mode> <file>

where,

mode is the new octal mode number of the file

file is the name of the file.

Mode is constructed from the OR of the following modes:

0400 read by owner

0200 write by owner

0100 execute (search in a directory) by owner

0040 read by group

0020 write by group

0010 execute (search in a directory) by group

0004 read by others

0002 write by others

0001 execute (search in a directory) by others

 

Note: The following mode values are not supported:

4000 set user ID on execution

2000 set group ID on execution

1000 sticky bit

 

Only the owner of the file or root user can change its mode.

Example: The following may be entered to change the mode of myfile to read, write by owner and group.

 

ftp> quote site chmod 0660 myfile

2.1.5 Changing a File's Owner by Name - chown

chown is used to change the owner of a file and has the following format:

 

quote site chown <owner> <file>

where,

owner is the new owner of the file

file is the name of the file.

 

Only the root user can change the owner of a file.

Example: The following may be entered to change the owner of /home/smith/myfile to jones.

 

ftp> quote site chown jones /home/smith/myfile

2.1.6 Changing a File's Owner by ID - chuid

chuid is used to change the uid of a file and has the following format:

 

quote site chuid <uid> <file>

where,

uid is the new uid of the owner of the file

file is the name of the file.

 

Only the root user can change the uid of a file.

Example: The following may be entered to change the uid of /home/smith/myfile to 201.

 

ftp> quote site chuid 201 /home/smith/myfile

2.1.7 Staging a File - stage

stage is used to initiate a stage of a migrated file (e.g. from tape to disk). The user can initiate the stage and then return at a later time to initiate the file transfer usin the FTP get or PFTP pget commands:

 

quote site stage <file>

where,

file is the name of the file.

 

Example: The following may be entered to stage file /home/smith/myfile.

 

ftp> quote site stage /home/smith/myfile

2.1.8 Setting the Desire Wait Options (for Migrated Files) - wait

wait is used to notify the HPSS PFTP Daemon :

 

quote site wait <option>

where,

option is one of the following values:

-1 or inf(inite) - wait forever for the file to be staged. Do not return from the get / pget command to complete until the file has been transferred or a transfer error has occurred.

0 - do not wait for the file to be staged. If the file has been migrated, return the appropriate message and initiate the stage. The user will return later to reissue the get / pget command.

n (where n is an integer) - wait the specified period (in seconds) for the file requested by a get / pget command to complete. Either transfer the file if the file is staged within the specified period or return a reply to notify the user to try again later.

 

Example: The following may be entered to wait for fies to be staged.

 

ftp> quote site wait -1

 

The following table describes the behaviour the customer should expect from FTP when issuing the stage/wait commands. Note: ONLY Classes of service utilizing the "Stage on Background" will exhibit predictable results.

 

Stage/Wait Behaviour

Wait Time

File Condition

Command

Behaviour /Message

 

 

 

 

No Wait

Archived

quote site stage xyz

"File xyz is being retrieved from archive."

No Wait

Not Archived

quote site stage xyz

"File xyz is currently ready for other processing."

Wait ###

Archived

quote site stage xyz

Wait for period then receive message: "File xyz is currently ready for other processing." or "File xyz is currently ready for other processing." if the file is staged in the time frame allowed

Wait ###

Not Archived

quote site stage xyz

"File xyz is currently ready for other processing."

 

 

 

 

No Wait

Archived

get xyz

"File xyz is being retrieved from archive."

No Wait

Not Archived

get xyz

Transfers Data as expected.

Wait ###

Archived

get xyz

Wait for period then receive message: "File xyz is being retrieved from archive." or transfers data as expected if file is staged in the time allowed.

Wait ###

Not Archived

get xyz

Transfers file as expected.

2.1.9 Creating a Symbolic Link - symlink

symlink is used to create a symbolic link.

 

quote site symlink <path/file> <link>

where,

path/file refers to the destination

link refers to the local filename.

Example: The following may be entered to create a link names sys_passwd in the local directory pointing to /etc/passwd.

 

ftp> quote site symlink /etc/passwd sys_passwd

A dir command will show sys_passwd -> /etc/passwd.

2.1.10 Allocating space for files - quote allo64

The quote allo64 command is used to specify the size of a file for space allocation.

 

quote allo64 <size>

where,

size is a string representing the size of the file. The size may be a decimal number less than 264 or may be in the form 1MB (1048576). No spaces are allowed between the decimal number and the magnitude representation string. Accepted magnitude representation strings are:

KB (kilobyte = 1024),

MB (megabyte = 1048576),

GB (gigabyte = 1073741824),

TB (terabyte = 1099511627776),

PB (petabyte = 1125899906842624).

The magnitude representation string is case independent. The decimal component may contain up to two decimal points of precision. NOTE: 1005.03 will truncate to 1005 if no magnitude representation string is specified. Similar truncations will occur for excess precision specifications.

This command provides a 64-bit extension to the standard quote allo size command. NOTE: the quote allo size command only accepts decimal values for size. Both these commands are helpful for providing hints for non-parallel "put" commands.

 

Example: The following may be entered to specify the file size of 8 gigabytes.

 

ftp> quote allo64 8GB


Next Previous