2006-05-21 Paul Jakma <paul.jakma@sun.com>
* vtysh.c: (vtysh_show_logging_cmd) Suppress output for daemons
which are not running (Andrew Schorr).
+2006-05-21 Paul Jakma <paul.jakma@sun.com>
+
+ * vtysh.c: (vtysh_show_logging_cmd) Suppress output for daemons
+ which are not running (Andrew Schorr).
+
2006-05-17 Paul Jakma <paul.jakma@sun.com>
* vtysh.c: (general) Add 'show logging' command.
char line[] = "show logging\n";
for (i = 0; i < VTYSH_INDEX_MAX; i++)
- {
- fprintf (stdout,"Logging configuration for %s:\n", vtysh_client[i].name);
- ret = vtysh_client_execute (&vtysh_client[i], line, stdout);
- fprintf (stdout,"\n");
- }
-
+ if ( vtysh_client[i].fd >= 0 )
+ {
+ fprintf (stdout,"Logging configuration for %s:\n",
+ vtysh_client[i].name);
+ ret = vtysh_client_execute (&vtysh_client[i], line, stdout);
+ fprintf (stdout,"\n");
+ }
+
return ret;
}