char *argv[];
{
- char *args[6], buf[BUFSIZ], **service, **host;
+ char *args[6], buf[BUFSIZ], **service, **host, *motd;
struct save_queue *services, *hosts;
int count = 0, scream();
- init_sms_err_tbl();
- init_krb_err_tbl();
-
if ((whoami = rindex(argv[0], '/')) == NULL)
whoami = argv[0];
else
goto punt;
}
+ status = sms_motd(&motd);
+ if (status) {
+ com_err(whoami, status, " unable to check server status");
+ exit(2);
+ }
+ if (motd) {
+ fprintf(stderr, "The SMS server is currently unavailable:\n%s\n", motd);
+ sms_disconnect();
+ exit(2);
+ }
status = sms_auth("smscheck");
if (status) {
(void) sprintf(buf, "\nAuthorization failure -- run \"kinit\" \