LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2009, 05:14 PM   #1
plugo
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Rep: Reputation: 0
Post iwconfig PLEASE help


hello, this is my first post . I am hoping that you guys can help me with modifying iwconfig, i already have it unpacked and ready to manipulate in the source code in the terminal. I want to see if it is possible to modify it so that i could run iwconfig continuously and print its information at interval times. can anybody guide me into doing this? Thanks a lot.
 
Old 06-02-2009, 05:22 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Code:
while true; do sleep 5s; clear; iwconfig; done
Change the sleep to what you want. I think you'll find it a hell of a lot easier than hacking out a solution, though the same idea as above could work, though (And call me crazy) something tells me you're not quite at that stage yet
 
Old 06-02-2009, 06:15 PM   #3
plugo
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Original Poster
Rep: Reputation: 0
thanx, yes im a newbie. so do i just copy that code into what part of the code??? or is it pseudo-code? but yes, thats exactly what i wanna do
 
Old 06-02-2009, 06:28 PM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 69
Quote:
Originally Posted by plugo View Post
thanx, yes im a newbie. so do i just copy that code into what part of the code??? or is it pseudo-code? but yes, thats exactly what i wanna do
It's a command for the commandline, or a script, if you want. jamescondron's suggestion is that you do not modify the source code of the iwconfig program at all. Instead, compile and install it as is (if you don't have it already), open a terminal (xterm, konsole or such) and type in this script. It will run the iwconfig command every 5 seconds and print its output in that terminal window.
 
Old 06-02-2009, 07:37 PM   #5
plugo
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Original Poster
Rep: Reputation: 0
you guys are awesome! that worked. thank you very much. I have however, another problem . I just got a cisco 350 card from ebay, and it is supposed to work out of the box, but its just not doing it. There is not available driver in the cisco.com website, i however downloaded linux-acu-driver-v21.tar.gz but my card is still not up yet. any thoughts? when i first inserted the card nothing happened, neither when i did sudo pccardctl ident.
 
Old 06-02-2009, 10:39 PM   #6
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 69
Quote:
Originally Posted by plugo View Post
you guys are awesome! that worked. thank you very much. I have however, another problem . I just got a cisco 350 card from ebay, and it is supposed to work out of the box, but its just not doing it. There is not available driver in the cisco.com website, i however downloaded linux-acu-driver-v21.tar.gz but my card is still not up yet. any thoughts? when i first inserted the card nothing happened, neither when i did sudo pccardctl ident.
In theory, you should unpack the tar.gz archive, with the command

tar zvxf linux-acu-driver-v21.tar.gz

cd into the directory it will create (it will be called "linux") and carefully read the file there called "readme.txt". Then do what it says.

But I somehow doubt that you need this driver. It looks like it was made for older kernels, like 2.2 and 2.4. Which distribution are you running? You can see the version by typing

uname -a

in the commandline. From what I see on the net, the support for this card is already in the kernel. Let's just see quickly what you have. Could you post the output of the following commands (you need to be root to do that)
with the card inserted?

zcat /proc/config.gz | grep AIRO
lsmod | grep airo
dmesg | tail
uname -a
iwconfig
ifconfig
 
Old 06-02-2009, 11:40 PM   #7
plugo
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Original Poster
Rep: Reputation: 0
root@pedro-laptop:/home/pedro/Desktop# uname -a
Linux pedro-laptop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux


iwconfig----------------------------------------------------------
lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11bg ESSID:"3NC" Nickname:""
Mode:Managed Frequency:2.437 GHz Access Point: 00:1B:2F:0E:59:44
Bit Rate=36 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thrff Fragment thrff
Power Managementmode:All packets received
Link Quality=5/5 Signal level=-41 dBm Noise level=-88 dBm
Rx invalid nwid:0 Rx invalid crypt:239 Rx invalid frag:0
Tx excessive retries:102 Invalid misc:0 Missed beacon:0

pan0 no wireless extensions.
-----------------------------------------------------------------
root@pedro-laptop:/home/pedro/Desktop# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1d:72:5e:09:df
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:252

eth1 Link encap:Ethernet HWaddr 00:21:00:22:70:cf
inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::221:ff:fe22:70cf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29010 errors:0 dropped:0 overruns:0 frame:194903
TX packets:31055 errors:6 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22188334 (22.1 MB) TX bytes:8303836 (8.3 MB)
Interrupt:21

eth0:avahi Link encap:Ethernet HWaddr 00:1d:72:5e:09:df
inet addr:169.254.6.155 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:252

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)

