Keywords: Intellon, Atheros, Qualcomm, HomePlug, powerline, communications, INT6000, INT6300, INT6400, AR7400, AR7420

Random Device Identity
Prev | Chapter 6. Scripting | Next

## Random Device Identity

Some Atheros scripts need random MAC, DAK or NMK strings as arguments to Toolkit programs. Program rkey can be used for this purpose. We demonstrate one way to define symbols here and demonstrate how to use symbols later on.

    DAK=$(rkey secret.key -D)
    NMK=$(rkey secret.key -M)

The first statement, above, uses program rkey to read file `secret.key` and compute a random DAK (`-D`). The ouput string is assigned to symbol DAK. The second statement uses program rkey to read the file `secret.key` and compute a random NMK (`-M`). The output is assigned to symbol NMK.

Prev | Up | Next
Checking Device Connection | Home | Actual Device Identity