Skip to content

Commit

Permalink
Merge pull request #273 from networktocode/cisco_wlc_ssh_show_ap_conf…
Browse files Browse the repository at this point in the history
…ig_general

Cisco wlc ssh show ap config general
  • Loading branch information
jmcgill298 authored Oct 17, 2018
2 parents 0ce687f + 200556e commit cdb9ab1
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 0 deletions.
74 changes: 74 additions & 0 deletions templates/cisco_wlc_ssh_show_ap_config_general.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
Value IDENTIFIER (.+?)
Value NAME (.+?)
Value COUNTRY_CODE (\S+)
Value COUNTRY (.+?)
Value MAC (.+?)
Value IP (.+?)
Value NETMASK (.+?)
Value GATEWAY (.+?)
Value AP_GROUP (.+?)
Value PRIMARY_SWITCH_NAME (.+?)
Value PRIMARY_SWITCH_IP (.+?)
Value SECONDARY_SWITCH_NAME (.+?)
Value SECONDARY_SWITCH_IP (.+?)
Value TERTIARY_SWITCH_NAME (.+?)
Value TERTIARY_SWITCH_IP (.+?)
Value ADMINISTRATIVE_STATE (.+?)
Value OPERATION_STATE (.+?)
Value MODE (.+?)
Value MODEL (.+?)
Value IMAGE (.+?)
Value VERSION (.+?)
Value SERIAL_NUMBER (.+?)
Value FLEXCONNECT_VLAN_MODE (.+?)
Value UPTIME (.+?)
Value LWAPP_UPTIME (.+?)
Value JOIN_DATE_TIME (.+?)
Value JOIN_TAKEN_TIME (.+?)

Start
^Cisco\s+AP\s+Identifier\.*\s+${IDENTIFIER}\s*$$
^Cisco\s+AP\s+Name\.*\s+${NAME}\s*$$
^Country\s+code\.*\s+${COUNTRY_CODE}\s+-\s+${COUNTRY}\s*$$
^MAC\s+Address\.*\s+${MAC}\s*$$
^IP\s+Address\.*\s+${IP}\s*$$
^IP\s+NetMask\.*\s+${NETMASK}\s*$$
^Gateway\s+IP\s+Addr\.*\s+${GATEWAY}\s*$$
^Cisco\s+AP\s+Group\s+Name\.*\s+${AP_GROUP}\s*$$
^Primary\s+Cisco\s+Switch\s+Name\.*\s+${PRIMARY_SWITCH_NAME}\s*$$
^Primary\s+Cisco\s+Switch\s+IP\s+Address\.*\s+${PRIMARY_SWITCH_IP}\s*$$
^Secondary\s+Cisco\s+Switch\s+Name\.*\s+${SECONDARY_SWITCH_NAME}\s*$$
^Secondary\s+Cisco\s+Switch\s+IP\s+Address\.*\s+${SECONDARY_SWITCH_IP}\s*$$
^Tertiary\s+Cisco\s+Switch\s+Name\.*\s+${TERTIARY_SWITCH_NAME}\s*$$
^Tertiary\s+Cisco\s+Switch\s+IP\s+Address\.*\s+${TERTIARY_SWITCH_IP}\s*$$
^Administrative\s+State\s+\.*\s+${ADMINISTRATIVE_STATE}\s*$$
^Operation\s+State\s+\.*\s+${OPERATION_STATE}\s*$$
^AP\s+Mode\s+\.*\s+${MODE}\s*$$
^AP\s+Model\.*\s+${MODEL}\s*$$
^AP\s+Image\.*\s+${IMAGE}\s*$$
^IOS\s+Version\.*\s+${VERSION}\s*$$
^AP\s+Serial\s+Number\.*\s+${SERIAL_NUMBER}\s*$$
^FlexConnect\s+Vlan\s+mode\s+:\.+\s+${FLEXCONNECT_VLAN_MODE}\s*$$
^AP\s+Up\s+Time\.*\s+${UPTIME}\s*$$
^AP\s+LWAPP\s+Up\s+Time\.*\s+${LWAPP_UPTIME}\s*$$
^Join\s+Date\s+and\s+Time\.*\s+${JOIN_DATE_TIME}\s*$$
^Join\s+Taken\s+Time\.*\s+${JOIN_TAKEN_TIME}\s*$$ -> Record
^.+\.+
^-+
^\s*$$
^\S+\s+VLAN.+Mappings
^\s+Template\s+in\s+
^AP-Specific\s+FlexConnect
^FlexConnect\s+Local-Split
^WLAN\s+ID\s+PROFILE\s+NAME\s+ACL\s+TYPE\s*$$
^\s+Flexconnect\s+Central-Dhcp
^WLAN\s+ID\s+PROFILE NAME\s+Central-Dhcp\s+DNS\s+Override\s+Nat-Pat\s+Type\s*$$
^\s+\d+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s*$$
^\s+\d+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s*$$
^\s+\d+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s*$$
^WlanId\s+PROFILE NAME\s+Inherit-level\s+Visibility\s+Flex\s+Avc-profile\s*$$
^\d+\s+\S+\s+\S+\s+\S+\s+\S+\s*$$
^\d+\s+\S+\s+\S+\s+\S+\s+\S+\s*$$
^\d+\s+\S+\s+\S+\s+\S+\s+\S+\s*$$
^FlexConnect\s+Backup\s+Auth
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ cisco_nxos_show_vpc.template, .*, cisco_nxos, sh[[ow]] vpc
cisco_nxos_show_vrf.template, .*, cisco_nxos, sh[[ow]] vrf

