Advertisement
Guest User

asdsadf

a guest
Mar 19th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.79 KB | None | 0 0
  1. Set power save state to on or off.
  2.  
  3. dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>*] [ht-mcs-<2.4|5> <MCS index>*] [vht-mcs-<2.4|5> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*] [sgi-2.4|lgi-2.4] [sgi-5|lgi-5]
  4. Sets up the specified rate masks.
  5. Not passing any arguments would clear the existing mask (if any).
  6.  
  7. dev <devname> get mesh_param [<param>]
  8. Retrieve mesh parameter (run command without any to see available ones).
  9.  
  10. dev <devname> get power_save <param>
  11. Retrieve power save state.
  12.  
  13.  
  14. Commands that use the netdev ('dev') can also be given the
  15. 'wdev' instead to identify the device.
  16.  
  17. You can omit the 'phy' or 'dev' if the identification is unique,
  18. e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)
  19.  
  20. Do NOT screenscrape this tool, we don't consider its output stable.
  21.  
  22. root@Asgard:~# clear
  23.  
  24. root@Asgard:~# iw wl01 scan
  25. Usage: iw [options] command
  26. Options:
  27. --debug enable netlink debugging
  28. --version show version (4.14)
  29. Commands:
  30. help [command]
  31. Print usage for all or a specific command, e.g.
  32. "help wowlan" or "help wowlan enable".
  33.  
  34. event [-t|-r] [-f]
  35. Monitor events from the kernel.
  36. -t - print timestamp
  37. -r - print relative timstamp
  38. -f - print full frame for auth/assoc etc.
  39.  
  40. features
  41.  
  42.  
  43. commands
  44. list all known commands and their decimal & hex value
  45.  
  46. phy
  47. list
  48. List all wireless devices and their capabilities.
  49.  
  50. phy <phyname> info
  51. Show capabilities for the specified wireless device.
  52.  
  53. dev <devname> cac channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
  54. dev <devname> cac freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
  55. dev <devname> cac freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
  56. dev <devname> cac trigger channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
  57. dev <devname> cac trigger freq <frequency> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
  58. dev <devname> cac trigger freq <frequency> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
  59. Start or trigger a channel availability check (CAC) looking to look for
  60. radars on the given channel.
  61.  
  62. phy <phyname> channels
  63. Show available channels.
  64.  
  65. dev <devname> switch channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [beacons <count>] [block-tx]
  66. dev <devname> switch freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [beacons <count>] [block-tx]
  67. dev <devname> switch freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]] [beacons <count>] [block-tx]
  68. Switch the operating channel by sending a channel switch announcement (CSA).
  69.  
  70. dev
  71. List all network interfaces for wireless hardware.
  72.  
  73. dev <devname> info
  74. Show information for this interface.
  75.  
  76. dev <devname> del
  77. Remove this virtual interface
  78.  
  79. dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]
  80. phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]
  81. Add a new virtual interface with the given configuration.
  82. Valid interface types are: managed, ibss, monitor, mesh, wds.
  83.  
  84. The flags are only used for monitor interfaces, valid flags are:
  85. none: no special flags
  86. fcsfail: show frames with FCS errors
  87. control: show control frames
  88. otherbss: show frames from other BSSes
  89. cook: use cooked mode
  90. active: use active mode (ACK incoming unicast packets)
  91. mumimo-groupid <GROUP_ID>: use MUMIMO according to a group id
  92. mumimo-follow-mac <MAC_ADDRESS>: use MUMIMO according to a MAC address
  93.  
  94. The mesh_id is used only for mesh mode.
  95.  
  96. dev <devname> ibss join <SSID> <freq in MHz> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]
  97. Join the IBSS cell with the given SSID, if it doesn't exist create
  98. it on the given frequency. When fixed frequency is requested, don't
  99. join/create a cell on a different frequency. When a fixed BSSID is
  100. requested use that BSSID and do not adopt another cell's BSSID even
  101. if it has higher TSF and the same SSID. If an IBSS is created, create
  102. it with the specified basic-rates, multicast-rate and beacon-interval.
  103.  
  104. dev <devname> ibss leave
  105. Leave the current IBSS cell.
  106.  
  107. dev <devname> station dump [-v]
  108. List all stations known, e.g. the AP on managed interfaces
  109.  
  110. dev <devname> station set <MAC address> mesh_power_mode <active|light|deep>
  111. Set link-specific mesh power mode for this station
  112.  
  113. dev <devname> station set <MAC address> vlan <ifindex>
  114. Set an AP VLAN for this station.
  115.  
  116. dev <devname> station set <MAC address> plink_action <open|block>
  117. Set mesh peer link action for this station (peer).
  118.  
  119. dev <devname> station del <MAC address> [subtype <subtype>] [reason-code <code>]
  120. Remove the given station entry (use with caution!)
  121. Example subtype values: 0xA (disassociation), 0xC (deauthentication)
  122.  
  123. dev <devname> station get <MAC address>
  124. Get information for a specific station.
  125.  
  126. dev <devname> survey dump
  127. List all gathered channel survey data
  128.  
  129. dev <devname> ocb leave
  130. Leave the OCB mode network.
  131.  
  132. dev <devname> ocb join <freq in MHz> <5MHz|10MHz>
  133. Join the OCB mode network.
  134.  
  135. dev <devname> mesh leave
  136. Leave a mesh.
  137.  
  138. dev <devname> mesh join <mesh ID> [[freq <freq in MHz> <NOHT|HT20|HT40+|HT40-|80MHz>] [basic-rates <rate in Mbps,rate2,...>]], [mcast-rate <rate in Mbps>] [beacon-interval <time in TUs>] [dtim-period <value>] [vendor_sync on|off] [<param>=<value>]*
  139. Join a mesh with the given mesh ID with frequency, basic-rates,
  140. mcast-rate and mesh parameters. Basic-rates are applied only if
  141. frequency is provided.
  142.  
  143. dev <devname> mpath dump
  144. List known mesh paths.
  145.  
  146. dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address>
  147. Set an existing mesh path's next hop.
  148.  
  149. dev <devname> mpath new <destination MAC address> next_hop <next hop MAC address>
  150. Create a new mesh path (instead of relying on automatic discovery).
  151.  
  152. dev <devname> mpath del <MAC address>
  153. Remove the mesh path to the given node.
  154.  
  155. dev <devname> mpath get <MAC address>
  156. Get information on mesh path to the given node.
  157.  
  158. dev <devname> mpp dump
  159. List known mesh proxy paths.
  160.  
  161. dev <devname> mpp get <MAC address>
  162. Get information on mesh proxy path to the given node.
  163.  
  164. dev <devname> scan [-u] [freq <freq>*] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force] [randomise[=<addr>/<mask>]] [ssid <ssid>*|passive]
  165. Scan on the given frequencies and probe for the given SSIDs
  166. (or wildcard if not given) unless passive scanning is requested.
  167. If -u is specified print unknown data in the scan results.
  168. Specified (vendor) IEs must be well-formed.
  169.  
  170. dev <devname> scan sched_stop
  171. Stop an ongoing scheduled scan.
  172.  
  173. dev <devname> scan sched_start [interval <in_msecs> | scan_plans [<interval_secs:iterations>*] <interval_secs>] [delay <in_secs>] [freqs <freq>+] [matches [ssid <ssid>]+]] [active [ssid <ssid>]+|passive] [randomise[=<addr>/<mask>]]
  174. Start a scheduled scan at the specified interval on the given frequencies
  175. with probing for the given SSIDs (or wildcard if not given) unless passive
  176. scanning is requested. If matches are specified, only matching results
  177. will be returned.
  178.  
  179. dev <devname> scan abort
  180. Abort ongoing scan
  181.  
  182. dev <devname> scan trigger [freq <freq>*] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force] [randomise[=<addr>/<mask>]] [ssid <ssid>*|passive]
  183. Trigger a scan on the given frequencies with probing for the given
  184. SSIDs (or wildcard if not given) unless passive scanning is requested.
  185.  
  186. dev <devname> scan dump [-u]
  187. Dump the current scan results. If -u is specified, print unknown
  188. data in scan results.
  189.  
  190. phy <phyname> reg get
  191. Print out the devices' current regulatory domain information.
  192.  
  193. reg get
  194. Print out the kernel's current regulatory domain information.
  195.  
  196. reg set <ISO/IEC 3166-1 alpha2>
  197. Notify the kernel about the current regulatory domain.
  198.  
  199. dev <devname> auth <SSID> <bssid> <type:open|shared> <freq in MHz> [key 0:abcde d:1:6162636465]
  200. Authenticate with the given network.
  201.  
  202.  
  203. dev <devname> connect [-w] <SSID> [<freq in MHz>] [<bssid>] [key 0:abcde d:1:6162636465] [mfp:req/opt/no]
  204. Join the network with the given SSID (and frequency, BSSID).
  205. With -w, wait for the connect to finish or fail.
  206.  
  207. dev <devname> disconnect
  208. Disconnect from the current network.
  209.  
  210. dev <devname> link
  211. Print information about the current link, if any.
  212.  
  213. dev <devname> offchannel <freq> <duration>
  214. Leave operating channel and go to the given channel for a while.
  215.  
  216. dev <devname> cqm rssi <threshold|off> [<hysteresis>]
  217. Set connection quality monitor RSSI threshold.
  218.  
  219.  
  220. phy <phyname> wowlan show
  221. Show WoWLAN status.
  222.  
  223. phy <phyname> wowlan disable
  224. Disable WoWLAN.
  225.  
  226. phy <phyname> wowlan enable [any] [disconnect] [magic-packet] [gtk-rekey-failure] [eap-identity-request] [4way-handshake] [rfkill-release] [net-detect [interval <in_msecs> | scan_plans [<interval_secs:iterations>*] <interval_secs>] [delay <in_secs>] [freqs <freq>+] [matches [ssid <ssid>]+]] [active [ssid <ssid>]+|passive] [randomise[=<addr>/<mask>]]] [tcp <config-file>] [patterns [offset1+]<pattern1> ...]
  227. Enable WoWLAN with the given triggers.
  228. Each pattern is given as a bytestring with '-' in places where any byte
  229. may be present, e.g. 00:11:22:-:44 will match 00:11:22:33:44 and
  230. 00:11:22:33:ff:44 etc.
  231. Offset and pattern should be separated by '+', e.g. 18+43:34:00:12 will match '43:34:00:12' after 18 bytes of offset in Rx packet.
  232.  
  233. The TCP configuration file contains:
  234. source=ip[:port]
  235. dest=ip:port@mac
  236. data=<hex data packet>
  237. data.interval=seconds
  238. [wake=<hex packet with masked out bytes indicated by '-'>]
  239. [data.seq=len,offset[,start]]
  240. [data.tok=len,offset,<token stream>]
  241.  
  242. Net-detect configuration example:
  243. iw phy0 wowlan enable net-detect interval 5000 delay 30 freqs 2412 2422 matches ssid foo ssid bar
  244.  
  245. phy <phyname> coalesce show
  246. Show coalesce status.
  247.  
  248. phy <phyname> coalesce disable
  249. Disable coalesce.
  250.  
  251. phy <phyname> coalesce enable <config-file>
  252. Enable coalesce with given configuration.
  253. The configuration file contains coalesce rules:
  254. delay=<delay>
  255. condition=<condition>
  256. patterns=<[offset1+]<pattern1>,<[offset2+]<pattern2>,...>
  257. delay=<delay>
  258. condition=<condition>
  259. patterns=<[offset1+]<pattern1>,<[offset2+]<pattern2>,...>
  260. ...
  261. delay: maximum coalescing delay in msec.
  262. condition: 1/0 i.e. 'not match'/'match' the patterns
  263. patterns: each pattern is given as a bytestring with '-' in
  264. places where any byte may be present, e.g. 00:11:22:-:44 will
  265. match 00:11:22:33:44 and 00:11:22:33:ff:44 etc. Offset and
  266. pattern should be separated by '+', e.g. 18+43:34:00:12 will
  267. match '43:34:00:12' after 18 bytes of offset in Rx packet.
  268.  
  269.  
  270. dev <devname> roc start <freq> <time in ms>
  271.  
  272.  
  273. wdev <idx> p2p stop
  274.  
  275.  
  276. wdev <idx> p2p start
  277.  
  278.  
  279. dev <devname> vendor recvbin <oui> <subcmd> <filename|-|hex data>
  280.  
  281.  
  282. dev <devname> vendor recv <oui> <subcmd> <filename|-|hex data>
  283.  
  284.  
  285. dev <devname> vendor send <oui> <subcmd> <filename|-|hex data>
  286.  
  287.  
  288. dev <devname> mgmt dump frame <type as hex ab> <pattern as hex ab:cd:..> [frame <type> <pattern>]* [count <frames>]
  289. Register for receiving certain mgmt frames and print them.
  290. Frames are selected by their type and pattern containing
  291. the first several bytes of the frame that should match.
  292.  
  293. Example: iw dev wlan0 mgmt dump frame 40 00 frame 40 01:02 count 10
  294.  
  295.  
  296. dev <devname> ap stop
  297. Stop AP functionality
  298.  
  299.  
  300. dev <devname> ap start
  301. <SSID> <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]] <beacon interval in TU> <DTIM period> [hidden-ssid|zeroed-ssid] head <beacon head in hexadecimal> [tail <beacon tail in hexadecimal>] [key0:abcde d:1:6162636465]
  302.  
  303.  
  304. phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
  305. Set a bitmap of allowed antennas to use for TX and RX.
  306. The driver may reject antenna configurations it cannot support.
  307.  
  308. dev <devname> set txpower <auto|fixed|limit> [<tx power in mBm>]
  309. Specify transmit power level and setting type.
  310.  
  311. phy <phyname> set txpower <auto|fixed|limit> [<tx power in mBm>]
  312. Specify transmit power level and setting type.
  313.  
  314. phy <phyname> set distance <auto|distance>
  315. Enable ACK timeout estimation algorithm (dynack) or set appropriate
  316. coverage class for given link distance in meters.
  317. To disable dynack set valid value for coverage class.
  318. Valid values: 0 - 114750
  319.  
  320. phy <phyname> set coverage <coverage class>
  321. Set coverage class (1 for every 3 usec of air propagation time).
  322. Valid values: 0 - 255.
  323.  
  324. phy <phyname> set netns { <pid> | name <nsname> }
  325. Put this wireless device into a different network namespace:
  326. <pid> - change network namespace by process id
  327. <nsname> - change network namespace by name from /run/netns
  328. or by absolute path (man ip-netns)
  329.  
  330.  
  331. phy <phyname> set retry [short <limit>] [long <limit>]
  332. Set retry limit.
  333.  
  334. phy <phyname> set rts <rts threshold|off>
  335. Set rts threshold.
  336.  
  337. phy <phyname> set frag <fragmentation threshold|off>
  338. Set fragmentation threshold.
  339.  
  340. dev <devname> set channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
  341. phy <phyname> set channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
  342. dev <devname> set freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
  343. dev <devname> set freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
  344. phy <phyname> set freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
  345. phy <phyname> set freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
  346. Set frequency/channel the hardware is using, including HT
  347. configuration.
  348.  
  349. phy <phyname> set name <new name>
  350. Rename this wireless device.
  351.  
  352. dev <devname> set mcast_rate <rate in Mbps>
  353. Set the multicast bitrate.
  354.  
  355. dev <devname> set peer <MAC address>
  356. Set interface WDS peer.
  357.  
  358. dev <devname> set noack_map <map>
  359. Set the NoAck map for the TIDs. (0x0009 = BE, 0x0006 = BK, 0x0030 = VI, 0x00C0 = VO)
  360.  
  361. dev <devname> set 4addr <on|off>
  362. Set interface 4addr (WDS) mode.
  363.  
  364. dev <devname> set type <type>
  365. Set interface type/mode.
  366. Valid interface types are: managed, ibss, monitor, mesh, wds.
  367.  
  368. dev <devname> set meshid <meshid>
  369. dev <devname> set monitor <flag>*
  370. Set monitor flags. Valid flags are:
  371. none: no special flags
  372. fcsfail: show frames with FCS errors
  373. control: show control frames
  374. otherbss: show frames from other BSSes
  375. cook: use cooked mode
  376. active: use active mode (ACK incoming unicast packets)
  377. mumimo-groupid <GROUP_ID>: use MUMIMO according to a group id
  378. mumimo-follow-mac <MAC_ADDRESS>: use MUMIMO according to a MAC address
  379.  
  380. dev <devname> set mesh_param <param>=<value> [<param>=<value>]*
  381. Set mesh parameter (run command without any to see available ones).
  382.  
  383. dev <devname> set power_save <on|off>
  384. Set power save state to on or off.
  385.  
  386. dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>*] [ht-mcs-<2.4|5> <MCS index>*] [vht-mcs-<2.4|5> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*] [sgi-2.4|lgi-2.4] [sgi-5|lgi-5]
  387. Sets up the specified rate masks.
  388. Not passing any arguments would clear the existing mask (if any).
  389.  
  390. dev <devname> get mesh_param [<param>]
  391. Retrieve mesh parameter (run command without any to see available ones).
  392.  
  393. dev <devname> get power_save <param>
  394. Retrieve power save state.
  395.  
  396.  
  397. Commands that use the netdev ('dev') can also be given the
  398. 'wdev' instead to identify the device.
  399.  
  400. You can omit the 'phy' or 'dev' if the identification is unique,
  401. e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)
  402.  
  403. Do NOT screenscrape this tool, we don't consider its output stable.
  404.  
  405. root@Asgard:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement