/*
- * $Id: cachemgr.cc,v 1.11 1996/07/09 22:58:06 wessels Exp $
+ * $Id: cachemgr.cc,v 1.12 1996/07/22 17:20:15 wessels Exp $
*
* DEBUG: Section 0 CGI Cache Manager
* AUTHOR: Harvest Derived
SERVER,
LOG,
PARAM,
- STATS_G,
+ STATS_I,
+ STATS_F,
+ STATS_D,
STATS_O,
STATS_VM,
STATS_U,
"server_list",
"log",
"parameter",
- "stats/general",
+ "stats/ipcache",
+ "stats/fqdncache",
+ "stats/dns",
"stats/objects",
"stats/vm_objects",
"stats/utilization",
printf("<OPTION VALUE=\"stats/objects\">Objects\n");
printf("<OPTION VALUE=\"stats/vm_objects\">VM_Objects\n");
printf("<OPTION VALUE=\"server_list\">Cache Server List\n");
- printf("<OPTION VALUE=\"stats/general\">IP Cache Contents\n");
+ printf("<OPTION VALUE=\"stats/ipcache\">IP Cache Contents\n");
+ printf("<OPTION VALUE=\"stats/fqdncache\">FQDN Cache Contents\n");
+ printf("<OPTION VALUE=\"stats/dns\">DNS Server Statistics\n");
printf("<OPTION VALUE=\"shutdown\">Shutdown Cache (password required)\n");
printf("<OPTION VALUE=\"refresh\">Refresh Object (URL required)\n");
#ifdef REMOVE_OBJECT
} else if (!strcmp(operation, "parameter") ||
!strcmp(operation, "Cache Parameters")) {
op = PARAM;
- } else if (!strcmp(operation, "stats/general") ||
- !strcmp(operation, "General Statistics")) {
- op = STATS_G;
+ } else if (!strcmp(operation, "stats/ipcache") ||
+ !strcmp(operation, "IP Cache")) {
+ op = STATS_I;
+ } else if (!strcmp(operation, "stats/fqdncache") ||
+ !strcmp(operation, "FQDN Cache")) {
+ op = STATS_F;
+ } else if (!strcmp(operation, "stats/dns") ||
+ !strcmp(operation, "DNS Server Stats")) {
+ op = STATS_D;
} else if (!strcmp(operation, "stats/vm_objects") ||
!strcmp(operation, "VM_Objects")) {
op = STATS_VM;
case SERVER:
case LOG:
case PARAM:
- case STATS_G:
+ case STATS_I:
+ case STATS_F:
+ case STATS_D:
case STATS_O:
case STATS_VM:
case STATS_U:
printf("<OPTION VALUE=\"stats/objects\">Objects\n");
printf("<OPTION VALUE=\"stats/vm_objects\">VM_Objects\n");
printf("<OPTION VALUE=\"server_list\">Cache Server List\n");
- printf("<OPTION VALUE=\"stats/general\">IP Cache Contents\n");
+ printf("<OPTION VALUE=\"stats/ipcache\">IP Cache Contents\n");
+ printf("<OPTION VALUE=\"stats/fqdncache\">FQDN Cache Contents\n");
+ printf("<OPTION VALUE=\"stats/dns\">DNS Server Statistics\n");
printf("</SELECT>");
printf("<INPUT TYPE=\"hidden\" NAME=\"host\" VALUE=\"%s\">\n", hostname);
printf("<INPUT TYPE=\"hidden\" NAME=\"port\" VALUE=\"%d\">\n", portnum);
case CACHED:
case SERVER:
case LOG:
- case STATS_G:
+ case STATS_I:
+ case STATS_F:
+ case STATS_D:
case STATS_O:
case STATS_VM:
case STATS_IO:
case CACHED:
case SERVER:
case LOG:
- case STATS_G:
+ case STATS_I:
+ case STATS_F:
+ case STATS_D:
case STATS_IO:
case STATS_HDRS:
case STATS_FDS: