beautypg.com

Using the command line, Using the shell commands, Sending commands to remote computers – Apple Xsan 1.1 User Manual

Page 107: Appendix b

background image

107

B

A

p

pendix

B

Using the Command Line

This appendix describes Xsan shell commands and
configuration files you can use to work with a SAN from
the command line.

You can use the shell commands and configuration files described here to access, set
up, and manage Xsan SANs, LUNs, storage pools, and volumes from the command line.

Using the Shell Commands

The Xsan command-line utilities are located in

/Library/Filesystems/Xsan/bin

To use a command, type the full path, for example:

$ sudo /Library/Filesystems/Xsan/bin/cvlabel -l -s

or change to the directory before typing the command:

$ cd /Library/Filesystems/Xsan/bin

$ sudo ./cvlabel -l -s

or add

/Library/Filesystems/Xsan/bin

to your shell’s search path.

Sending Commands to Remote Computers

To use commands on a remote computer, first use SSH to log in to the other computer:

$ ssh user@computer

where

user

is a user account on the remote computer and

computer

is its IP address or

DNS name.

Viewing the Man Pages

UNIX-style man pages describing each of the commands are available in

/Library/Filesystems/Xsan/man