ch06s06.html 3.0 KB

12345678910111213141516171819
  1. <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">
  2. Actual Device Identity
  3. </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch06s05.html">Prev</a> </td><th width="60%" align="center">Chapter 6. 
  4. Scripting
  5. </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>
  6. Actual Device Identity
  7. </h2></div></div></div><p>
  8. 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.
  9. </p><pre class="programlisting">
  10. DAK=$(int6kid -Di ${NIC1})
  11. NMK=$(int6kid -Mi ${NIC1})
  12. </pre><p>
  13. 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>.
  14. </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">
  15. Random Device Identity
  16.  </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 
  17. Editing a PIB
  18. </td></tr></table></div></body></html>