Definition at line 791 of file did.c.
References app_context, app_initialize(), Curr_view_opt, Curr_view_opt_par, dic_disable_padding(), dim_no_threads(), dim_set_dns_node(), dim_usleep(), dis_disable_padding(), do_got_service_list(), do_show_clients(), gui_initialize(), i, sprintf(), and toplevel_widget.
794 char opt_str[20], *ptr;
806 if(argv[1][0] ==
'-')
808 sprintf(opt_str,
"%s",&argv[1][1]);
809 if((!strncmp(opt_str,
"node",4)) ||
810 (!strncmp(opt_str,
"NODE",4)))
812 else if((!strncmp(opt_str,
"all",3)) ||
813 (!strncmp(opt_str,
"ALL",3)))
815 else if((!strncmp(opt_str,
"dns",3)) ||
816 (!strncmp(opt_str,
"DNS",3))) {
818 sprintf(text,
"DIM_DNS_NODE=%s",opt_str+4);
822 else if((!strncmp(opt_str,
"service",7)) ||
823 (!strncmp(opt_str,
"SERVICE",7)))
825 else if((!strncmp(opt_str,
"error",5)) ||
826 (!strncmp(opt_str,
"ERROR",5)))
828 else if((!strncmp(opt_str,
"help",4)) ||
829 (!strncmp(opt_str,
"HELP",4)))
831 printf(
"Did - DIM Information Display\n");
832 printf(
"\t-all Show ALL Servers\n");
833 printf(
"\t-dns=<str> Show Servers with DIM_DNS_NODE provided by <str>\n");
834 printf(
"\t-service=<str> Show Servers providing Service <str>\n");
835 printf(
"\t-node=<nodename> Show Servers on Node <nodename>\n");
836 printf(
"\t-error Show Servers in Error\n");
837 printf(
"\t-help Show this message\n\n");
844 if(!(ptr = strchr(argv[1],
'=')))
846 if( (ptr = strchr(argv[2],
'=')) )
861 for(i = 0;*ptr; ptr++, i++)
void dis_disable_padding()
int dim_set_dns_node(char *node)
void dim_usleep(int usecs)
Widget gui_initialize(int argc, char **argv)
void do_got_service_list(SERVER *servp)
void app_initialize(int tag)
char Curr_view_opt_par[80]
void dic_disable_padding()
void do_show_clients(SERVER *servp)
SERVER * Got_Service_List
sprintf(name1,"NewService%d", i)