survivor: Ndd Check Module

SURVIVOR: `ndd` Check Module
About `ndd` Dependencies Arguments Description Examples
About `ndd`
basics |
Module Type | Scheduler | Remote
check | No | Yes
syntax |
         module ndd {
           driver <file>
           [instance <number>]
           parameter <string>
           value <relation>
         }
         via <transport>
### Dependencies None ### Arguments
Name | Type | Value
driver | file | Kernel driver whose configuration parameters will be checked.
instance | optional number | Driver instance to check. The instance parameter for driver will be set to instance before checking the value of parameter.
parameter | string | Configuration parameter to check.
value | relation | Desired value of parameter.
1. ### Description The `ndd` module uses the `ndd` utility included with Solaris to query the value of certain configuration parameters of kernel drivers. If the current value does not match the desired value, then a problem is returned. ### Examples To query instance 0 of the `/dev/eri` driver for the parameter `link_speed` and raise an error if not 100:
            module ndd {
              driver /dev/eri
              instance 0
              parameter link_speed
              value eq[100]
            }
            via remote
2. To query the `/dev/dmfe0` driver for the parameter `link_mode` and raise an error if not 1:
            module ndd {
              driver /dev/dmfe0
              parameter link_mode
              value eq[1]
            }
            via remote
$Date: 2006/11/19 21:00:18 $ $Revision: 0.6 $ | keywords driver instance parameter value