|
|||
1. Solaris Management Tools (Road Map) 2. Working With the Solaris Management Console (Tasks) 3. Working With the Sun Java Web Console (Tasks) 4. Managing User Accounts and Groups (Overview) 5. Managing User Accounts and Groups (Tasks) 6. Managing Client-Server Support (Overview) 7. Managing Diskless Clients (Tasks) 8. Introduction to Shutting Down and Booting a System 9. Shutting Down and Booting a System (Overview) 10. Shutting Down a System (Tasks) 11. Modifying Solaris Boot Behavior (Tasks) 12. Booting a Solaris System (Tasks) 13. Troubleshooting Booting a Solaris System (Tasks) 14. Managing the Solaris Boot Archives (Tasks) 15. x86: GRUB Based Booting (Reference) 16. Managing Services (Overview) Managing SMF Services (Task Map) Using Run Control Scripts (Task Map) Troubleshooting the Service Management Facility 18. Managing Software (Overview) 19. Managing Software With Solaris System Administration Tools (Tasks) 20. Managing Software by Using Package Commands (Tasks) 21. Managing Solaris Patches by Using the patchadd Command (Tasks) |
Monitoring SMF ServicesThe following tasks show how to monitor SMF services. How to List the Status of a ServiceThis procedure can be used to show what services are running.
Example 17-1 Showing the Status of the rlogin ServiceThis example shows the status of a service that includes many contracts. % svcs -l network/login:rlogin fmri svc:/network/login:rlogin enabled true state online next_state none restarter svc:/network/inetd:/default contract_id 42325 41441 40776 40348 40282 40197 39025 38381 38053\ 33697 28625 24652 23689 15352 9889 7194 6576 6360 5387 1475 3015\ 6545 6612 9302 9662 10484 16254 19850 22512 23394 25876 26113 27326\ 34284 37939 38405 38972 39200 40503 40579 41129 41194 Example 17-2 Showing the Status of the sendmail ServiceThis example shows the status of a service that includes dependencies. % svcs -l network/smtp:sendmail fmri svc:/network/smtp:sendmail enabled true state online next_state none restarter svc:/system/svc/restarter:default contract_id 29462 dependency require_all/refresh file://localhost/etc/nsswitch.conf (-) dependency require_all/refresh file://localhost/etc/mail/sendmail.cf (-) dependency optional_all/none svc:/system/system-log (online) dependency require_all/refresh svc:/system/identity:domain (online) dependency require_all/refresh svc:/milestone/name-services (online) dependency require_all/none svc:/network/service (online) dependency require_all/none svc:/system/filesystem/local (online) Example 17-3 Showing the Status of all ServicesThe following command lists all services that are installed on the system as well as the status of each service. The command displays those services that are disabled as well as those that are enabled. % svcs -a Example 17-4 Showing the Status of Services Controlled by inetdThe following command lists services that are controlled by inetd. Each service's FMRI is listed, along with the run state and whether the service is enabled or disabled. % inetadm How to Show Which Services Are Dependent on a Service InstanceThis procedure shows how to determine which service instances depend on the specified service.
Example 17-5 Displaying the Service Instances That Are Dependent on the Multiuser MilestoneThe following example shows how to determine which service instances are dependent on the multiuser milestone. % svcs -D milestone/multi-user STATE STIME FMRI online Apr_08 svc:/milestone/multi-user-server:default How to Show Which Services a Service Is Dependent OnThis procedure shows how to determine which services a specified service instance is dependent on.
Example 17-6 Displaying the Service Instances That the Multiuser Milestone Is Dependent OnThe following example shows the services instances that the multiuser milestone is dependent on. % svcs -d milestone/multi-user:default STATE STIME FMRI disabled Aug_24 svc:/platform/sun4u/sf880drd:default online Aug_24 svc:/milestone/single-user:default online Aug_24 svc:/system/utmp:default online Aug_24 svc:/system/system-log:default online Aug_24 svc:/system/system-log:default online Aug_24 svc:/system/rmtmpfiles:default online Aug_24 svc:/network/rpc/bind:default online Aug_24 svc:/milestone/name-services:default online Aug_24 svc:/system/filesystem/local:default online Aug_24 svc:/system/mdmonitor:default |
||
|