Platform Notes: The Sun Quad FastEthernet Device Driver

Noninteractive and Interactive Modes

You can use the ndd utility in two modes:

In noninteractive mode, you invoke the utility to execute a specific command. Once the command is executed, you exit the utility. In interactive mode, you can use the utility to get or set more than one parameter value. Refer to the ndd(1M) man page for more information.

To Use the ndd Utility in Noninteractive Mode

This section describes how to modify and display parameter values.

  1. To modify a parameter value, use the -set option.

    If you invoke the ndd utility with the -set option, the utility passes value, which must be specified down to the named /dev/qfe driver instance, and assigns it to the parameter:


    # ndd -set /dev/qfe parameter_value

  2. To display the value of a parameter, specify the parameter name (and omit the value).

    When you omit the -set option, a query operation is assumed and the utility queries the named driver instance, retrieves the value associated with the specified parameter, and prints it:


    # ndd /dev/qfe parameter

To Use the ndd Utility in Interactive Mode
  1. To modify a parameter value in interactive mode, specify ndd /dev/qfe, as shown below.

    The ndd utility then prompts you for the name of the parameter:


    # ndd /dev/qfe
    name to get/set? parameter_name_or_?

    After entering the parameter name, or ? to view all parameters, the ndd utility prompts you for the parameter value.

  2. To list all the parameters supported by the qfe driver, type ndd /dev/qfe \?.


    # ndd /dev/qfe \? 
    ?                             (read only)
    transceiver_inuse             (read only)
    link_status                   (read only)
    link_speed                    (read only)
    link_mode                     (read only)
    ipg1                          (read and write)
    ipg2                          (read and write)
    use_int_xcvr                  (read and write)
    pace_size                     (read and write)
    adv_autoneg_cap               (read and write)
    adv_100fdx_cap                (read and write)
    adv_100hdx_cap                (read and write)
    adv_10fdx_cap                 (read and write)
    adv_10hdx_cap                 (read and write)
    autoneg_cap                   (read only)
    100fdx_cap                    (read only)
    100hdx_cap                    (read only)
    10fdx_cap                     (read only)
    10hdx_cap                     (read only)
    lp_autoneg_cap                (read only)
    lp_100fdx_cap                 (read only)
    lp_100hdx_cap                 (read only)
    lp_10fdx_cap                  (read only)
    lp_10hdx_cap                  (read only)
    instance                      (read and write)
    lance_mode                    (read and write)
    ipg0                          (read and write)
    #