krb problems

Dr A V Le Blanc LeBlanc at mcc.ac.uk
Sun Mar 19 17:37:47 CET 2000


On Sun, Mar 19, 2000 at 02:47:01PM +0100, Love wrote:
> You can try to find out what time the remove db-servers are in by doing
> 
>   udebug -server server-in-CellServDB -port 7004

Incidentally, I wish arla'd udebug had a -long option like
the transarc one.  The following patch allows us to run

     udebug -long servername 7004

but I notice that the command line printed by 'usage' doesn't
work at present anyway, as in:

> udebug -servers rock -port 7004
udebug: Version $Id: udebug.c,v 1.9 2000/03/03 08:51:53 assar Exp $
usage: udebug -servers server ... -port port -noauth

Anyway, here is the patch which will allow '-long' to work, but
not to fix the command line processing.

     -- Owen
     LeBlanc at mcc.ac.uk

--- udebug.c.orig	Fri Mar  3 08:51:53 2000
+++ udebug.c	Sun Mar 19 16:29:40 2000
@@ -40,4 +40,6 @@
 RCSID("$Id: udebug.c,v 1.9 2000/03/03 08:51:53 assar Exp $");
 
+static int verbose = 0;
+
 static void
 usage(void)
@@ -151,10 +153,17 @@
 	
 	if (db.amSyncSite) {
-	    int i;
-	    ubik_sdebug sdb;
 
 	    printf("I'm the synchost for %d seconds more (%s)\n",
 		   db.syncSiteUntil - db.now, 
 		   myctime(db.syncSiteUntil));
+	} else {
+	    server.s_addr = htonl(db.syncHost);
+	    printf("I'm not the synchost, but %s is.\n",
+		   inet_ntoa(server));    
+	}
+
+	if (verbose || db.amSyncSite) {
+	    int i;
+	    ubik_sdebug sdb;
 
 	    printf("Recover state is 0x%x\n", db.recoveryState);
@@ -192,8 +201,4 @@
 
 	    }
-	} else {
-	    server.s_addr = htonl(db.syncHost);
-	    printf("I'm not the synchost, but %s is.\n",
-		   inet_ntoa(server));    
 	}
     }
@@ -221,4 +226,6 @@
 	    else if (strcmp(*argv, "-port") == 0) 
 		state = PORT;
+	    else if (strcmp(*argv, "-long") == 0)
+		verbose = 1;
 	    else 
 		usage();





More information about the Arla-drinkers mailing list