int6kwait.1.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. int6kwait.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='int6kuart.1.html' title=' int6kuart.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='mac2pw.1.html' title=' mac2pw.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. int6kwait(1) Qualcomm Atheros Open Powerline Toolkit int6kwait(1)
  22. NAME
  23. int6kwait - Qualcomm Atheros INT6x00 Powerline Device Procrastinator
  24. SYNOPSIS
  25. int6kwait [options] [device] [device] [...]
  26. DESCRIPTION
  27. Poll a Qualcomm Atheros powerline device, waiting for one or more events to occur before continuing or returning. The
  28. events include reset or power off, restart or power on and network association. It is used to pause shell scripts at
  29. critical points where a device must be in a known state before continuing.
  30. This program is part of the Qualcomm Atheros Powerline Toolkit. See the plc man page for an overview and installation
  31. instructions.
  32. OPTIONS
  33. -a Poll the device every few seconds using VS_NW_INFO messages until the device indicates that a networks exists and
  34. has at least one station. This option can give false readings if other devices have dropped off-line and the
  35. device bridging table still holds information about them. The program always checks for this event last if other
  36. event options are specified.
  37. -c count
  38. The number of times the program will poll the device before declaring an event failure. The program will wait a
  39. fixed period of time between each poll attempt. Overall wait time is count/frequency where count can be modified
  40. using option -c. Overall wait time is always approximate since operating system overhead and latency are not
  41. taken into account. The default count is 300.
  42. -e Redirects stderr messages to stdout. By convention status and error messages are printed on stderr while primary
  43. program output is printed on stdout. This option prints all output on stdout in cases where this is desired.
  44. -f firmware
  45. The identification string for firmware that should be running after the device starts. This option can be used to
  46. detect a failed firmware load. If the actual identification string does not match this one once the device starts
  47. then an error is reported. If option -x is present then the program terminates with a non-zero exit code. This
  48. option has no effect unless option -s is present. An identification string looks like
  49. &quot;INT6000-MAC-3-1-3143-1690-20071107-FINAL-B&quot; and can be obtained using int6k -r.
  50. -i Select the host Ethernet interface. All requests are sent via this host interface and only reponses received via
  51. this host interface are recognized. The default interface is eth1 because most people use eth0 as their principle
  52. network connection; however, if environment string &quot;PLC&quot; is defined then it takes precedence over the default
  53. interface. This option then takes precedence over either default.
  54. -p frequency
  55. The polling frequency expressed in polls-per-second. For example, 1 means one poll per second and 10 means ten
  56. polls per second. Overall wait time is count/frequency where count may be modified using option -c. Overall wait
  57. time is always approximate since operating system overhead and latency are not taken into account. The default
  58. frequency is 5.
  59. -q Enter quiet mode. Progress messages are suppressed.
  60. -r Poll the device every few seconds using VS_SW_VER messages until the bootloader or runtime firmware fails to
  61. respond or the poll count exhausts. The absence of a response indicates that the device either lost connection to
  62. the host, lost power or has reset. The program always checks for this event first when other events are speci‐
  63. fied.
  64. -R Reset the device then check return status. Exit program on error if option -x is present; otherwise, repeat the
  65. reset request until the device either accepts the request or the wait time is exceeded.
  66. -s Poll the device every few seconds using VS_SW_VER messages until the bootloader or runtime firmware responds or
  67. the poll count exhausts. The presence of a response indicates that the device has either connected to the host,
  68. received power or finished reboot.
  69. -t Display the actual time in seconds taken for successful completion, or waited for unsuccessful completion, of ecah
  70. event.
  71. -v Enter verbose mode. All Etherenet frames sent or received by the program are displayed on stdout.
  72. -w seconds
  73. Additional time to wait once all events have occured. This wait does not occur if any of the events timeout.
  74. When no other events are specified this option is effectively equivalent to sleep. This option can be used to
  75. allow the device or the network to settle. For example, a nominal 5 second wait is recommended after a device
  76. successfully associates before attempting to transfer data.
  77. -x Exit program on first error with a non-zero exit code. This option allows shell scripts to detect failed or
  78. incomplete operations and take the appropriate action.
  79. -?, --help
  80. Print program help summary on stdout. This option takes precedence over other options on the command line.
  81. -!, --version
  82. Print program version information on stdout. This option takes precedence over other options on the command line.
  83. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  84. the Linux Toolkit you are using.
  85. ARGUMENTS
  86. device The Media Access Control (MAC) address of some device. Addresses are 6 hexadecimal octets optionally separated by
  87. colon. For example, the addresses &quot;00b052000001&quot;, &quot;00:b0:52:00:00:01&quot; and &quot;00b052:000001&quot; are all valid and
  88. equivalent. For convenience, the symbolic address &quot;local&quot; resolves to &quot;00:b0:52:00:00:01&quot; and the symbolic
  89. addresses &quot;all&quot; and &quot;broadcast&quot; both resolve to &quot;ff:ff:ff:ff:ff:ff&quot;.
  90. REFERENCES
  91. See the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual for more information.
  92. DISCLAIMER
  93. Atheros HomePlug AV Vendor Specific Management Message Entry structure and content is proprietary to Qualcomm Atheros,
  94. Ocala FL USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify mes‐
  95. sage structure and content in future firmware releases without any obligation to notify or compensate users of this pro‐
  96. gram.
  97. EXAMPLES
  98. The following command polls the local device until firmware stops running then polls the device until firmware starts
  99. running again. This command can be inserted into a shell script at a point where the device must reset and reboot before
  100. proceeding. Observer that the program waits up to 60 seconds for each event, in turn. The 60 seconds is the product of
  101. 60 poll attempts spaced 1 second apart.
  102. # int6kwait -rs
  103. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Reset
  104. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Start
  105. The following example specifies 5 poll attempts spaced 10 seconds apart. Less frequent polling reduces network traffic
  106. but makes the program less responsive to events. Observe that the allotted time applies to each event in turn.
  107. # int6kwait -rs -p 10 -c 5
  108. eth0 00:B0:52:BA:BA:01 Allow 50 seconds for Reset
  109. eth0 00:B0:52:BA:BA:01 Allow 50 seconds for Start
  110. The next example reports the actual amount of time taken for each event to occur. Observe that the last event, device
  111. association, did not occur within the allotted time.
  112. # int6kwait -rsat
  113. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Reset
  114. etho 00:B0:52:BA:BA:01 Waited 22 seconds to Reset
  115. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Start
  116. etho 00:B0:52:BA:BA:01 Waited 4 seconds to Start
  117. eth0 00:B0:52:BA:BA:01 Allow 60 seconds for Assoc
  118. etho 00:B0:52:BA:BA:01 Waited 60 seconds for Assoc
  119. etho 00:B0:52:BA:BA:01 Device did not Assoc
  120. The following example illustrates use of the revision string to detect mismatched firmware. In this example, we reset
  121. the device first, using program int6k, then wait for it to reset then start up again. There are also operation that can
  122. cause the device to reset.
  123. # int6k -R
  124. # int6kwait -xrsf INT6000-MAC-3-1-3143-1690-20071107-FINAL-B
  125. eth0 00:B0:52:BA:BA:01 Device started wrong firmware
  126. Immediately after a reset we wait for the firmware to stop responding, with option -r, and then start responding, with
  127. option -s, and then perform a string comparison against the actual firmware revision string, with option -f. If the
  128. strings do not match then an error is reported. In this case, the program will exit with a non-zero return code since
  129. option -x is present.
  130. DISCLAIMER
  131. Atheros HomePlug AV Vendor Specific Management Message Entry structure and content is proprietary to Qualcomm Atheros,
  132. Ocala FL USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify mes‐
  133. sage structure and content in future firmware releases without any obligation to notify or compensate users of this pro‐
  134. gram.
  135. SEE ALSO
  136. plc(1), int6k(1), int6kf(1), int6khost(1), int6kid(1), int6krate(1), int6krule(1), int6kstat(1)
  137. CREDITS
  138. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  139. open-plc-utils-0.0.3 Mar 2014 int6kwait(1)
  140. </pre>
  141. <div class='footerlink'>
  142. [<a href='int6kuart.1.html' title=' int6kuart.1 '>PREV</a>]
  143. [<a href='toolkit.html' title=' Index '>HOME</a>]
  144. [<a href='mac2pw.1.html' title=' mac2pw.1 '>NEXT</a>]
  145. </div>
  146. </body>
  147. </html>