LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   iwconfig PLEASE help (https://www.linuxquestions.org/questions/linux-software-2/iwconfig-please-help-730242/)

plugo 06-02-2009 04:14 PM

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.

jamescondron 06-02-2009 04:22 PM

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

plugo 06-02-2009 05:15 PM

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 :)

Uncle_Theodore 06-02-2009 05:28 PM

Quote:

Originally Posted by plugo (Post 3560851)
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.

plugo 06-02-2009 06:37 PM

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.

Uncle_Theodore 06-02-2009 09:39 PM

Quote:

Originally Posted by plugo (Post 3560918)
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

plugo 06-02-2009 10:40 PM

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 thr:off Fragment thr:off
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

plugo 06-03-2009 03:58 PM

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.

jamescondron 06-03-2009 04:47 PM

According to that paste of iwconfig, eth1 is your wireless card, it is connected to 3NC and you need to auth

plugo 06-03-2009 05:07 PM

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??

jamescondron 06-03-2009 05:09 PM

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?

plugo 06-03-2009 10:09 PM

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.


All times are GMT -5. The time now is 11:33 AM.