Friday, October 10, 2014

Batch Renaming Cisco APs From the Controller

1. Login to the controller through Linux terminal

2. Find the current AP Names to be replaced
    show ap summary <string to search>

3. Copy the current AP Names into a text editor

4. Write the new names next to the current names in the text editor
    ie)    <new ap name>    <old ap name>

5. Save the text file
    ie) apnames.txt

6. Open a separate Linux terminal and use awk
    awk '{ print "config ap name",$1,$2}' apnames.txt

   Using awk: awk print will print a line consisting of the arguments used. It print the contained string with the two arguments $1, $2 coming from the columns of the apnames.txt file.

7. Copy the output of awk command and paste into the controller terminal
    Note: It might be a good idea to copy one line first to see if it will execute correctly.

8. On the controller, verify the new AP names
    show ap summary
  

No comments:

Post a Comment