ampID.1.html 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. ampID.1
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='amphost.1.html' title=' amphost.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='amplist.1.html' title=' amplist.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. ampID(1) Qualcomm Atheros Open Powerline Toolkit ampID(1)
  22. NAME
  23. ampID - Echo Device Key
  24. SYNOPSIS
  25. ampID [options] [device] [device] [ ... ]
  26. DESCRIPTION
  27. This program prints a single powerline device key or HFID on stdout. It can be used to dynamically define environment
  28. variables or insert command line arguments in scripts at runtime. It is intended to echo a specific key read from a sin‐
  29. gle device but it can be used to echo a specific key type read from several devices by specifying either the Qualcomm
  30. Atheros Local Management Address or a broadcast address.
  31. This program is, in some sense, the inverse of modpib but it reads the key and HFID directly from the powerline device
  32. instead of reading from a PIB file.
  33. This program is part of the Qualcomm Atheros Powerline Toolkit. See the plc man page for an overview and installation
  34. instructions.
  35. OPTIONS
  36. -A Prints the Ethernet address (MAC) for each specified device. This option and options -D, -M, -N, -S and -U are
  37. mutually exclusive.
  38. -D Prints the Device Access Key (DAK) for each specified device. This option and options -A, -M, -N, -S and -U are
  39. mutually exclusive.
  40. -e Redirects stderr messages to stdout. By convention status and error messages are printed on stderr while primary
  41. program output is printed on stdout. This option prints all output on stdout in cases where this is desired.
  42. -i interface
  43. Select the host Ethernet interface. All requests are sent via this host interface and only reponses received via
  44. this host interface are recognized. The default interface is eth1 because most people use eth0 as their principle
  45. network connection; however, if environment string &quot;PLC&quot; is defined then it takes precedence over the default
  46. interface. This option then takes precedence over either default.
  47. -n Append a newline to the end of each key. Newlines are omitted by default so that program output can be used as
  48. the raw input to another program. If you want the newline then you must request it with this option.
  49. -M Prints the Network Membership Key (NMK) for each specified device. This option and options -A, -D, -N, -S and -U
  50. are mutually exclusive.
  51. -N Prints the network HFID string for each specified device. This option and options -A, -D, -M, -S and -U are mutu‐
  52. ally exclusive.
  53. -q Suppresses status messages on stderr.
  54. -S Prints the manufacturer HFID string for each specified device. This option and options -A, -D, -M, -N and -U are
  55. mutually exclusive.
  56. -v Print additional information on stdout. In particular, this option dumps incoming and outgoing packets which can
  57. be saved as text files for reference.
  58. -x Cause the program to exit on the first error instead of continuing with remaining iterations, operations or
  59. devices. Normally, the program reports errors and moves on to the next operation, iteration or device depending
  60. on the command line.
  61. -?,--help
  62. Print program help summary on stdout. This option takes precedence over other options on the command line.
  63. -?,--version
  64. Print program version information on stdout. This option takes precedence over other options on the command line.
  65. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  66. the Linux Toolkit you are using.
  67. ARGUMENTS
  68. device The MAC address of some powerline device. More than one address may be specified. If more than one address is
  69. specified then operations are performed on each device in turn. The default address is local. See DEVICES for
  70. information about symbolic device addresses.
  71. DEVICES
  72. Powerline devices use Ethernet Media Access Control (MAC) addresses. A MAC address is a 48-bit value entered as 12 hexa‐
  73. decimal digits in upper, lower or mixed character case. Octets may be separated with colons for clarity. For example,
  74. &quot;00b052000001&quot;, &quot;00:b0:52:00:00:01&quot; and &quot;00b052:000001&quot; are valid and equivalent.
  75. The following MAC addresses are special and may be entered by name instead of number.
  76. all Same as &quot;broadcast&quot;.
  77. broadcast
  78. A synonym for the Ethernet broadcast address, FF:FF:FF:FF:FF:FF. All devices, whether local, remote or foreign
  79. recognize messages sent to this address. A remote device is any device at the far end of a powerline connection.
  80. A foreign device is any device not manufactured by Atheros.
  81. local A synonym for the Qualcomm Atheros vendor specific Local Management Address (LMA), 00:B0:52:00:00:01. All local
  82. Atheros devices recognize this address but remote and foreign devices do not. A remote device is any device at
  83. the far end of a powerline connection. A foreign device is any device not manufactured by Atheros.
  84. REFERENCES
  85. See the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual for more information.
  86. DISCLAIMER
  87. Atheros HomePlug AV Vendor Specific Management Message Entry structure and content is proprietary to Qualcomm Atheros,
  88. Ocala FL USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify mes‐
  89. sage structure and content in future firmware releases without any obligation to notify or compensate users of this pro‐
  90. gram.
  91. EXAMPLES
  92. The following example prints the DAK of the local device on stdout. The local device is interrogated because no MAC
  93. address was specified. The default interface, eth1 on Linux and 2 on Windows, is used unless environment variable PLC is
  94. defined. The DAK is always printed by default. Depending on your system, you may want to use option -n when using this
  95. program interactively.
  96. # ampID
  97. 00:11:22:33:44:55:66:77:88:99:AA:DD:CC:DD:EE:FF
  98. The following example prints the NMK of device 00:B0:52:DA:DA:57 connected to interface eth2 on a Linux system. Several
  99. devices could be specified but that is not a common request.
  100. # DAK -Mi eth2 00:B0:52:DA:DA:57
  101. F4:23:71:4A:51:39:C2:2D:E5:EA:87:43:99:A1:37:81
  102. The following example dynamically inserts the DAK and NMK of the previous device on the command line of another program.
  103. In this example, we want to insert the DAK and NMK into PIB file abc.pib using program modpib. See the modpib man page
  104. for an explanation of command line syntax. See the GNU bash manuals for an explanation of why this works.
  105. # modpib abc.pib -D $(ampID -Di eth2 00:B0:52:DA:DA:57) -N $(ampID -Mi eth2 00:B0:52:DA:DA:57)
  106. The following example is an alternate way of accomplishing the same thing using shell script variables. This method may
  107. be easier to read and maintain. Notice that we 'squished' all the options together for brevity.
  108. # PLC=00:B0:52:DA:DA:57
  109. # DAK=$(ampID -Dieth2 ${PLC})
  110. # NMK=$(ampID -Mieth2 ${PLC})
  111. # modpib abc.pib -D ${DAK} -N ${NMK}
  112. SEE ALSO
  113. plc(1), amptool(1), ampboot(1), ampinit(1), modpib(1)
  114. CREDITS
  115. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  116. open-plc-utils-0.0.3 Mar 2014 ampID(1)
  117. </pre>
  118. <div class='footerlink'>
  119. [<a href='amphost.1.html' title=' amphost.1 '>PREV</a>]
  120. [<a href='toolkit.html' title=' Index '>HOME</a>]
  121. [<a href='amplist.1.html' title=' amplist.1 '>NEXT</a>]
  122. </div>
  123. </body>
  124. </html>