See below, you need to replace "lwapp" keyword with "capwap"
Refer this as well for some more detail about AP Registration
**** Pls rate all useful responses ****
1. configure the AP to boot the recovery image:
ap#debug lwapp console cli (use "debug capwap console cli" if running 5.2 or above)
ap#dir flash:/ (look for a folder with "rcvk9w8" in its name)
ap(config)#boot system flash:/c1250-rcvk9w8-mx/c1250-rcvk9w8-mx
2. disconnect the AP from the LAN (e.g. shutdown the switchport)
3. reload the AP
4. from the AP console, clear the LWAPP (CAPWAP) configuration:
ap#clear lwapp private-config
5. You can now enter the "lwapp ap" "Ease of Deploy" CLI commands.
1. Disconnect the AP from the LAN (e.g. shutdown the switchport)
2. ap#debug lwapp console cli (use "debug capwap console cli" if running 5.2 or above)
3. ap#write erase
5. After reloading, you can now use the "lwapp ap" (or "capwap ap")
"Ease of Deploy" CLI commands.
ap#test lwapp controller ip a.b.c.d [w.x.y.z] (or "test capwap controller")
Please see the below similar discussion
Following are the commands :
AP#lwapp ap ip address
AP#lwapp ap ip default-gateway
AP#lwapp ap controller ip address
AP#lwapp ap hostname
let me know If the solution is useful.
The LWAPP AP goes through this process on startup for Layer 3 mode:
The LAP boots and DHCPs an IP address if it was not previously assigned a static IP address.
The LAP sends discovery requests to controllers through the various discovery algorithms and builds a controller list. Essentially, the LAP learns as many management interface addresses for the controller list as possible via:
DHCP option 43 (good for global companies where offices and controllers are on different continents)
DNS entry for cisco-capwap-controller (good for local businesses - can also be used to find where brand new APs join)
Note: If you use CAPWAP, make sure that there is a DNS entry for cisco-capwap-controller.
Management IP addresses of controllers the LAP remembers previously
A Layer 3 broadcast on the subnet
Over the air provisioning
Statically configured information