US Robotics 7931 Guia do Utilizador Página 252

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 288
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 251
228 Sun StorageTek SAM Archive Configuration and Administration Guide Version 4, Update 6, 04/07
SEF sysevent Functionality
In addition to using the SEF log file, you can use the Solaris sysevent feature to
obtain tape drive SCSI log sense error counter pages 2 and 3 for media analysis. By
default, the SEF sysevent feature is enabled and set to poll once before unload. The
SEF sysevent behavior is controlled by defaults.conf and samset.
In the defaults.conf file, the sef parameter can be used to enable SEF sysevent
feature by equipment ordinal, or to specify the log sense polling frequency. For more
information, see the defaults.conf(4) manu page.
To Create the SEF sysevent Handler
1. Create the /var/tmp/xx file similar to the following:
#!/bin/ksh
echo “$@” >> /var/tmp/xx.dat
exit 0
2. Make the /var/tmp/xx file executable:
# chmod a+rwx /var/tmp/xx
3. Add the SEF sysevent handler to the syseventd file by typing the following:
# syseventadm add -vSUNW -pSUNWsamfs -cDevice -sSEF
/var/tmp/xx \”\$VENDOR\” \”\$PRODUCT\” \”\$USN\” \”\$REV\” \
$TOD \$EQ_ORD \”\$NAME\” \$INQ_TYPE \”\$MEDIA_TYPE\” \”\$VSN\”
\$LABEL_TIME \$LP2_PC0 \$LP2_PC1 \$LP2_PC2 \$LP2_PC3 \$LP2_PC4
\$LP2_PC5 \$LP2_PC6 \$LP3_PC0 \$LP3_PC1 \$LP3_PC2 \$LP3_PC3 \
$LP3_PC4 \$LP3_PC5 \$LP3_PC6 \$WHERE \$sequence
# syseventadm restart
This command creates the
/etc/sysevent/config/SUNW,SUNWsamfs,Device,sysevent.conf file
containing the SEF sysevent handler /var/tmp/xx and loads the event handler
into the syseventd daemon.
Note The syseventadm(1M) command is not supported by the Solaris 8
Operating System. You must manually create the
/etc/sysevent/config/SUNW,SUNWsamfs,Device,sysevent.conf file and
contents, then type pkill -HUP syseventd to restart the syseventd daemon.
4. To load the SEF sysevent handler, use the command pkill -HUP syseventd to
activate the /var/tmp/xx SEF sysevent handler.
For more information about SEF sysevent usage, see the sefsysevent(4) man
page.
Vista de página 251
1 2 ... 247 248 249 250 251 252 253 254 255 256 257 ... 287 288

Comentários a estes Manuais

Sem comentários