Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create fortiwlc.rb #2473

Merged
4 commits merged into from
Nov 29, 2022
Merged

Create fortiwlc.rb #2473

4 commits merged into from
Nov 29, 2022

Conversation

DRIgnazGortngschirl
Copy link
Contributor

@DRIgnazGortngschirl DRIgnazGortngschirl commented Feb 9, 2022

Works somehow but also adds "#" to the config file

# # COMMAND: show controller
# Global Controller Parameters
# 
# Controller ID                              : 1
# Description                                : controller
# Host Name                                  : NAME
# Uptime                                     : 77d:12h:44m:20s
# Location                                   : 
# Contact                                    : 
# Operational State                          : Enabled
# Availability Status                        : Online
# Alarm State                                : No Alarm
# Automatic AP Upgrade                       : on
# Virtual IP Address                         : 192.168.140.220
# Virtual Netmask                            : 255.255.255.0
# Default Gateway                            : 192.168.140.254
# IPv6 Global Address                        : ::
# IPv6 Link Local Address                    : 
# Default IPv6 Gateway                       : ::
# DHCP Server                                : 127.0.0.1
# Statistics poll period (sec)/0 => disabled : 60
# Audit poll period (sec)/0 => disabled      : 60
# Software Version                           : 8.6-2build-4
# Network Device Id                          : 00:0d:48:3d:55:15
# System Id                                  : 
# Default AP Init Script                     : 
# DHCP Relay Passthrough                     : on
# Enable DHCP Option 82                      : Disabled
# DHCP Option 82 Remote Id field format      : AP-MAC
# Controller Model                           : FortiWLC-50D
# Region Setting                             : INTL
# Country Setting                            : Austria
# Manufacturing Serial #                     : FWC50DT000000000
# Management by wireless stations            : on
# Controller Index                           : 1
# FastPath Mode                              : on
# Bonding Mode                               : single
# Station Aging Out Period(minutes)          : 2
# Roaming Domain State                       : disable
# Station Roaming Time Out Period(minutes)   : 60
# Layer3 Routing Mode                        : off
# Force Dhcp Retries                         : 4
# VM NIC Queues                              : N/A
# Fwd IPV6 MLD Report                        : off
# DHCP6 Server                               : ::1
# Platform                                   : 64
# # COMMAND: show ap
# AP ID AP Name             MAC Address        Uptime          OperState Availability Path MTU Runtime                 Connectivity IP Address      AP Model   Ap gr Feature Operating Mode
# 
# 1     NAME-hq-ap-05       00:0c:e6:f7:ef:a0  77d:12h:29m:59s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 2     NAME-hq-ap-01       00:0c:e6:f7:f0:60  77d:12h:30m:42s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 4     NAME-hq-ap-06       00:0c:e6:f7:ef:00  77d:12h:30m:18s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 5     NAME-hq-ap-10       00:0c:e6:f7:ef:20  77d:12h:30m:12s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 6     NAME-hq-ap-07       00:0c:e6:f7:ed:60  77d:12h:29m:38s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 7     NAME-hq-ap-09       00:0c:e6:f7:f0:20  77d:12h:29m:47s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 8     NAME-hq-ap-04       00:0c:e6:f7:ee:a0  77d:12h:29m:08s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 9     NAME-hq-ap-03       00:0c:e6:f7:ed:c0  77d:12h:25m:56s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 10    NAME-hq-ap-02       00:0c:e6:f7:ee:c0  77d:12h:29m:08s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 11    NAME-hq-ap-14       00:0c:e6:f7:f2:40  77d:12h:30m:06s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 12    NAME-hq-ap-12       00:0c:e6:f7:f5:20  77d:12h:30m:10s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 13    NAME-hq-ap-13       00:0c:e6:f7:f4:60  77d:12h:30m:08s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 14    NAME-hq-ap-11       00:0c:e6:f7:f5:40  77d:12h:29m:03s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 15    NAME-hq-ap-18       00:0c:e6:f7:f3:a0  77d:12h:29m:41s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 16    NAME-hq-ap-16       00:0c:e6:f7:f6:40  77d:12h:29m:41s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 17    NAME-hq-ap-20       00:0c:e6:f7:f3:20  77d:12h:29m:09s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 18    NAME-hq-ap-17       00:0c:e6:f7:f1:80  77d:12h:30m:37s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 19    NAME-hq-ap-15       00:0c:e6:f7:f5:80  77d:12h:29m:29s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 20    NAME-hq-ap-19       00:0c:e6:f7:f1:c0  77d:12h:29m:03s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 21    NAME-hq-ap-08       00:0c:e6:f7:f0:40  77d:12h:29m:45s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 22    NAME-dues-ap-01     00:0c:e6:f9:ad:60  19d:20h:54m:08s Enabled   Online       1438     8.6-2build-4            L3           192.168.141.221 FAP-U223EV 1     1       Normal
# 23    NAME-dues-ap-02     00:0c:e6:f9:af:a0  02d:00h:26m:57s Enabled   Online       1438     8.6-2build-4            L3           192.168.141.222 FAP-U223EV 1     1       Normal
# 24    NAME-berlin-ap-01   00:0c:e6:f9:78:40  07d:10h:30m:11s Enabled   Online       1422     8.6-2build-4            L3           192.168.142.221 FAP-U223EV 2     2       Normal
# 25    NAME-dues-ap-03     00:0c:e6:f9:b0:20  00d:00h:00m:00s Disabled  Offline      1500                             None                         FAP-U223EV 1     1       Normal
# 27    NAME-muen-ap-01     d4:76:a0:d1:ee:a0  07d:10h:30m:10s Enabled   Online       1422     8.6-2build-4            L3           192.168.141.129 FAP-U223EV 4     4       Normal
# 28    dues-new-ap         00:0c:e6:75:02:30  02d:00h:26m:58s Enabled   Online       1438     8.6-2build-4            L3           192.168.141.223 FAP-U223EV 1     1       Normal
# 
#          Access Points(26)
# # COMMAND: show running-config
# #Building configuration. Please wait ...
# #note: credential are not shown in the output
# configure  terminal
# key-encoding  enable
# no rogue-ap  detection
# no ip  dhcp-server
# no fwd-ipv6-mld-report  nativevlan
# no ap-group  Duesseldorf-APs
# no ap-group  Berlin-APs
# no ap-group  Vienna-APs
# no ap-group  Munich-APs
# audit period  60
# controller-index  1
# auto-ap-upgrade  enable
# topo-update  disable
# aeroscout  disable
# aeroscout ip-address  0.0.0.0
# aeroscout port  12092
# fastpath  on
# client-handoff-logic  on
# bonding  single
# 10gig-module  disable
# 1gig-sfp  disable
# igmp-snoop state  enable
# igmp-snoop age-time  300
# proxy-ndp  enable
# proxy-ndp  disable
# roaming-domain  stop
# roaming-domain roam-time-out  60
# snmp-filter-config ap-discovered  on
# snmp-filter-config ap-assigned  off
# snmp-filter-config ap-neighbor  off

