Closed CyberCriminal0 closed 1 year ago
I am unsure if it is possible to override the usage of "section" for "include" or a similar command in this playbook, that would solve this issue as that command is present in firmware 12.2
@CyberCriminal0 Hello, The supported appliance version is IOSXE 17.x The version mentioned is not supported anymore.
The suggestion you shared does partially solve the problem but that raised a group of more issues where we need to maintain various patterns of similar commands which is again version specific. Hence, similar solutions are not adequate. Regards
SUMMARY
Playbooks using this collection against Cisco IOS devices running a firmware branch older than 12.3 (in this case 12.2(55)SE) do not include the "section" command causing tasks to fail.
ISSUE TYPE
COMPONENT NAME
cisco.ios.ios_snmp_server
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
STEPS TO REPRODUCE
This is run on a Cisco WS-C3560X-48P-E switch, running firmware 12.2(55)SE5
EXPECTED RESULTS
Playbook would run and set the defined SNMP users and group
ACTUAL RESULTS
Attempting to run show running-config | section ^snmp-server on the switch via the local CLI shows the same result, other filtering commands like "include" work as expected, just not section as it is a feature of IOS 12.3