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 2008 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 28 #include "svccfg.h" 29 #include "svccfg_grammar.h" 30 31 struct help_message help_messages[] = { 32 { SCC_VALIDATE, "validate file\n\n" 33 "Process a manifest file without changing the repository." 34 }, 35 { SCC_IMPORT, "import file\n\nImport a manifest into the repository." }, 36 { SCC_EXPORT, "export [-a] {service | pattern} [> file]\n\n" 37 "Print a manifest for service to file, or standard output if not specified." 38 }, 39 { SCC_ARCHIVE, "archive [-a] [> file]\n\n" 40 "Print an archive to file, or standard output if not specified." 41 }, 42 { SCC_RESTORE, "restore file\n\n" 43 "Restore the contents of a previously-generated archive." 44 }, 45 { SCC_APPLY, "apply file\n\nApply a profile." }, 46 { SCC_EXTRACT, "extract [> file]\n\n" 47 "Print a profile to file, or standard output if not specified." }, 48 { SCC_REPOSITORY, "repository file\n\nSet the repository to modify." }, 49 { SCC_INVENTORY, "inventory file\n\n" 50 "Print the services and instances contained in a manifest." 51 }, 52 { SCC_SET, "set [-vV]\n\n" 53 "Without arguments, display current options. Otherwise set the given options." 54 }, 55 { SCC_END, "end\n\nStop processing and exit." }, 56 { SCC_HELP, "help [command]\n\nDisplay help." }, 57 { SCC_LIST, "list [glob_pattern]\n\n" 58 "List children of the currently selected entity." 59 }, 60 { SCC_ADD, "add name\n\n" 61 "Add a new child entity to the currently selected entity." 62 }, 63 { SCC_DELETE, "delete [-f] {name | fmri | pattern}\n\n" 64 "Delete the named child entity or the one indicated by fmri. With -f, delete\n" 65 "running services.\n" 66 }, 67 { SCC_SELECT, "select {name | fmri | pattern}\n\n" 68 "Select the named child entity or the one indicated by fmri." 69 }, 70 { SCC_UNSELECT, "unselect\n\n" 71 "Select the parent of the currently selected entity." 72 }, 73 { SCC_LISTPG, "listpg [glob_pattern]\n\n" 74 "List property groups of the currently selected entity." 75 }, 76 { SCC_ADDPG, "addpg name type [P]\n\n" 77 "Add a new property group to the currently selected entity." 78 }, 79 { SCC_DELPG, "delpg name\n\n" 80 "Delete the named property group from the currently selected entity." 81 }, 82 { SCC_DELHASH, "delhash [-d] manifest\n\n" 83 "Delete the named manifest hash entry (from smf/manifest).\n" 84 "With -d, manifest file doesn't need to exist." 85 }, 86 { SCC_LISTPROP, "listprop [glob_pattern]\n\n" 87 "List property groups and properties of the currently selected entity." 88 }, 89 { SCC_SETPROP, 90 "\tsetprop pg/name = [type:] value\n" 91 "\tsetprop pg/name = [type:] ([value...])\n\n" 92 "Set the pg/name property of the currently selected entity. Values may be\n" 93 "enclosed in double-quotes. Value lists may span multiple lines." 94 }, 95 { SCC_DELPROP, "delprop pg/name\n\n" 96 "Delete the pg/name property of the currently selected entity." 97 }, 98 { SCC_EDITPROP, "editprop\n\n" 99 "Invoke $EDITOR to edit the properties of the currently selected entity." 100 }, 101 { SCC_ADDPROPVALUE, "addpropvalue pg/name [type:] value\n\n" 102 "Add the given value to the named property." 103 }, 104 { SCC_DELPROPVALUE, "delpropvalue pg/name glob_pattern\n\n" 105 "Delete all values matching the glob pattern fron the given property." 106 }, 107 { SCC_SETENV, "setenv [-s | -i | -m method] NAME value\n\n" 108 "Set an environment variable for the given service, instance, or method " 109 "context." 110 }, 111 { SCC_UNSETENV, "unsetenv [-s | -i | -m method] NAME value\n\n" 112 "Unset an environment variable for the given service, instance, or method " 113 "context." 114 }, 115 { SCC_LISTSNAP, "listsnap\n\n" 116 "List snapshots of the currently selected instance." 117 }, 118 { SCC_SELECTSNAP, "selectsnap [snapshot]\n\n" 119 "Select a snapshot of the currently selected instance, or the Editing\n" 120 "snapshot by default." 121 }, 122 { SCC_REVERT, "revert [snapshot]\n\n" 123 "Change the properties of the currently selected instance and its ancestors\n" 124 "to those in a snapshot, or the currently selected snapshot by default." 125 }, 126 { SCC_REFRESH, "refresh\n\n" 127 "Commit the values from the current configuration to the running\n" 128 "snapshot, making them available for use by the currently selected\n" 129 "instance. If the repository subcommand has not been used to select\n" 130 "a repository, inform the instance's restarter to re-read the updated\n" 131 "configuration." 132 }, 133 { 0, NULL } 134 }; 135