12345678910111213141516171819 |
- <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Actual Device Identity</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><meta name="keywords" content="Intellon, Atheros, Qualcomm, HomePlug, powerline, communications, INT6000, INT6300, INT6400, AR7400, AR7420"><link rel="home" href="index.html" title="Qualcomm Atheros Open Powerline Toolkit"><link rel="up" href="ch06.html" title="Chapter 6. Scripting"><link rel="prev" href="ch06s05.html" title="Random Device Identity"><link rel="next" href="ch06s07.html" title="Editing a PIB"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
- Actual Device Identity
- </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch06s05.html">Prev</a> </td><th width="60%" align="center">Chapter 6.
- Scripting
- </th><td width="20%" align="right"> <a accesskey="n" href="ch06s07.html">Next</a></td></tr></table><hr></div><div class="section" title="Actual Device Identity"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="scripting-actual-identity"></a>
- Actual Device Identity
- </h2></div></div></div><p>
- Some scripts need actual <acronym class="acronym">MAC</acronym>, <acronym class="acronym">DAK</acronym> or <acronym class="acronym">NMK</acronym> strings as arguments to Toolkit programs. Program <a class="ulink" href="int6kid.7.html" target="_top">int6kid</a> can be used for this purpose. We demonstrate one way to define symbols here and demonstrate how to use them later on.
- </p><pre class="programlisting">
- DAK=$(int6kid -Di ${NIC1})
- NMK=$(int6kid -Mi ${NIC1})
- </pre><p>
- The first statement, above, uses program <a class="ulink" href="int6kid.7.html" target="_top">int6kid</a> to echo the <acronym class="acronym">DAK</acronym> (<strong class="userinput"><code>-D</code></strong>) from the device connected to Ethernet interface <code class="varname">NIC1</code> and assign the output to symbol <acronym class="acronym">DAK</acronym>. The second statement uses program <a class="ulink" href="int6kid.7.html" target="_top">int6kid</a> to echo the <acronym class="acronym">NMK</acronym> (<strong class="userinput"><code>-M</code></strong>) of the device connected to Ethernet interface <code class="varname">NIC1</code> and assign the output to symbol <acronym class="acronym">NMK</acronym>.
- </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch06s05.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch06s07.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
- Random Device Identity
- </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">
- Editing a PIB
- </td></tr></table></div></body></html>
|