NAME

vos_source - Read vos commands from a file

SYNOPSIS

vos source [-file] <file name> [-force] [-cell <cell name>] [-noauth] [-auth] [-localauth] [-encrypt [<yes|no>]] [-verbose] [-noresolve] [-config <configuration file>] [-help]

DESCRIPTION

The vos source runs commands from a file as if they were typed in vos_interactive(1) mode. The command can be run from the command line or interactively.

vos source uses the authentication state supplied on its command line to run all bulk commands. However, if a bulk command is supplied with authentication options such as -cell, -localauth, -noauth, -auth or -encrypt then that command will be run with those options.

OPTIONS

vos source takes the following options:

-file <file name>

Specifies the file name to read commands from. The commands in the given file are run as if they were typed in vos_interactive(1) mode.

-force

Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the first error.

-cell <cell name>

Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see vos(1).

-noauth

Assigns the unprivileged identity anonymous to the issuer. Do not combine this flag with the -localauth flag. For more details, see vos(1).

-localauth

Obtains an authentication token using the server encryption key with the highest key version number in the local /etc/yfs/server/KeyFileExt file. The resulting token never expires and has Super User privileges. Do not combine this flag with the -cell argument or -noauth flag. For more details, see vos(1).

-auth

Use the calling user's tokens from the kernel or as obtained using the active Kerberos ticket granting ticket to communicate with the Volume Server and Location Service. This is the default if neither -localauth nor -noauth is given.

Since this option is the default, it is usually not useful for running single command line operations. However, it can be useful when running commands via vos_interactive(1) or vos_source(1), since otherwise it would be impossible to switch from, for example, -localauth back to using regular tokens during a bulk operation.

-verbose

Produces on the standard output stream a detailed trace of the command's execution. If this argument is omitted, only warnings and error messages appear.

-encrypt [<yes|no>]

Enables or disables encrytion for the command so that the operation's results are not transmitted across the network in clear text.

-noresolve

Shows all servers as IP addresses instead of the reverse DNS lookup hostname. -noresolve useful when troubleshooting no such volume and volume moved errors.

-config <configuration file>

Set the location of the configuration file to be used. The default file is /etc/yfs/yfs-client.conf.

-help

Prints the online help for this command. All other valid options are ignored.

OUTPUT

This command shows the output of each command in the file as if it were run normally.

EXAMPLES

Here is an example of using vos source in a vos_interactive(1) session:

   % echo examine root.cell > /tmp/commands.txt
   % vos interactive
   vos> source /tmp/commands.txt
   root.cell
       RWrite: 536871004     ROnly: 536871005
       [128.220.70.76]:7005 /vicepa  536871004 RW On-line
       MaxQuota          5000 K
       Used                13 K
       FileCount           12
       Creation    Sat Nov 23 19:21:39 2013
       Copy        Thu Mar  5 21:45:51 2015
       Backup      Never
       Last Access Mon Jan 25 17:35:08 2016
       Last Update Fri Sep 26 15:46:13 2014
       0 accesses in the past day (i.e., vnode references)

       number of sites -> 3
          server [1.2.7.6]:7005 partition /vicepa RW Site
          server [1.2.7.6]:7005 partition /vicepa RO Site
          server [1.2.3.1]:7005 partition /vicepa RO Site
   vos> quit
   %

SEE ALSO

vos(1), vos_interactive(1), vos_quit(1), vos_sleep(1)

COPYRIGHT

Copyright AuriStor, Inc. 2014-2021. https://www.auristor.com/ All Rights Reserved.

ACKNOWLEDGEMENTS

"AFS" is a registered mark of International Business Machines Corporation, used under license. (USPTO Registration 1598389)

"OpenAFS" is a registered mark of International Business Machines Corporation. (USPTO Registration 4577045)

The "AuriStor" name, log 'S' brand mark, and icon are registered marks of AuriStor, Inc. (USPTO Registrations 4849419, 4849421, and 4928460) (EUIPO Registration 015539653).

"Your File System" is a registered mark of AuriStor, Inc. (USPTO Registrations 4801402 and 4849418).

"YFS" and "AuriStor File System" are trademarks of AuriStor, Inc.