1. NAME

iwgetid - Report ESSID, NWID or AP/Cell Address of wireless network

2. SYNOPSIS

iwgetid [interface] [--raw] [--scheme] [--ap] [--freq]
[--mode] [--protocol] [--channel]

3. DESCRIPTION

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

R iwconfig is easier to integrate in various scripts.
By default,

iwgetid will print the ESSIDof the device, and if the device doesn't have any ESSID it will print its NWID .
The default formatting output is pretty-print.

4. OPTIONS

--raw

    This option disables pretty-printing of the information. This option is orthogonal to the other options (except

R --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 Shellor Perlscripts or to pass the result as an argument on the command line of

R 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).
The resulting output is a valid Pcmcia scheme identifier (that may be used as an argument of the command

R This format is also ideal when using the result of iwgetid as a selector in Shellor Perlscripts, or as a file name.

--ap

    Display the MAC address of the Wireless Access Pointor the Cell .

--freq

    Display the current frequencyor channelused by the interface.

--channel

    Display the current channelused by the interface. The channel is determined using the current frequency and the frequency list provided by the interface.

--mode

    Display the current modeof the interface.

--protocol

    Display the protocol nameof the interface. This allows to identify all the cards that are compatible with each other and accept the same type of configuration.
This can also be used to check Wireless Extension supporton the interface, as this is the only attribute that all drivers supporting Wireless Extension are mandated to support.

5. SEE ALSO

R iwconfig (8),

R ifconfig (8),

R iwspy (8),

R iwpriv (8).