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 2010 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 | fmri]\n\n" 33 "Validate a manifest file without changing the repository.\n" 34 "Validate an instance FMRI against the template specifications." 35 }, 36 { SCC_IMPORT, "import [-p outfile] [-V] paths...\n\n" 37 "Import manifests into the repository. paths can be one or more\n" 38 "manifest files or directories. If directories are specified, they\n" 39 "will be searched for files with a .xml extension. If -p is specified,\n" 40 "a progress message will be written to outfile as each manifest is\n" 41 "imported. With -V force strict adherence to the template specifications." 42 }, 43 { SCC_EXPORT, "export [-a] {service | pattern} [> file]\n\n" 44 "Print a manifest for service to file, or standard output if not specified." 45 }, 46 { SCC_ARCHIVE, "archive [-a] [> file]\n\n" 47 "Print an archive to file, or standard output if not specified." 48 }, 49 { SCC_RESTORE, "restore file\n\n" 50 "Restore the contents of a previously-generated archive." 51 }, 52 { SCC_APPLY, "apply file\n\nApply a profile." }, 53 { SCC_EXTRACT, "extract [> file]\n\n" 54 "Print a profile to file, or standard output if not specified." }, 55 { SCC_REPOSITORY, "repository file\n\nSet the repository to modify." }, 56 { SCC_INVENTORY, "inventory file\n\n" 57 "Print the services and instances contained in a manifest." 58 }, 59 { SCC_SET, "set [-vV]\n\n" 60 "Without arguments, display current options. Otherwise set the given options." 61 }, 62 { SCC_END, "end\n\nStop processing and exit." }, 63 { SCC_HELP, "help [command]\n\nDisplay help." }, 64 { SCC_LIST, "list [glob_pattern]\n\n" 65 "List children of the currently selected entity." 66 }, 67 { SCC_ADD, "add name\n\n" 68 "Add a new child entity to the currently selected entity." 69 }, 70 { SCC_DELETE, "delete [-f] {name | fmri | pattern}\n\n" 71 "Delete the named child entity or the one indicated by fmri. With -f, delete\n" 72 "running services.\n" 73 }, 74 { SCC_SELECT, "select {name | fmri | pattern}\n\n" 75 "Select the named child entity or the one indicated by fmri." 76 }, 77 { SCC_UNSELECT, "unselect\n\n" 78 "Select the parent of the currently selected entity." 79 }, 80 { SCC_LISTPG, "listpg [glob_pattern]\n\n" 81 "List property groups of the currently selected entity." 82 }, 83 { SCC_ADDPG, "addpg name type [P]\n\n" 84 "Add a new property group to the currently selected entity." 85 }, 86 { SCC_DELPG, "delpg name\n\n" 87 "Delete the named property group from the currently selected entity." 88 }, 89 { SCC_DELHASH, "delhash [-d] manifest\n\n" 90 "Delete the named manifest hash entry (from smf/manifest).\n" 91 "With -d, manifest file doesn't need to exist." 92 }, 93 { SCC_CLEANUP, "cleanup\n\n" 94 "Cleanup any service or instances that no longer have manifest files that\n" 95 "support the services or instances in /lib/svc/manifest or /var/svc/manifest." 96 }, 97 { SCC_LISTPROP, "listprop [glob_pattern]\n\n" 98 "List property groups and properties of the currently selected entity." 99 }, 100 { SCC_SETPROP, 101 "\tsetprop pg/name = [type:] value\n" 102 "\tsetprop pg/name = [type:] ([value...])\n\n" 103 "Set the pg/name property of the currently selected entity. Values may be\n" 104 "enclosed in double-quotes. Value lists may span multiple lines." 105 }, 106 { SCC_DELPROP, "delprop pg/name\n\n" 107 "Delete the pg/name property of the currently selected entity." 108 }, 109 { SCC_EDITPROP, "editprop\n\n" 110 "Invoke $EDITOR to edit the properties of the currently selected entity." 111 }, 112 { SCC_DESCRIBE, "describe [-v] [-t] [propertygroup/property]\n\n" 113 "Describe the current properties. With -v, describe verbosely. With -t,\n" 114 "show only template data, not current properties." 115 }, 116 { SCC_ADDPROPVALUE, "addpropvalue pg/name [type:] value\n\n" 117 "Add the given value to the named property." 118 }, 119 { SCC_DELPROPVALUE, "delpropvalue pg/name glob_pattern\n\n" 120 "Delete all values matching the glob pattern fron the given property." 121 }, 122 { SCC_SETENV, "setenv [-s | -i | -m method] NAME value\n\n" 123 "Set an environment variable for the given service, instance, or method " 124 "context." 125 }, 126 { SCC_UNSETENV, "unsetenv [-s | -i | -m method] NAME value\n\n" 127 "Unset an environment variable for the given service, instance, or method " 128 "context." 129 }, 130 { SCC_LISTSNAP, "listsnap\n\n" 131 "List snapshots of the currently selected instance." 132 }, 133 { SCC_SELECTSNAP, "selectsnap [snapshot]\n\n" 134 "Select a snapshot of the currently selected instance, or the Editing\n" 135 "snapshot by default." 136 }, 137 { SCC_REVERT, "revert [snapshot]\n\n" 138 "Change the properties of the currently selected instance and its ancestors\n" 139 "to those in a snapshot, or the currently selected snapshot by default." 140 }, 141 { SCC_REFRESH, "refresh\n\n" 142 "Commit the values from the current configuration to the running\n" 143 "snapshot, making them available for use by the currently selected\n" 144 "instance. If the repository subcommand has not been used to select\n" 145 "a repository, inform the instance's restarter to re-read the updated\n" 146 "configuration." 147 }, 148 { 0, NULL } 149 }; 150