[clug] How to Determine which Wireless Lan is connected

Kim Holburn kim.holburn at gmail.com
Tue Sep 29 05:00:03 MDT 2009


iwconfig
iwgetid

On 2009/Sep/29, at 12:47 PM, Jeff wrote:

> G'Day CLUGers,
>
> Hopefully something simple for the list.
>
> I am trying to determine a way from the command line to tell what  
> wireless LAN I am connected to.
>
> I am sure I am missing something simple, but can not find anything  
> in /proc, nor anything reliable in /var/log.
>
> Essentially I am trying to determine which ESSID I am connected to.
>
> Example:
> ESSID 1 - BettyWLan
> ESSID 2 - BarneyWLan
>
> if connected to BettyWLan do
>  BettyWLan something
> elsif BarneyWLan do
>  BarneyWLan something
> else
>  Something else
> fi
>
> I am fine, at the moment, with the selection statement, but can not  
> find a reliable and simple way to determine what Wireless LAN I am  
> connected to.
> Also, if it is possible, for this to work on hidden ESSID's as well,  
> that would be great.
>
> I don't think it should matter, but just in case, I'm using Wicd for  
> the network connection, and Xubuntu 9.04.
>
> Cheers for any pointers,
>
> -- 
> Jeff <smeeheee at gmail.com>
> -- 
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

-- 
Kim Holburn
IT Network & Security Consultant
Ph: +39 06 855 4294  M: +39 3494957443
mailto:kim at holburn.net  aim://kimholburn
skype://kholburn - PGP Public Key on request








More information about the linux mailing list