Đã Đóng

Ansible: trace interface errors from core switches to access -- 2


Need someone to automate the following using Ansible.

Task description:

Let's say, I know which switch port a server is connected to: acc_sw1, interface Eth1. I want to check all related links from the access to core switches for any errors. That is I want to get the output of:

- "show interface Eth1" on that access switch,

- "show interface" on its uplink (distribution) switches (only for interfaces connected to acc_sw1),

- "show interface" on the uplink (core) switches of the distribution switches (only for interfaces connected to the distribution switches).

All switches in the environment have SNMP location info - for access switches the location string has "ACC", for distribution switches - "DST", for core switches - "COR".

In short, given this input:

- inventory file: switch name (e.g. "acc_sw1")

- host_vars => switch name: interface Eth1

(and the fact that all switches have respective SNMP location tags),

get the "show interface" output from core to access switches.

Possible steps:

1. Run "show interface Eth1" on acc_sw1, store the output (output1).

2. Run "show cdp neighbors" on acc_sw1, note all neighbors (acc_sw_nbrs).

3. Run "show snmp | include location" against the entries of acc_sw_nbrs, note those which have "DST" (dst_sw).

4. Run "show cdp neighbors" against the entries of dst_sw, note

- the interfaces going to acc_sw1 (dst_sw_downlinks),

- all neighbors (dst_sw_nbrs).

5. Run "show interface {dst_sw_downlinks}" on the entries of dst_sw, store the output (output2).

6. Run "show snmp | include location" against the entries of dst_sw_nbrs, note those which have "COR" (cor_sw).

7. Run "show cdp neighbors" against the entries of cor_sw, note the interfaces going to the switches in dst_sw (cor_sw_downlinks).

8. Run "show interface {cor_sw_downlinks}" on the entries of cor_sw, store the output (output3).

Can you automate this?

Kĩ năng: Python, Programming, DevOps, Quản trị mạng, Scripting

Xem nhiều hơn: ansible network_cli, ansible timeout, ansible persistent connection, ansible command timeout triggered, ansible playbook, ansible network automation example, ansible network modules, ansible-playbook ssh timeout, core java access, certificate errors outlook web access, fix certificate errors exchange web access, in need of a crazy talk 2 animator, magento show 1 2 3 4 5 project type fixed hourly, php cc html developer core java java script php mysql employment in bangalore, https scribie com freelance transcription rc 1 b 1 5 1 2 8 0 eb 5 0 e 8 0 0 1 d 3 8 fa 2 cd 6 bf 5 3 e 0 2 eb 1 2 0 c 8, if your doing marketing ncv level 2 what minimum percentage you need to obtain in order to go next level 3, what 2 companies rate best in customer service, 2 d animation freelancing in pune, 2 years experience resume in manual testing, 2 years experience resume in testing

Về Bên Thuê:
( 0 nhận xét ) Warsaw, Poland

ID dự án: #27567319

3 freelancer chào giá trung bình$190 cho công việc này


Hi, Good Day! I can help you for your requirements in python with threading/fork concept because can't do with ansible. For ansible, it's prerequisite python should be install on manage node. here managed node is your Thêm

$250 USD trong 7 ngày
(0 Nhận xét)

Hi there, I have around 3+ years of good exposure in Devops, where we worked on multiple tools like Ansible, Ansible roles, Docker, K8s, terraform etc. Thanks Pradeep Bansal

$180 USD trong 30 ngày
(0 Nhận xét)

I am worked on ansible, deploying microservice including router/subnet/vpc/gateways etcs in AWS cloud . I have involved and completed couple project around this concepts. I can assist you at best. please send me a me Thêm

$140 USD trong 17 ngày
(0 Nhận xét)