1*03831d35Sstevel /*
2*03831d35Sstevel * CDDL HEADER START
3*03831d35Sstevel *
4*03831d35Sstevel * The contents of this file are subject to the terms of the
5*03831d35Sstevel * Common Development and Distribution License (the "License").
6*03831d35Sstevel * You may not use this file except in compliance with the License.
7*03831d35Sstevel *
8*03831d35Sstevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*03831d35Sstevel * or http://www.opensolaris.org/os/licensing.
10*03831d35Sstevel * See the License for the specific language governing permissions
11*03831d35Sstevel * and limitations under the License.
12*03831d35Sstevel *
13*03831d35Sstevel * When distributing Covered Code, include this CDDL HEADER in each
14*03831d35Sstevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*03831d35Sstevel * If applicable, add the following below this CDDL HEADER, with the
16*03831d35Sstevel * fields enclosed by brackets "[]" replaced with your own identifying
17*03831d35Sstevel * information: Portions Copyright [yyyy] [name of copyright owner]
18*03831d35Sstevel *
19*03831d35Sstevel * CDDL HEADER END
20*03831d35Sstevel */
21*03831d35Sstevel
22*03831d35Sstevel /*
23*03831d35Sstevel * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24*03831d35Sstevel * Use is subject to license terms.
25*03831d35Sstevel */
26*03831d35Sstevel
27*03831d35Sstevel #pragma ident "%Z%%M% %I% %E% SMI"
28*03831d35Sstevel
29*03831d35Sstevel /*
30*03831d35Sstevel * help.c: support for the scadm help option (display list of scadm commands)
31*03831d35Sstevel */
32*03831d35Sstevel
33*03831d35Sstevel #include <libintl.h>
34*03831d35Sstevel #include <stdio.h>
35*03831d35Sstevel
36*03831d35Sstevel #include "adm.h"
37*03831d35Sstevel
38*03831d35Sstevel
39*03831d35Sstevel void
ADM_Process_help()40*03831d35Sstevel ADM_Process_help()
41*03831d35Sstevel {
42*03831d35Sstevel (void) printf("\n\n%s\n\n", gettext(
43*03831d35Sstevel "USAGE: scadm <command> [options]\n"
44*03831d35Sstevel " For a list of commands, type \"scadm help\"\n"
45*03831d35Sstevel "\n"
46*03831d35Sstevel "scadm - COMMANDS SUPPORTED\n"
47*03831d35Sstevel " help, date, set, show, resetrsc, download, send_event, "
48*03831d35Sstevel "modem_setup,\n"
49*03831d35Sstevel " useradd, userdel, usershow, userpassword, userperm, "
50*03831d35Sstevel "shownetwork,\n"
51*03831d35Sstevel " consolehistory, fruhistory, loghistory, version\n"
52*03831d35Sstevel "\n"
53*03831d35Sstevel "scadm - COMMAND DETAILS\n"
54*03831d35Sstevel " scadm help => this message\n"
55*03831d35Sstevel " scadm date [-s] | [[mmdd]HHMM | mmddHHMM[cc]yy][.SS] => print "
56*03831d35Sstevel "or set date\n"
57*03831d35Sstevel " scadm set <variable> <value> => set variable to value\n"
58*03831d35Sstevel " scadm show [variable] => show variable(s)\n"
59*03831d35Sstevel " scadm resetrsc [-s] => reset SC (-s soft reset)\n"
60*03831d35Sstevel " scadm download [boot] <file> => program firmware or [boot] "
61*03831d35Sstevel "monitor\n"
62*03831d35Sstevel " scadm send_event [-c] \"message\" => send message as event "
63*03831d35Sstevel "(-c CRITICAL)\n"
64*03831d35Sstevel " scadm modem_setup => connect to modem port\n"
65*03831d35Sstevel " scadm useradd <username> => add SC user account\n"
66*03831d35Sstevel " scadm userdel <username> => delete SC user account\n"
67*03831d35Sstevel " scadm usershow [username] => show user details\n"
68*03831d35Sstevel " scadm userpassword <username> => set user password\n"
69*03831d35Sstevel " scadm userperm <username> [cuar] => set user permissions\n"
70*03831d35Sstevel " scadm shownetwork => show network configuration\n"
71*03831d35Sstevel " scadm consolehistory [-a] => show SC console log\n"
72*03831d35Sstevel " scadm fruhistory [-a] => show SC FRU log\n"
73*03831d35Sstevel " scadm loghistory [-a] => show SC event log\n"
74*03831d35Sstevel " scadm version [-v] => show SC version (-v verbose)"));
75*03831d35Sstevel }
76