xref: /titanic_50/usr/src/cmd/scadm/sparc/mpxu/common/help.c (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28 
29 /*
30  * help.c: support for the scadm help option (display list of scadm commands)
31  */
32 
33 #include <libintl.h>
34 #include <stdio.h>
35 
36 #include "adm.h"
37 
38 
39 void
ADM_Process_help()40 ADM_Process_help()
41 {
42 	(void) printf("\n\n%s\n\n", gettext(
43 	    "USAGE: scadm <command> [options]\n"
44 	    "  For a list of commands, type \"scadm help\"\n"
45 	    "\n"
46 	    "scadm - COMMANDS SUPPORTED\n"
47 	    "  help, date, set, show, resetrsc, download, send_event, "
48 	    "modem_setup,\n"
49 	    "  useradd, userdel, usershow, userpassword, userperm, "
50 	    "shownetwork,\n"
51 	    "  consolehistory, fruhistory, loghistory, version\n"
52 	    "\n"
53 	    "scadm - COMMAND DETAILS\n"
54 	    "  scadm help => this message\n"
55 	    "  scadm date [-s] | [[mmdd]HHMM | mmddHHMM[cc]yy][.SS] => print "
56 	    "or set date\n"
57 	    "  scadm set <variable> <value> => set variable to value\n"
58 	    "  scadm show [variable] => show variable(s)\n"
59 	    "  scadm resetrsc [-s] => reset SC (-s soft reset)\n"
60 	    "  scadm download [boot] <file> => program firmware or [boot] "
61 	    "monitor\n"
62 	    "  scadm send_event [-c] \"message\" => send message as event "
63 	    "(-c CRITICAL)\n"
64 	    "  scadm modem_setup => connect to modem port\n"
65 	    "  scadm useradd <username> => add SC user account\n"
66 	    "  scadm userdel <username> => delete SC user account\n"
67 	    "  scadm usershow [username] => show user details\n"
68 	    "  scadm userpassword <username> => set user password\n"
69 	    "  scadm userperm <username> [cuar] => set user permissions\n"
70 	    "  scadm shownetwork => show network configuration\n"
71 	    "  scadm consolehistory [-a] => show SC console log\n"
72 	    "  scadm fruhistory [-a] => show SC FRU log\n"
73 	    "  scadm loghistory [-a] => show SC event log\n"
74 	    "  scadm version [-v] => show SC version (-v verbose)"));
75 }
76