02-27-2018 02:56 AM
I'm absolutely novice for ansible and network automation, but i've received a task which makes me obtain automation skills. Would there be anyone who could advice which path to use in order to automate syslog config on various network devices (mainly cisco). Main issue is that there are too much different scenarios how it's currently configured and i'm not sure what would be the best way to handle this.
Currently congs are like: Cisco IOS logging 10.10.10.10 or logging host 10.10.10.10 or logging host 10.10.10.10 or logging host 10.10.10.10 vrf Mgmt or logging host 10.10.10.10 vrf management or It's NXOS
logging server 10.10.10.10 7 or logging server 10.10.10.10 7 use-vrf Mgmt-int
From my point of view the most easiest way would be to replace sylog server ip with the new one in the existing configurations, but not sure how to achieve this.