cisco_wlc_ssh_show_cdp_neighbors_detail.template, .*, cisco_wlc_ssh, sh[[ow]] c[[dp]] neig[[hbors]] det[[ail]]
cisco_wlc_ssh_show_ap_config_general.template, .*, cisco_wlc_ssh, sh[[ow]] ap con[[fig]] ge[[neral]]
cisco_wlc_ssh_show_sysinfo.template, .*, cisco_wlc_ssh, sh[[ow]] sysi[[nfo]]

cisco_xr_show_controllers_HundredGigabitEthernet.template, .*, cisco_xr, sh[[ow]] contr[[ollers]] Hu[[ndredGigabitEthernet]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
parsed_sample:
- administrative_state: ADMIN_ENABLED
ap_group: GROUP_PE
country_code: IT
country: Italy
flexconnect_vlan_mode: Enabled
gateway: 10.1.1.254
identifier: '111'
image: C2700-K9W8-M
ip: 10.1.1.1
join_date_time: Wed Jan 17 10:07:12 2018
join_taken_time: 0 days, 00 h 05 m 36 s
lwapp_uptime: 165 days, 11 h 03 m 33 s
mac: 00:62:ec:01:02:03
mode: FlexConnect
model: AIR-CAP2702E-E-K9
name: AP_test_01
netmask: 255.255.255.0
operation_state: REGISTERED
primary_switch_ip: 10.2.2.2
primary_switch_name: WLC
secondary_switch_ip: Not Configured
secondary_switch_name: ''
serial_number: FCEDDCCBBAA
tertiary_switch_ip: Not Configured
tertiary_switch_name: ''
uptime: 248 days, 07 h 09 m 00 s
version: 15.3(3)JC9$
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
Cisco AP Identifier.............................. 111
Cisco AP Name.................................... AP_test_01
Country code..................................... IT - Italy
Regulatory Domain allowed by Country............. 802.11bg:-E 802.11a:-E
AP Country code.................................. IT - Italy
AP Regulatory Domain............................. -E
Switch Port Number .............................. 8
MAC Address...................................... 00:62:ec:01:02:03
IP Address Configuration......................... Static IP assigned
IP Address....................................... 10.1.1.1
IP NetMask....................................... 255.255.255.0
Gateway IP Addr.................................. 10.1.1.254
Domain...........................................
Name Server...................................... 192.168.1.1
NAT External IP Address.......................... None
CAPWAP Path MTU.................................. 1485
DHCP Release Override............................ Disabled
Telnet State..................................... Globally Enabled
Ssh State........................................ Globally Enabled
Cisco AP Location................................ default location
Cisco AP Floor Label............................. 0
Cisco AP Group Name.............................. GROUP_PE
Primary Cisco Switch Name........................ WLC
Primary Cisco Switch IP Address.................. 10.2.2.2
Secondary Cisco Switch Name......................
Secondary Cisco Switch IP Address................ Not Configured
Tertiary Cisco Switch Name.......................
Tertiary Cisco Switch IP Address................. Not Configured
Administrative State ............................ ADMIN_ENABLED
Operation State ................................. REGISTERED
Mirroring Mode .................................. Disabled
AP Mode ......................................... FlexConnect
Public Safety ................................... Disabled
AP SubMode ...................................... Not Configured
Rogue Detection ................................. Enabled
AP Vlan Trunking ................................ Enabled (Inherited)
AP Native Vlan ID: .............................. 1 (Inherited)
Remote AP Debug ................................. Disabled
Logging trap severity level ..................... emergencies
Logging syslog facility ......................... kern
S/W Version .................................... 8.2.164.0
Boot Version ................................... 15.2.4.5
Mini IOS Version ................................ 8.2.100.0
Stats Reporting Period .......................... 180
Stats Collection Mode ........................... normal
Radio Core Mode ................................. Disabled
Slub Debug Mode ................................. Disabled
LED State........................................ Enabled
PoE Pre-Standard Switch.......................... Disabled
PoE Power Injector MAC Addr...................... Disabled
Power Type/Mode.................................. PoE/Medium Power (15.4 W)
Number Of Slots.................................. 2
AP Model......................................... AIR-CAP2702E-E-K9
AP Image......................................... C2700-K9W8-M
IOS Version...................................... 15.3(3)JC9$
Reset Button..................................... Enabled
AP Serial Number................................. FCEDDCCBBAA
AP Certificate Type.............................. Manufacture Installed
AP LAG Configuration Status ..................... Disabled
LAG Support for AP .............................. No
Native Vlan Inheritance: ........................ AP
FlexConnect Vlan mode :.......................... Enabled
Native ID :..................................... 1
WLAN 13 :....................................... 3 (Wlan-Specific)
WLAN 46 :....................................... 13 (Wlan-Specific)
WLAN 70 :....................................... 254 (Wlan-Specific)
FlexConnect VLAN ACL Mappings
FlexConnect Group................................ Not a member of any group
Group VLAN ACL Mappings


Group VLAN Name to Id Mappings
Template in Modified State - apply it to see mappings

AP-Specific FlexConnect Policy ACLs :
L2Acl Configuration ............................. Not Available
FlexConnect Local-Split ACLs :

WLAN ID PROFILE NAME ACL TYPE
------- -------------------------------- --------------------------------- -------

Flexconnect Central-Dhcp Values :

WLAN ID PROFILE NAME Central-Dhcp DNS Override Nat-Pat Type
------- --------------------------------- -------------- -------------- --------- ------
13 WLAN_13 False False False Wlan
46 WLAN_46 False False False Wlan
70 WLAN_70 False False False Wlan

Flex AVC visibility Configurations..............

WlanId PROFILE NAME Inherit-level Visibility Flex Avc-profile
------- -------------------------------- ------------- ---------- --------------------------------
13 WLAN_13 wlan-spec disable none
46 WLAN_46 wlan-spec disable none
70 WLAN_70 wlan-spec enable none

FlexConnect Backup Auth Radius Servers :
Primary Radius Server........................... Disabled
Secondary Radius Server......................... Disabled
AP User Mode..................................... AUTOMATIC
AP User Name..................................... admin
AP Dot1x User Mode............................... Not Configured
AP Dot1x User Name............................... Not Configured
Cisco AP system logging host..................... 255.255.255.255
AP Up Time....................................... 248 days, 07 h 09 m 00 s
AP LWAPP Up Time................................. 165 days, 11 h 03 m 33 s
Join Date and Time............................... Wed Jan 17 10:07:12 2018
Join Taken Time.................................. 0 days, 00 h 05 m 36 s
Memory Type...................................... DDR3
Memory Size...................................... 11839 KBytes
CPU Type......................................... PowerPC CPU at 800Mhz, revision number 0x2151
Flash Type....................................... Onboard Flash
Flash Size....................................... 1564 KBytes
GPS Present...................................... NO
Ethernet Vlan Tag................................ Disabled
Ethernet Port Duplex............................. Auto
Ethernet Port Speed.............................. Auto
AP Link Latency.................................. Disabled
Rogue Detection.................................. Enabled
AP TCP MSS Adjust................................ Disabled
Hotspot Venue Group.............................. Unspecified
Hotspot Venue Type............................... Unspecified
DNS server IP ............................. 192.168.1.1

0 comments on commit cdb9ab1

Please sign in to comment.