| Oracle Internet File System Setup and Administration Guide Release 9.0.2 Part Number A95995-01 |
|
This appendix provides instructions for running the Command Line Utilities and a complete listing of the commands. The Command Line Utilities allows experienced system administrators to perform tasks from the command line prompt rather than the graphical user interface.
If an argument to the Command Line Utilities has spaces or an "=", it must be enclosed within double quotes (""). For example, cat "test document" or ls "backup folder 1999" or ls -class Document "name='Mydoc'".
Topics include:
Oracle 9iFS Command Line Utilities are installed on the server machine when Oracle 9iFS is configured, and can be used on the server machine to perform a variety of administration tasks. Optionally, Oracle 9iFS administrators can also install the software on a UNIX workstation or Windows client machine, for initiating commands remotely, as detailed in this section.
| Client Tool | UNIX | Windows |
|---|---|---|
|
Command Line Utilities |
/ifs/clients/cmdline/unix |
/ifs/clients/cmdline/win32 |
To install the Command Line Utilities, simply copy the entire directory where the files are located from the Oracle 9iFS server to a directory on your local machine, as follows:
c:\cd cmdline
ifscmdline.sh (Unix) or ifscmdline.bat file (Windows NT/2000 clients) on the local machine and edit the parameters listed in Table A-2 to specify the appropriate path information for the Command Line Utility to run from the client and connect to the specified server.
Additional information about the settings is contained in the ifscmdline file.
You can run the Command Line Utilities interactively or in batch mode.
To use the commands interactively, you must use the script. On the command line, type ifsshell. When using the shell, you do not need to enter the entire command. For example, if you want to log in, type login <name>/<password>.
Using a batch mode, you have the ability to perform many actions at once. To start the Command Line Utilities in batch mode, at the command prompt, type ifsshell -i <filename>. This tells the operating system to execute the batch file. The file should contain a list of commands that you use in ifsshell.
In most cases, you will use the Command Line Utilities in an interactive mode by using your operating system. The following sections describe the procedures for running the Command Line Utilities.
The Command Line Utilities protocol server is started automatically when the Internet File System node is started. From your operating system, you can log on by using the login command.
The following commands are used for navigation throughout Oracle 9iFS.
Changes the current working directory to the directory specified. If no working directory is specified, this command changes the current working directory to the home directory of the user in Oracle 9iFS. The default home directory is /home/<username>.
Changes the current working directory to /osh, or to <current working dir>/osh.
Changes the current working directory to the home directory of the user in Oracle 9iFS.
cd ..Changes the current working directory one level up from the current directory.
Displays the current working directory in Oracle 9iFS.
pwd does not take an argument.
Displays the current directory, /home/scott.
Copies the source file to the specified destination. If the destination is an existing directory, the file is copied into that directory with the same name. If the destination is a filename, the source file is copied to that file. If the destination file already exists, the copy defaults to versioning semantics.
Copies specifications.doc to /osh/specifications2.doc, only if /osh exists.
Copies specifications.doc to /osh.
Retrieves the file to the specified local directory.
Picks up the file, specifications.txt, and copies it to the local directory, /osh/specifications.txt.
Display the attributes of an object. By default, all attributes are displayed.
Object Options:
Listing Options:
Displays all attributes for signature.txt.
Displays the owner, ACL, and creation date for signature.txt.
Displays all attributes for the object identified by ID 1234.
getattr -class document "name like '%foo%'"Displays all documents whose class is "%foo%".
Creates a directory with the specified name.
|
|
Creates the complete directory path. |
Creates testDir in the current directory.
Creates a/b/testDir, creating each directory in the path as needed.
Sets the attribute value on an object. Given an object and an attribute name, the datatype can be determined. For simple attributes types (string, double, integer, boolean, long, and date) the attrvalue is interpreted. For attribute types that refer to objects, the attrvalue is interpreted as a path unless attr options are used.
Object Options:
Attribute Options:
Changes the owner attribute of the object identified by ID 1234 to be scott.
Changes the description attribute of the DirectoryUser object identified by scott.
Displays all folder references to the specified object. The specified object must be a Public Object.
Displays all folder references to signature.txt.
Displays all folder references to the object identified with the ID 1234.
Lists the items as specified. If no arguments are specified, the contents of the current directory are listed alphabetically. If the object identified is a folder, the contents of the folder are listed. Wildcard strings are not supported.
Object Options:
Listing Options:
Lists the names of the items in the current directory.
ls osh
Lists the names of the items in the osh directory.
Lists all the attribute values of the object identified by the ID, 1234. If the object identified is a folder, all the attributes for the contents of the folder are listed.
ls -class DOCUMENT -attr name descriptionLists the names and descriptions of all the documents in Oracle 9iFS.
Moves the source file to the destination. If the destination is an existing directory, the source file is moved to the destination directory. If the destination is a file, the source file is renamed to the destination filename. Wildcards are not supported.
Renames sample.html to the sample2.html.
Moves specifications.txt into testdir.
Moves groups.fm into documentation and renames the file to groups2.fm.
Stores the specified local file in Oracle 9iFS. If iFSfile is not specified; the file is stored in the current Oracle 9iFS directory. If iFSfile exists, the file is updated according to the versioning semantics.
Stores the local file in the current Oracle 9iFS directory as sample.html.
Puts the local file into Oracle 9iFS again, this time storing it as sample2.html.
Removes an object from Oracle 9iFS. If the object is identified by path and the object is not in any other directory, then it is actually deleted from Oracle 9iFS. Otherwise, the object is only deleted from the current directory. If the object value is a directory, by default, the directory must be empty unless the -r (recursive) flag is specified.
|
-r |
This option causes the recursive removal of a directory and all its contents without prompting. |
Object Options:
Removes sample.html from the current directory.
Removes myDir from b and any items in myDir.
Deletes the object identified by the ID, 1234.
Removes a reference from a directory. The reference is removed only if there exist other references. If it is the last reference, it can only be removed using "rm" (or rm), not rmref. Otherwise, the source is only deleted from the current directory. If the source is a directory, by default, the directory must be empty.
Removes signature.txt from the current directory.
Removes testDir and all of its contents from the current directory.
Prints an ASCII rendering of the identified object to the screen. For Document and its subclasses, the content of the document's content will be rendered by default. All other objects are rendered as XML by default. For information regarding changing the default rendering behavior, refer to the Oracle Internet File System Developer Reference.
or:
type[object options] [object value]Object Options:
Listing Options:
|
|
Renders the effective attributes of the identified object. This option is relevant only when rendering as XML. |
Displays the contents of myFile.
Displays the rendering of the object with ID 1234.
cat -id 1234 -attrallRenders the effective attribute values of the object identified by the ID 1234. This option is relevant only when the object is rendered as XML.
Adds an item to a directory. The result will be that the source will show up in the destination directory. This does not affect any other directories in which the source may already be in.
Adds signature.txt to a/oshDir.
Adds oshDir to a/oshDir2.
Returns the objects based on the classname and an optional where clause. By default, only the name of the attribute is displayed.
Listing Options:
Displays all the attributes for all the folders in Oracle 9iFS.
find DOCUMENT "description='FY 2000'" -attrall
Displays all the attributes for the folders with the description "FY 2000".
Displays help on all commands or on the specified command.
Displays usage for all commands.
help cd
Displays the description and command usage for cd.
Establishes an Oracle 9iFS session.
Logs scott in to Oracle 9iFS.
Terminates the current Oracle 9iFS session.
Sets the modes for the session.
Mode Types:
Object Options:
The following Boolean values are valid:
true, t, on, 1, y, and yes are legal true values.
f, off, 0, n, and no are legal false values.
Sets the default ACL to be an ACL identified by ID 1234.
mode acl -profileSets the default ACL to be taken from the user profile.
mode acl -parentSets the ACL determination to be taken from the parent folder.
mode parse offSets the parse mode to off, so that files put in Oracle 9iFS are not parsed.
mode aclSets the default ACL to be determined from the system.
mode acl -systemacl PublishedSets the default ACL to be Published.
mode dateformat "MMM dd HH:mm"Sets the date format to "MMM dd HH:mm".
mode admin trueTurns admin mode on for the current session.
mode delimiter \Sets the folder path delimiter to \.
Displays the current user.
Displays the name of the user that is currently logged in.
Changes to ascii mode.
Changes to binary mode.
Displays the Oracle Internet File System version information.
Starts the Command Line Utilities shell. If no arguments are specified, an interactive shell is started.
|
|
Indicates a file containing Command Line Utilities commands. This will run all the commands in a single JVM. |
Starts up an interactive shell that takes in Command Line Utilities commands.
shell -i batchcommands.txt
Reads in the commands from the input file, batchcommands.txt, and runs them.
Shows the character set for this session.
Character Set: UTF-8
Sets the character set for this session. Documents inserted using this CUP session will have its attributes set to this character set.
Sets to UTF-8 for this session.
Shows the language for this session.
Displays the language for this CUP session.
Sets the language for this session. Documents inserted using this CUP session will be indexed in this language.
Sets the language for this CUP session to French.
|
|
![]() Copyright © 1999, 2002 Oracle Corporation. All Rights Reserved. |
|