afs_int32 flag;
char *tp;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
tp = as->parms[1].items->data;
if (strcmp(tp, "on") == 0)
flag = 0; /* auth req.: noauthflag is false */
struct rx_connection *tconn;
afs_int32 flags;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
flags = 0;
if (as->parms[1].items)
flags |= BOZO_PRUNEBAK;
struct rx_connection *tconn;
afs_int32 code;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
code = BOZO_Exec(tconn, as->parms[1].items->data);
if (code)
fprintf(stderr, "bos: failed to execute command (%s)\n", em(code));
struct cmd_item *ti;
struct rx_connection *tconn;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
if (!as->parms[1].items) {
fprintf(stderr, "bos: no files to uninstall\n");
return 1;
struct rx_call *tcall;
char destDir[256];
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
if (!as->parms[1].items) {
fprintf(stderr, "bos: no files to install\n");
return 1;
afs_int32 code;
struct cmd_item *ti;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
if (as->parms[1].items == 0) {
code = BOZO_ShutdownAll(tconn);
if (code)
struct rx_connection *tconn;
count = 0;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
if (as->parms[2].items) {
count++;
type = 1;
afs_int32 code;
struct cmd_item *ti;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
if (as->parms[1].items == 0) {
code = BOZO_StartupAll(tconn);
if (code)
afs_int32 code;
struct cmd_item *ti;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
if (as->parms[2].items) {
/* this is really a rebozo command */
if (as->parms[1].items) {
struct rx_connection *tconn;
afs_int32 code;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
code = BOZO_SetCellName(tconn, as->parms[1].items->data);
if (code)
fprintf(stderr, "bos: failed to set cell (%s)\n", em(code));
struct cmd_item *ti;
char name[MAXHOSTCHARS];
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
for (ti = as->parms[1].items; ti; ti = ti->next) {
if (as->parms[2].items) {
if (strlen(ti->data) > MAXHOSTCHARS - 3) {
afs_int32 code;
struct cmd_item *ti;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
for (ti = as->parms[1].items; ti; ti = ti->next) {
code = BOZO_DeleteCellHost(tconn, ti->data);
if (code)
afs_int32 temp;
struct cmd_item *ti;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
for (ti = as->parms[1].items; ti; ti = ti->next) {
temp = atoi(ti->data);
code = BOZO_DeleteKey(tconn, temp);
struct cmd_item *ti;
failed = 0;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
for (ti = as->parms[1].items; ti; ti = ti->next) {
code = BOZO_AddSUser(tconn, ti->data);
if (code) {
int failed;
failed = 0;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
for (ti = as->parms[1].items; ti; ti = ti->next) {
code = BOZO_DeleteSUser(tconn, ti->data);
if (code) {
int i;
char *type, *name, *notifier = NONOTIFIER;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
for (i = 0; i < 6; i++)
parms[i] = "";
for (i = 0, ti = as->parms[3].items; (ti && i < 6); ti = ti->next, i++) {
struct cmd_item *ti;
code = 0;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
for (ti = as->parms[1].items; ti; ti = ti->next) {
code = BOZO_DeleteBnode(tconn, ti->data);
if (code) {
struct cmd_item *ti;
code = 0;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
for (ti = as->parms[1].items; ti; ti = ti->next) {
code = BOZO_SetStatus(tconn, ti->data, BSTAT_NORMAL);
if (code)
struct cmd_item *ti;
code = 0;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
for (ti = as->parms[1].items; ti; ti = ti->next) {
code = BOZO_SetStatus(tconn, ti->data, BSTAT_SHUTDOWN);
if (code)
int error;
printf("Fetching log file '%s'...\n", as->parms[1].items->data);
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
tcall = rx_NewCall(tconn);
code = StartBOZO_GetLog(tcall, as->parms[1].items->data);
if (code) {
char * serviceName;
/* parm 0 is machine name, 1 is partition, 2 is volume, 3 is -all flag */
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
/* find out whether fileserver is running demand attach fs */
if (IsDAFS(tconn)) {
struct rx_connection *tconn;
afs_int32 code, val;
- tconn = GetConn(as, 0);
+ tconn = GetConn(as, 1);
util_GetInt32(as->parms[1].items->data, &val);
code = BOZO_SetRestrictedMode(tconn, val);
if (code)