Pre-Request Checklist

  • Passes rubocop code analysis (try rubocop --auto-correct)
  • Tests added or adapted (try rake test)
  • Changes are reflected in the documentation
  • User-visible changes appended to CHANGELOG.md

Description

Works somehow but also adds "#" to the config file

```
# # COMMAND: show controller
# Global Controller Parameters
# 
# Controller ID                              : 1
# Description                                : controller
# Host Name                                  : NAME
# Uptime                                     : 77d:12h:44m:20s
# Location                                   : 
# Contact                                    : 
# Operational State                          : Enabled
# Availability Status                        : Online
# Alarm State                                : No Alarm
# Automatic AP Upgrade                       : on
# Virtual IP Address                         : 192.168.140.220
# Virtual Netmask                            : 255.255.255.0
# Default Gateway                            : 192.168.140.254
# IPv6 Global Address                        : ::
# IPv6 Link Local Address                    : 
# Default IPv6 Gateway                       : ::
# DHCP Server                                : 127.0.0.1
# Statistics poll period (sec)/0 => disabled : 60
# Audit poll period (sec)/0 => disabled      : 60
# Software Version                           : 8.6-2build-4
# Network Device Id                          : 00:0d:48:3d:55:15
# System Id                                  : 
# Default AP Init Script                     : 
# DHCP Relay Passthrough                     : on
# Enable DHCP Option 82                      : Disabled
# DHCP Option 82 Remote Id field format      : AP-MAC
# Controller Model                           : FortiWLC-50D
# Region Setting                             : INTL
# Country Setting                            : Austria
# Manufacturing Serial #                     : FWC50DT000000000
# Management by wireless stations            : on
# Controller Index                           : 1
# FastPath Mode                              : on
# Bonding Mode                               : single
# Station Aging Out Period(minutes)          : 2
# Roaming Domain State                       : disable
# Station Roaming Time Out Period(minutes)   : 60
# Layer3 Routing Mode                        : off
# Force Dhcp Retries                         : 4
# VM NIC Queues                              : N/A
# Fwd IPV6 MLD Report                        : off
# DHCP6 Server                               : ::1
# Platform                                   : 64
# # COMMAND: show ap
# AP ID AP Name             MAC Address        Uptime          OperState Availability Path MTU Runtime                 Connectivity IP Address      AP Model   Ap gr Feature Operating Mode
# 
# 1     NAME-hq-ap-05       00:0c:e6:f7:ef:a0  77d:12h:29m:59s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 2     NAME-hq-ap-01       00:0c:e6:f7:f0:60  77d:12h:30m:42s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 4     NAME-hq-ap-06       00:0c:e6:f7:ef:00  77d:12h:30m:18s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 5     NAME-hq-ap-10       00:0c:e6:f7:ef:20  77d:12h:30m:12s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 6     NAME-hq-ap-07       00:0c:e6:f7:ed:60  77d:12h:29m:38s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 7     NAME-hq-ap-09       00:0c:e6:f7:f0:20  77d:12h:29m:47s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 8     NAME-hq-ap-04       00:0c:e6:f7:ee:a0  77d:12h:29m:08s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 9     NAME-hq-ap-03       00:0c:e6:f7:ed:c0  77d:12h:25m:56s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 10    NAME-hq-ap-02       00:0c:e6:f7:ee:c0  77d:12h:29m:08s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 11    NAME-hq-ap-14       00:0c:e6:f7:f2:40  77d:12h:30m:06s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 12    NAME-hq-ap-12       00:0c:e6:f7:f5:20  77d:12h:30m:10s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 13    NAME-hq-ap-13       00:0c:e6:f7:f4:60  77d:12h:30m:08s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 14    NAME-hq-ap-11       00:0c:e6:f7:f5:40  77d:12h:29m:03s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 15    NAME-hq-ap-18       00:0c:e6:f7:f3:a0  77d:12h:29m:41s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 16    NAME-hq-ap-16       00:0c:e6:f7:f6:40  77d:12h:29m:41s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 17    NAME-hq-ap-20       00:0c:e6:f7:f3:20  77d:12h:29m:09s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 18    NAME-hq-ap-17       00:0c:e6:f7:f1:80  77d:12h:30m:37s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 19    NAME-hq-ap-15       00:0c:e6:f7:f5:80  77d:12h:29m:29s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 20    NAME-hq-ap-19       00:0c:e6:f7:f1:c0  77d:12h:29m:03s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 21    NAME-hq-ap-08       00:0c:e6:f7:f0:40  77d:12h:29m:45s Enabled   Online       1500     8.6-2build-4            L2           0.0.0.0         FAP-U223EV 3     3       Normal
# 22    NAME-dues-ap-01     00:0c:e6:f9:ad:60  19d:20h:54m:08s Enabled   Online       1438     8.6-2build-4            L3           192.168.141.221 FAP-U223EV 1     1       Normal
# 23    NAME-dues-ap-02     00:0c:e6:f9:af:a0  02d:00h:26m:57s Enabled   Online       1438     8.6-2build-4            L3           192.168.141.222 FAP-U223EV 1     1       Normal
# 24    NAME-berlin-ap-01   00:0c:e6:f9:78:40  07d:10h:30m:11s Enabled   Online       1422     8.6-2build-4            L3           192.168.142.221 FAP-U223EV 2     2       Normal
# 25    NAME-dues-ap-03     00:0c:e6:f9:b0:20  00d:00h:00m:00s Disabled  Offline      1500                             None                         FAP-U223EV 1     1       Normal
# 27    NAME-muen-ap-01     d4:76:a0:d1:ee:a0  07d:10h:30m:10s Enabled   Online       1422     8.6-2build-4            L3           192.168.141.129 FAP-U223EV 4     4       Normal
# 28    dues-new-ap         00:0c:e6:75:02:30  02d:00h:26m:58s Enabled   Online       1438     8.6-2build-4            L3           192.168.141.223 FAP-U223EV 1     1       Normal
# 
#          Access Points(26)
# # COMMAND: show running-config
# #Building configuration. Please wait ...
# #note: credential are not shown in the output
# configure  terminal
# key-encoding  enable
# no rogue-ap  detection
# no ip  dhcp-server
# no fwd-ipv6-mld-report  nativevlan
# no ap-group  Duesseldorf-APs
# no ap-group  Berlin-APs
# no ap-group  Vienna-APs
# no ap-group  Munich-APs
# audit period  60
# controller-index  1
# auto-ap-upgrade  enable
# topo-update  disable
# aeroscout  disable
# aeroscout ip-address  0.0.0.0
# aeroscout port  12092
# fastpath  on
# client-handoff-logic  on
# bonding  single
# 10gig-module  disable
# 1gig-sfp  disable
# igmp-snoop state  enable
# igmp-snoop age-time  300
# proxy-ndp  enable
# proxy-ndp  disable
# roaming-domain  stop
# roaming-domain roam-time-out  60
# snmp-filter-config ap-discovered  on
# snmp-filter-config ap-assigned  off
# snmp-filter-config ap-neighbor  off
```
@ghost
Copy link

ghost commented May 13, 2022

Please add to documentation

@ghost
Copy link

ghost commented Jul 13, 2022

Please fix the merge conflict

@DRIgnazGortngschirl
Copy link
Contributor Author

Please fix the merge conflict

I don't really know how, or what to do here. :(

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant