
Chapter 8 Advanced Topics 219
Enabling the Device Log
You can enable the device log in one of two ways, as described in the following
subsections:
■ “To Enable the Device Log By Using the samset(1M) Command” on page 219
■ “To Enable the Device Log by Editing the defaults.conf File” on page 219
▼ To Enable the Device Log By Using the samset(1M)
Command
● Use the samset(1M) command.
For example:
For eq, specify the equipment ordinal of the device for which you want to log
messages.
For event, specify one or more of the events listed in the samset(1M) man page. If
you specify more than one event, separate them with space characters.
▼ To Enable the Device Log by Editing the defaults.conf
File
1. Become superuser.
2. Use vi(1) or another editor to open file /etc/opt/SUNWsamfs/defaults.conf.
3. Add the devlog directive in the defaults.conf file.
For eq, specify the equipment ordinal of the device for which you want to log
messages.
For event, specify one or more of the events listed in the samset(1M) man page. If
you specify more than one event, separate them with space characters.
When a Sun StorageTek SAM file system starts up, it automatically sets the event
type for each available device to default. You can also use the samset(1M)
command to determine the present settings for each device log.
4. Save and close the defaults.conf file.
# samset devlog eq event
devlog eq event
Komentáře k této Příručce