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