Air Cleaner User Manual

sbclient
Purpose
Performs all SysBack remote command execution.
Syntax
 sbclient -i hostname
IPaddress
command-argument 
Description
The sbclient command is used to execute all remote commands in SysBack. It can
be used only after Remote Services has been configured on the local and remote
system using the cfgremsvs command, and the remote system has granted
permission to the local user and host to perform remote commands using the
cfgremaccess command.
When cfgremsvs command is run, a user called sbnet is created. All remote
commands are executed under this user. There is no need for the username on the
local system to exist on the remote system for the local user to execute remote
commands. The sbnet user must have UNIX file permissions to access any devices
or directories that any remote user will need to write to.
To specify the remote hostname on which the command will be executed, you can
specify either a hostname or an IP address. The hostname might require the full
domain name to reach the remote host.
Only commands that are specified in the.remote_cmds file on the server can be
executed remotely. Any attempt to execute a remote command not defined in this
file will fail.
The -i flag indicates that the command should read standard input from the user
or that standard input will be piped to the remote command from a local
command. If the -i flag is not specified and input is requested from the remote
command, the command locks up indefinitely. The -i flag can be specified,
however, even if no input is requested, but performance might be affected.
The sbclient command causes the sbserver command to be executed on the remote
system. The sbserver command is a daemon that establishes the socket connection
with the local system, sets environment variables, executes the specified command,
reads input, and writes output to the socket.
In addition to the standard environment variables used for login users, the
following environment variables are automatically set on the remote system before
the remote command is executed:
CLIENT_BDIRS
Specifies one or more backup directories, separated by colons, as defined in the
.remote_access file, to which this host and user can read or write.
CLIENT_DEVS
Specifies one or more devices, separated by colons, as defined in the
.remote_access file, to which this host and user can read or write.
Appendix A. Commands A-59