Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Administration: Common Tasks Oracle Solaris 11 Information Library |
1. Locating Information About Oracle Solaris Commands
2. Managing User Accounts and Groups (Overview)
3. Managing User Accounts and Groups (Tasks)
4. Booting and Shutting Down an Oracle Solaris System
5. Working With Oracle Configuration Manager
6. Managing Services (Overview)
Service Configuration Repository
SMF Administrative and Programming Interfaces
SMF Command-Line Administrative Utilities
Service Management Configuration Library Interfaces
SMF Properties and Property Groups
When to Use Run Levels or Milestones
Determining a System's Run Level
What Happens When the System Is Brought to Run Level 3
9. Managing System Information (Tasks)
10. Managing System Processes (Tasks)
11. Monitoring System Performance (Tasks)
12. Managing Software Packages (Tasks)
14. Scheduling System Tasks (Tasks)
15. Setting Up and Administering Printers by Using CUPS (Tasks)
16. Managing the System Console, Terminal Devices, and Power Services (Tasks)
17. Managing System Crash Information (Tasks)
18. Managing Core Files (Tasks)
19. Troubleshooting System and Software Problems (Tasks)
20. Troubleshooting Miscellaneous System and Software Problems (Tasks)
There are many ways to view, modify, or delete information by using SMF. This section discusses which methods are best for which uses.
You can use the svccfg and svcprop commands to view information in the service configuration repository. For a complete description of these commands, see the svccfg(1M) and svcprop(1) man pages.
svcprop – Lists the values assigned to property groups or properties in running snapshot. Because this command combines data for the service, and service instance, it provides a comprehensive view of the data.
svccfg listpg – Lists information about property groups in the selected service or service instance. All property group names, types, and flags are listed.
svccfg listprop – Lists information about properties and property group in the selected service or service instance. For property groups, the names, types and flags are listed. For properties, the names, types and values are listed.
-l layer_name – Lists the properties and property groups within the named layer in a service or service instance. Using all as a layer name lists all of the layers and properties for that service. Note that each service and service instance is displayed separately.
-f – Lists the file name that a property came from.
-o – Selects the fields to display.
svccfg listcust – Lists any site customizations in the site-profile or admin layer. Also lists any masked entries for the selected service or service instance.
-M – Lists only masked entities.
-L – Shows all local customizations, which includes both administrative customizations and site profile customizations.
You can modify information about a service or service instance by using a manifest, or a profile, or by using the svccfg command. Any changes you make with the svccfg command are recorded in the admin layer. The following list includes some of the options that you can use to modify information by using the svccfg command:
addpg – Adds a property group to the selected service or service instance
addpropvalue – Assigns an additional value to a existing property
setenv – Sets an environment variable for a service or service instance
setprop – Sets the value of a named property in the selected service
setnotify – Sets notification parameters for software events and FMA event classes
You can delete information about a service or service instance by using the svccfg command. The following list includes some of the options that you can use to remove information by using the svccfg command:
delcust – Deletes any administrative customizations for the selected service
delpropvalue – Deletes all property values that match the given string
unsetenv – Removes an environment variable for a service or service instance
When you delete information from the repository one of two things happen, either the entity will be hidden or the entity will be removed. Any information that has been defined only in the admin layer will be removed. Any information from a manifest or profile will be hidden, so that the standard commands will not display the information. The information is hidden so that if you need to undo the deletion, you readily will have the information available.