cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2171
Views
0
Helpful
16
Replies

Smartport - 1142 and 3502

dtom
Level 1
Level 1

Does Smartport support the 1142 AP and the 3502 AP?  It keeps comming up as a Router device - CISCO_ROUTER_EVENT

The 1131 AP work fine.

16 Replies 16

Leo Laohoo
Hall of Fame
Hall of Fame

Does Smartport support the 1142 AP and the 3502 AP?

You need to explain a bit more. 

Using the Smartport built-in macros:

macro auto execute CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT

macro auto execute CISCO_WIRELESS_AP_EVENT

macro auto execute CISCO_ROUTER_EVENT

When we plug in a 1142 AP, the port is assigned to the correct vlan (240) and the macro description shows "CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT"

When we plug in a 3502 AP, the port is not assigned to the correct vlan (176) and the macro description shows "CISCO_ROUTER_EVENT"

Here are the macros:

macro auto execute CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT  {

    if [[ $LINKUP -eq YES ]]; then

        conf t

            interface  $INTERFACE

                macro description $TRIGGER

                switchport access vlan 240

                switchport mode access

                spanning-tree portfast

            exit

        end

    fi

    if [[ $LINKUP -eq NO ]]; then

        conf t

            interface  $INTERFACE

                no macro description

                no switchport access vlan 240

                no spanning-tree portfast

                if [[ $AUTH_ENABLED -eq NO ]]; then

                    no switchport mode access

                fi

            exit

        end

    fi

}

!

macro auto execute CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT  {

    if [[ $LINKUP -eq YES ]]; then

        conf t

            interface  $INTERFACE

                macro description $TRIGGER

                switchport access vlan 176

                switchport mode access

                spanning-tree portfast

            exit

        end

    fi

    if [[ $LINKUP -eq NO ]]; then

        conf t

            interface  $INTERFACE

                no macro description

                no switchport access vlan 176

                no spanning-tree portfast

                if [[ $AUTH_ENABLED -eq NO ]]; then

                    no switchport mode access

                fi

            exit

        end

    fi

}

!

Macro auto execute CISCO_ROUTER_EVENT  {

    if [[ $LINKUP -eq YES ]]; then

        conf t

            interface  $INTERFACE

                macro description $TRIGGER

                switchport access vlan $ACCESS_VLAN

                switchport mode access

                spanning-tree portfast

            exit

        end

    fi

    if [[ $LINKUP -eq NO ]]; then

        conf t

            interface  $INTERFACE

                no macro description

                no switchport access vlan $ACCESS_VLAN

                no spanning-tree portfast

                if [[ $AUTH_ENABLED -eq NO ]]; then

                     no switchport mode access

                fi

            exit

        end

    fi

}

!

Move this thread to the EEM section. 

If Joe Clark is not busy, he should be able to help you.

ok, how do I move the thread?

Upper right-hand corner, under "Action".

The CDP platform needs to be AIR-LAP for it to fire that macro.  Perhaps these APs identify themselves differently...

So what macro trigger do I use?

Here is what is available by typing the command - macro auto execute ?

CISCO_CUSTOM_EVENT

CISCO_DMP_EVENT

CISCO_IPVSC_EVENT

CISCO_LAST_RESORT_EVENT

CISCO_PHONE_EVENT

CISCO_ROUTER_EVENT

CISCO_SWITCH_EVENT

CISCO_WIRELESS_AP_EVENT

CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT

You may have to define your own trigger and a custom profile.  What is the platform advertised by this AP?

AIR-LAP1131AG-A-K9 - this one works (CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT)

AIR-LAP1142N-A-K9 - this one does not work

AIR-CAO3502I-A-K9 - this one does not work

But what do you see in show cdp neighbor for these APs?

I typed the 3502 wrong is should be AIR-CAP3402I-A-K9

This is what I see as the platform (above) when I run "sh cdp n d".  If I just type "sh cdp n" I see:

AIR-LAP11 for the AIR-LAP1131AG-A-K9

AIR-LAP11 for the AIR-LAP1142N-A-K9

AIR-CAP35 for the AIR-CAP3502I-A-K9

Okay, this is bug CSCtk00846, and it should be fixed in 12.2(55)SE4 (on the switch) with the CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT macro event.  What version of code are you running?

We are running 12.2(55)SE3.  So, this bug is for both the 1142 and 3502?

The fix for this bug should handle both regardless of whether or not they are native lightweight or were converted to lightweight.

Review Cisco Networking for a $25 gift card