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