getpib.1.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. getpib.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='evse.1.html' title=' evse.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='hpav.1.html' title=' hpav.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. getpib(1) Qualcomm Atheros Open Powerline Toolkit getpib(1)
  22. NAME
  23. getpib - Qualcomm Atheros PIB Data Extractor
  24. SYNOPSIS
  25. getpib file offset format [length]
  26. DESCRIPTION
  27. This program is a companion to program setpib and is designed to support shell scripts. It extracts PIB file parameters
  28. so that a scripting language can evaluate, manipulate or store them with minimal effort. Good scripting skills and some
  29. imagination may be required to make effective use of this program.
  30. Users having a detailed knowledge of PIB content and structure can make extremely effective use of this program; however,
  31. Atheros is under no obligation to provide customers with the offset, length or format of PIB file parameters.
  32. This program is part of the Qualcomm Atheros Powerline Toolkit. See the AMP man page for an overview and installation
  33. instructions.
  34. OPTIONS
  35. - c character
  36. The appended character. Append this character each line of output instead of newline. Use this to create a comma
  37. separated list of value, for example, by specifying a comma.
  38. -n Append a newline to the output.
  39. -q Enable quiet mode which has no effect.
  40. -v Verbose mode. Does nothing.
  41. -?,--help
  42. Print program help summary on stdout. This option takes precedence over other options on the command line.
  43. -!,--version
  44. Print program version information on stdout. This option takes precedence over other options on the command line.
  45. Usethis option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  46. the Linux Toolkit you are using.
  47. ARGUMENTS
  48. file The PIB filename. This argument is required and must appear first on the command line. No assumptions are made
  49. based on filename and no filename conventions are enforced; however, an invalid PIB file will be rejected.
  50. offset The data offset in bytes expressed in hexadecimal. This argument is required and must follow the filename. A
  51. leading &quot;0x&quot; prefix is optional. The data offset plus the data length cannot exceed the file extent.
  52. format The output format. This argument is required and must follow the offset. Some formats imply fixed data length.
  53. Others formats are for variable length data. The fixed data formats are byte, word, long, hfid, mac and key. The
  54. variable data formats are data and text. The formats are described in the next section.
  55. length The data length in bytes expressed in decimal. This argument is only required for the the data formats data and
  56. text. The data offset plus the data length cannot exceed the file extent. The data length cannot exceed 1024.
  57. FORMATS
  58. byte Extract 1 byte and display it as an unsigned decimal integer value. The offset advances byte before starting
  59. another extraction.
  60. word Extract 2 consecutive bytes and display them as an unsigned decimal integer value after endian conversion. The
  61. offset advances bytes before starting another extraction.
  62. long Extract 4 consecutive bytes and display them as an unsigned decimal integer value after endian conversion. The
  63. offset advances 4 bytes before starting another extraction.
  64. huge Extract 8 consecutive bytes and display them as an unsigned decimal integer value after endian conversion. The
  65. offset advances 8 bytes before starting another extraction.
  66. xbyte Extract 1 byte and display it as a hexadecimal integer value. The offset advances byte before starting another
  67. extraction.
  68. xword Extract 2 consecutive bytes and display them as a hexadecimal integer value after endian conversion. The offset
  69. advances bytes before starting another extraction.
  70. xlong Extract 4 consecutive bytes and display them as a hexadecimal integer value after endian conversion. The offset
  71. advances 4 bytes before starting another extraction.
  72. xhuge Extract 8 consecutive bytes and display them as a hexadecimal integer value after endian conversion. The offset
  73. advances 8 bytes before starting another extraction.
  74. data length
  75. Extract the specified number of bytes and display them as a hexadecimal string with no punctuation to separate
  76. octets. The offset advances length bytes before starting another extraction. The minimum length is 1. The maxi‐
  77. mum length is 1024.
  78. mac Extract 6 bytes and display them as a colon-separated hexadecimal string. The offset advances 6 bytes before
  79. starting another extraction. This is similar to &quot;data 6&quot; but colons separate each octet.
  80. key Extract 16 bytes and display them as a colon-separated hexadecimal string. The offset advances 16 bytes before
  81. starting another extraction. This is similar to &quot;data 16&quot; but colons separate each octet.
  82. hfid Extract 64 consecutive bytes and display them as an ASCII string that terminates at the first non-printable char‐
  83. acter. The offset advances 64 bytes before starting another extraction. This is equivalent to &quot;text 64&quot;.
  84. skip length
  85. Advance the specified number of bytes without displaying anything. The offset advances by length bytes before
  86. starting another extraction. The minimum length is 1. The maximum length is 1024.
  87. text length
  88. Extract the specified number of bytes and display them as an ASCII string that terminates at the first non-print‐
  89. able character. The offset advances the specified number of bytes before starting another extraction.
  90. TR-069
  91. accesspassword
  92. Extract 65 consecutive bytes and display them as an ASCII string that terminates at the first non-printable char‐
  93. acter. The offset advances 65 bytes before starting another extraction. This format is equivalent to &quot;text 65&quot;.
  94. accessusername
  95. Extract 33 consecutive bytes and display them as an ASCII string that terminates at the first non-printable char‐
  96. acter. The offset advances 33 bytes before starting another extraction. This format is equivalent to &quot;text 33&quot;.
  97. adminpassword
  98. Extract 33 consecutive bytes and display them as an ASCII string that terminates at the first non-printable char‐
  99. acter. The offset advances 33 bytes before starting another extraction. This format is equivalent to &quot;text 33&quot;.
  100. adminusername
  101. Extract 33 consecutive bytes and display them as an ASCII string that terminates at the first non-printable char‐
  102. acter. The offset advances 33 bytes before starting another extraction. This format is equivalent to &quot;text 33&quot;.
  103. password
  104. Extract 257 consecutive bytes and display them as an ASCII string that terminates at the first non-printable char‐
  105. acter. The offset advances 257 bytes before starting another extraction. This format is equivalent to &quot;text
  106. 257&quot;.
  107. url Extract 257 consecutive bytes and display them as an ASCII string that terminates at the first non-printable char‐
  108. acter. The offset advances 257 bytes before starting another extraction. This format is equivalent to &quot;text
  109. 257&quot;.
  110. username
  111. Extract 257 consecutive bytes and display them as an ASCII string that terminates at the first non-printable char‐
  112. acter. The offset advances 257 bytes before starting another extraction. This format is equivalent to &quot;text
  113. 257&quot;.
  114. EXAMPLES
  115. The following example extracts one byte from offset 01F7 of PIB file abc.pib and displays it as an unsigned decimal inte‐
  116. ger string. No length specification is needed because the byte format has an implied length of 1 byte. The displayed
  117. value is 232 because the byte format is decimal. We could have specified &quot;data 1&quot; to display the byte in hexadecimal.
  118. The return prompt appears on the display line because option -n was omitted.
  119. # getpib abc.pib 01F7 byte
  120. 232#
  121. The next example extracts two bytes at offset 01F7 and displays them as a hexadecimal string. A length of 2 is needed
  122. because the data format is variable length. We could have specified &quot;word&quot; to display these bytes as an unsigned decimal
  123. integer string. The hexadecimal string consists two octets E8 and 8A. The first byte is the same one extracted in the
  124. last example. The return prompt appears on a new line because option -n was present.
  125. # getpib abc.pib 01F7 data 2 -n
  126. E88A
  127. #
  128. DISCLAIMER
  129. PIB file structure and content is proprietary to Qualcomm Atheros, Ocala FL USA. Consequently, public information is not
  130. available. Qualcomm Atheros reserves the right to modify PIB file structure or content in future firmware releases with‐
  131. out any obligation to notify or compensate users of this program.
  132. SEE ALSO
  133. chkpib(7), chkpib2(7), modpib(1), pib2xml(1), pibcomp(1), pibdump(1), setpib(1), xml2pib(1)
  134. CREDITS
  135. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  136. open-plc-utils-0.0.3 Mar 2014 getpib(1)
  137. </pre>
  138. <div class='footerlink'>
  139. [<a href='evse.1.html' title=' evse.1 '>PREV</a>]
  140. [<a href='toolkit.html' title=' Index '>HOME</a>]
  141. [<a href='hpav.1.html' title=' hpav.1 '>NEXT</a>]
  142. </div>
  143. </body>
  144. </html>