You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

networksetup -getairportnetwork en0 is not returning SSID after update to IOS 18

Before upgrading to to Version 15.0 (24A335) (Sequoia) "networksetup -getairportnetwork en0" would return the SSID of the connected Wi-Fi network. It now returns "You are not associated with an AirPort network."

I'm not sure if this is a bug in Sequoia or if there is an alternative command to return the SSID of a connected.

Does anyone from Apple Support know if the "networksetup -getairportnetwork en0" has been depreciated, or if it's a bug. It would be really useful to have it return the connected SSID again.

MacBook Air 13″, macOS 15.0

Posted on Sep 28, 2024 4:39 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 28, 2024 8:15 AM

If that command was deprecated (like airport), it would tell you so. If your router is not an AirPort Extreme Base Station or AirPort Express, then expect the message you received. I am using a Synology RT6600ax and I received that message with Sonoma 14.6.1, 14.7, and now Sequoia 15.0.


As far as I can tell, the only means to get the current network SSID name string back in Sequoia is the following:


system_profiler SPAirPortDataType | awk '/Current Network/ {getline;$1=$1; gsub(":",""); print;exit}'



This has nothing to do with iOS 18 which is strictly on supported iPhones.

3 replies
Question marked as Top-ranking reply

Sep 28, 2024 8:15 AM in response to RobW

If that command was deprecated (like airport), it would tell you so. If your router is not an AirPort Extreme Base Station or AirPort Express, then expect the message you received. I am using a Synology RT6600ax and I received that message with Sonoma 14.6.1, 14.7, and now Sequoia 15.0.


As far as I can tell, the only means to get the current network SSID name string back in Sequoia is the following:


system_profiler SPAirPortDataType | awk '/Current Network/ {getline;$1=$1; gsub(":",""); print;exit}'



This has nothing to do with iOS 18 which is strictly on supported iPhones.

Sep 28, 2024 8:35 AM in response to VikingOSX

VikingOSX, thank you for taking the time to respond to my enquiry and for clarifying it's for AirPort Extreme devices, also for providing an alternative line command. I guess that it worked before I upgraded was a bit of a fluke.


I cut and paste the command line you kindly provided to Terminal, and it worked very well, thank you. My first attempt was an error on my part.


My apologies for the misleading header on ISO 18, I meant to change it to MAC OS 15 Sequoia.


-Rob

networksetup -getairportnetwork en0 is not returning SSID after update to IOS 18

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.