Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 181323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:44:36+00:00 2026-05-11T14:44:36+00:00

I would like to be able to get the speed of the wireless interface

  • 0

I would like to be able to get the speed of the wireless interface under Mac OS X. I have a perl script that gets the other information for the wireless card but I still need to get the connection speed.

For the moment I have statically set the airport speed with: $airport_rate = ’54’; (see code below).

What command could I use to get the speed of the built in airport card or what am I missing in my code below. Thanks

EDIT: This code now works. Thanks. Sample output for the script:

ETHERNET IP    : 192.168.2.7 AIRPORT  IP    : 192.168.2.4 AIRPORT STATUS : CONNECTED         SSID   : Forcefield         RATE   : 54 Mb/s 
#!/usr/bin/perl                                                                                                          # a little script to get your network status                                                                              $en0_info = `ifconfig en0 | grep 'inet' | grep -v 127.0.0.1`; $en1_info = `ifconfig en1 | grep 'inet' | grep -v 127.0.0.1`; $airport_info = `/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I`;  if($en0_info) {     $en0_info =~ /inet (.*) netmask/s;     $output .= 'ETHERNET IP    : $1\n'; } else { $output .= 'ETHERNET IP    : INACTIVE\n'; }  if($en1_info) {     $en1_info =~ /inet (.*) netmask/s;     $en1_info = $1;     $airport_info =~ /lastTxRate: (\d\d\d)/s;     $airport_rate = $1;     $airport_info =~ /BSSID(.*?)SSID: (.*?)\n/s;     $airport_SSID = $2;     $output .= 'AIRPORT  IP    : $en1_info\n';     $output .= 'AIRPORT STATUS : CONNECTED\n';     $output .= '        SSID   : $airport_SSID\n';     $output .= '        RATE   : $airport_rate Mb/s\n'; } else {     $output .= 'AIRPORT STATUS : INACTIVE\n'; }  print '$output'; 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:44:36+00:00Added an answer on May 11, 2026 at 2:44 pm

    I was surprised to discover this is non-trivial. However, a quick application of Yahoo! Search found a pointer to the ‘airport’ command line script, which looks like it’ll give you the answers you want. See http://osxdaily.com/2007/01/18/airport-the-little-known-command-line-wireless-utility/

    In a nutshell, /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I will give you what you seek. And it doesn’t appear to require root privs, either.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 83k
  • Answers 83k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Iain, this is basically a terminology question and is, despite… May 11, 2026 at 4:52 pm
  • Editorial Team
    Editorial Team added an answer Maybe this can help you Entity-Relationship Diagram building software May 11, 2026 at 4:52 pm
  • Editorial Team
    Editorial Team added an answer I would at least learn the basic servlet lifecycle and… May 11, 2026 at 4:52 pm

Related Questions

I'm trying to write a notification service (for completely legit non-spam purposes) in .NET
I am currently being offered a job for an IT development business (notice I
I've been playing around with some things and thought up the idea of trying
I was wondering how you guys actually develop large applications when you are your

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.