File: ch06s06.html

package info (click to toggle)
open-plc-utils 0.0.6%2Bgit20230504.1ba7d5a0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,212 kB
  • sloc: ansic: 60,875; xml: 16,179; sh: 1,216; makefile: 698
file content (19 lines) | stat: -rw-r--r-- 3,114 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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>