Linux |
Ubuntu 9.04 |
Jaunty Jackalope |
![]() |
iwgetid(8) |
![]() |
iwgetid − Report ESSID, NWID or AP/Cell Address of wireless network |
iwgetid [interface] [--raw] [--scheme]
[--ap] [--freq] |
iwgetid is used to find out the NWID, ESSID or
AP/Cell Address of the wireless network that is currently
used. The information reported is the same as the one shown
by iwconfig, but iwgetid is easier to
integrate in various scripts. |
--raw |
This option disables pretty-printing of the information. This option is orthogonal to the other options (except --scheme), so with the appropriate combination of options you can print the raw ESSID, AP Address or Mode. |
This format is ideal when storing the result of iwgetid as a variable in Shell or Perl scripts or to pass the result as an argument on the command line of iwconfig. |
--scheme |
This option is similar to the previous one, it disables
pretty-printing of the information and removes all
characters that are not alphanumerics (like space,
punctuation and control characters). |
--ap |
Display the MAC address of the Wireless Access Point or the Cell. |
|
--freq |
Display the current frequency or channel used by the interface. |
--channel |
Display the current channel used by the interface. The channel is determined using the current frequency and the frequency list provided by the interface. |
--mode |
Display the current mode of the interface. |
--protocol |
Display the protocol name of the interface. This
allows to identify all the cards that are compatible with
each other and accept the same type of configuration. |
iwconfig(8), ifconfig(8), iwspy(8), iwpriv(8). |
![]() |
iwgetid(8) | ![]() |