pan0 Link encap:Ethernet HWaddr 36:8a:19:97:8c:2b
inet6 addr: fe80::348a:19ff:fe97:8c2b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:40020 (40.0 KB)

pan0:avahi Link encap:Ethernet HWaddr 36:8a:19:97:8c:2b
inet addr:169.254.5.137 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
-----------------------------------------------------------------
root@pedro-laptop:/home/pedro/Desktop# dmesg | tail
[20634.463825] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
[20634.465725] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
[20648.290290] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
[20688.128146] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
[20748.129389] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
[20754.175749] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
[20808.137073] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
[20868.149265] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
[20931.432861] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
[20932.354475] TKIP: RX tkey->key_idx=2 frame keyidx=1 priv=ffff8800bf9bd240
----------------------------------------------------------------
lsmod | grep airo doesnt do anything and
zcat /proc/config.gz | grep AIRO tells me theres no such directory
 
Old 06-03-2009, 04:58 PM   #8
plugo
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Original Poster
Rep: Reputation: 0
hello guys, i just turned on my computer and when i do iwconfig, my card doesnt show. i dont know what to try in order for my card to work. i know it is a 2.6 and that i dont need to install any drivers, i read in an online article that if i do "sudo dhclient", my card should work, but nothing is happening!

root@pedro-laptop:/home/pedro# sudo dhclient
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/pan0/ea:9c:fe:af:44:34
Sending on LPF/pan0/ea:9c:fe:af:44:34
Listening on LPF/eth0/00:1d:72:5e:09:df
Sending on LPF/eth0/00:1d:72:5e:09:df
Listening on LPF/eth1/00:21:00:22:70:cf
Sending on LPF/eth1/00:21:00:22:70:cf
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on pan0 to 255.255.255.255 port 67 interval 8
DHCPREQUEST of 10.0.0.6 on eth1 to 255.255.255.255 port 67
DHCPACK of 10.0.0.6 from 10.0.0.1
bound to 10.0.0.6 -- renewal in 33007 seconds.
 
Old 06-03-2009, 05:47 PM   #9
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
According to that paste of iwconfig, eth1 is your wireless card, it is connected to 3NC and you need to auth
 
Old 06-03-2009, 06:07 PM   #10
plugo
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Original Poster
Rep: Reputation: 0
oh yeah well thats my wireless card that comes with the computer, but i want to set up the cisco 350 in it, and it is not reading it. do i need to turn off my stock card in order for the other one to kick in??
 
Old 06-03-2009, 06:09 PM   #11
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Oh, got you; first things first- is your chipset supported? Have you installed the firmware for it? Are you sure the card is correctly physically installed?
 
Old 06-03-2009, 11:09 PM   #12
plugo
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Original Poster
Rep: Reputation: 0
i do not know if my chipset supports it. how do i check? firmware...i dont think so. im pretty sure i physically inserted it correctly. last night it was at least getting me some link quality and signal level.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iwconfig linuxn00ber Linux - Wireless Networking 2 08-30-2006 11:08 PM
iwconfig xcoaster1 Linux - Wireless Networking 15 04-03-2005 07:02 PM
iwconfig help cck23 Linux - Wireless Networking 4 07-05-2004 04:51 AM
iwconfig help tgkspike Linux - Wireless Networking 1 02-28-2004 08:56 AM
iwconfig citrus Linux - Wireless Networking 3 01-03-2004 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration