NAME

vos_eachvl - Iterate Location Service servers

SYNOPSIS

vos eachfs [-format <format string>] [-execute] [-quitonerror [<yes|no>]] [-cell <cell name>] [-noauth] [-auth] [-localauth] [-encrypt [<yes|no>]] [-verbose] [-noresolve] [-config <configuration file>] [-help]

DESCRIPTION

vos eachvl enumerates servers used to provide the Location Service and, for each, will expand a user-specified format string. Optionally, the result of expansion may be interpreted as a shell command and invoked (see -execute).

OPTIONS

-format

Describe how to print each iterated location server. The format string is a C-style %-escaped string with the following escapes available:

%

As is typical of %-escaped strings, %% will be rendered as a single % in the output.

s

The server's endpoint. Server endpoints may be modified by specifying one or more of the following flags between the % and s:

1

Determine the first-responding address of an endpoint; useful mostly for multi-homed servers. If a server is non-responsive, this flag will trigger an error.

0

Like 1, but fall back to the first registered endpoint if none of the endpoints are responsive rather than raising an error.

h

Print only the host component of an endpoint, rather than host and port.

n

Do not attempt to resolve the server's address back to a hostname, as if -noresolve had been specified.

p

Print only the port component of an endpoint, rather than host and port.

-execute

Interpret the format string as a command to be run. If it starts with the string "vos ", the command will be run within the existing process, otherwise it will be passed to a shell.

-quitonerror

When quit on error mode is enabled, -execute command iteration will halt on non-zero exit status.

-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.

-noauth

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

-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.

-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 or vos source, 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.

EXAMPLES

vos eachvl -format 'Location Service at %hs (%nhs)'

Enumerate all Location Service servers, printing the DNS and IP address of each.

vos eachvl -format 'rxdebug -version -rxpeer %ns' -execute

Interrogate each Location Service server for its version using rx debug packets.

PRIVILEGE REQUIRED

None

SEE ALSO

vos(1), vos_listfs(1), vos_eachvol(1), vos_eachfs(1)

COPYRIGHT

COPYRIGHT

Copyright AuriStor, Inc. 2014-2019. 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.