WLAN AP: Defining AP-Name within CLI Prompt

  • 6
  • Idea
  • Updated 1 year ago
  • Under Consideration
Because i am working for deeper troubleshooting directly on AP CLI, I am looking for a way how to see/set the AP-Name within CLI Prompt.

(Working with IdentiFi WLAN)


Here my solution (with help of my collegue):
PS1="`grep -i apname /home/config/current.cfg | cut -b 13-` # "
To make it persistant after reboot (but maybe not after update):
echo 'PS1="`grep -i apname /home/config/current.cfg | cut -b 13-` # "' >> ~/.profile

Hopefully anybody else needs this too!


Regards
Photo of M.Nees

M.Nees, Embassador

  • 9,264 Points 5k badge 2x thumb

Posted 1 year ago

  • 6
Photo of Steve Ballantyne

Steve Ballantyne

  • 5,692 Points 5k badge 2x thumb
Impressive hack!
Photo of Robert Zarzycki

Robert Zarzycki, Employee

  • 4,272 Points 4k badge 2x thumb
Mathias, what AP models does the above apply to? 
Photo of M.Nees

M.Nees, Embassador

  • 9,264 Points 5k badge 2x thumb
I test with an AP3715e - but i am sure this will work with all IdentiFi APs.
Photo of Steve Ballantyne

Steve Ballantyne

  • 5,692 Points 5k badge 2x thumb
I just tested this with a 3825i and it worked just dandy.
Photo of Robert Zarzycki

Robert Zarzycki, Employee

  • 4,272 Points 4k badge 2x thumb
I have created a KB article based on your findings Mathias. 

Public KB Link:   Defining AP-Name within CLI Prompt
Photo of James A

James A, Embassador

  • 6,762 Points 5k badge 2x thumb
I certainly like it.
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 47,434 Points 20k badge 2x thumb
OK so we've 42.85% of the Embassadors who support the idea :-)
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 12,886 Points 10k badge 2x thumb
I like the idea of showing the AP name in the prompt as well.

This can be easily implemented by Extreme in the /etc/profile file and the commands from the first post.

Overriding the system default for the prompt (which is fallback to Busybox default of unset PS1) using $HOME/.profile is appropriate for customer (or partner) implemented configuration changes on the AP.
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 12,886 Points 10k badge 2x thumb
Hi Robert,

could you add a link to this thread to the GTAC Knowledge article?

Thanks,
Erik
Photo of Robert Zarzycki

Robert Zarzycki, Employee

  • 4,272 Points 4k badge 2x thumb
Eric, 
      Link to the GTAC KB to this thread has been added.  
Photo of Gareth Mitchell

Gareth Mitchell, Extreme Escalation Support Engineer

  • 5,578 Points 5k badge 2x thumb
Just to close off this thread, this feature has been added to 10.31.04 which is available for download now.

Knowledge article updated: https://gtacknowledge.extremenetworks.com/articles/How_To/Defining-AP-Name-within-CLI-Prompt

-Gareth
Photo of M.Nees

M.Nees, Embassador

  • 9,264 Points 5k badge 2x thumb
Thanks a lot that this are now part of the solution and useable for all customers.

Regards,
Matthias
Photo of Steve Ballantyne

Steve Ballantyne

  • 5,692 Points 5k badge 2x thumb
This was a great little hack Matthias. Glad to see it made it's way into the product release chain.