View Single Post
Old 09-02-2011, 10:39 AM   #45
MacUsers
Member
MacUsers began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
Quote:
Originally Posted by RansomXvi View Post
How can I know all the different settings that can be changed using set_network?
The most notable commands (as far as this script is concerned) are:
Code:
set_network <network id> <variable> <value> = set network variables (shows list of variables when run without arguments)
enable_network <network id> = enable a network
Here you go with the complete list of available commands:
Code:
  status [verbose] = get current WPA/EAPOL/EAP status
  mib = get MIB variables (dot1x, dot11)
  help = show this usage help
  interface [ifname] = show interfaces/select interface
  level <debug level> = change debug level
  license = show full wpa_cli license
  logoff = IEEE 802.1X EAPOL state machine logoff
  logon = IEEE 802.1X EAPOL state machine logon
  set = set variables (shows list of variables when run without arguments)
  pmksa = show PMKSA cache
  reassociate = force reassociation
  reconfigure = force wpa_supplicant to re-read its configuration file
  preauthenticate <BSSID> = force preauthentication
  identity <network id> <identity> = configure identity for an SSID
  password <network id> <password> = configure password for an SSID
  new_password <network id> <password> = change password for an SSID
  pin <network id> <pin> = configure pin for an SSID
  otp <network id> <password> = configure one-time-password for an SSID
  passphrase <network id> <passphrase> = configure private key passphrase
    for an SSID
  bssid <network id> <BSSID> = set preferred BSSID for an SSID
  list_networks = list configured networks
  select_network <network id> = select a network (disable others)
  enable_network <network id> = enable a network
  disable_network <network id> = disable a network
  add_network = add a network
  remove_network <network id> = remove a network
  set_network <network id> <variable> <value> = set network variables (shows
    list of variables when run without arguments)
  get_network <network id> <variable> = get network variables
  save_config = save the current configuration
  disconnect = disconnect and wait for reassociate/reconnect command before
     connecting
  reconnect = like reassociate, but only takes effect if already disconnected
  scan = request new BSS scan
  scan_results = get latest scan results
  get_capability <eap/pairwise/group/key_mgmt/proto/auth_alg> = get capabilies
  ap_scan <value> = set ap_scan parameter
  stkstart <addr> = request STK negotiation with <addr>
  terminate = terminate wpa_supplicant
  quit = exit wpa_cli
All of these can be found from "wpa_cli" console with "h" or running wps-cli with -h switch. But, I would not recommend anyone to experiment with this if you don't have prior CLI experience. Cheers!!
MacUsers is offline   Reply With Quote