📝 Section Review: Automation & Troubleshooting
اہم نکاتKey TakeawaysKey Takeaways
- NX-API Nexus کو HTTP/HTTPS پر کھولتا ہے؛ '| json' script-friendly structured output دیتا ہے۔NX-API Nexus ko HTTP/HTTPS par kholta hai; '| json' script-friendly structured output deta hai.NX-API exposes Nexus over HTTP/HTTPS; '| json' gives script-friendly structured output.
- Ansible agentless ہے — یہ SSH پر devices configure کرتا ہے، device پر کوئی agent نہیں ہوتا۔Ansible agentless hai — ye SSH par devices configure karta hai, device par koi agent nahi hota.Ansible is agentless — it configures devices over SSH with no agent on the device.
- ایک Ansible playbook (YAML) کئی switches کو ایک جیسا configure کر سکتی ہے۔Ek Ansible playbook (YAML) kayi switches ko ek jaisa configure kar sakti hai.One Ansible playbook (YAML) can configure many switches identically.
- Bottom-up troubleshoot کریں: physical → Layer 2 → Layer 3 → overlay۔Bottom-up troubleshoot karein: physical → Layer 2 → Layer 3 → overlay۔Troubleshoot bottom-up: physical → Layer 2 → Layer 3 → overlay.
- اہم commands: show interface brief, show vpc brief, show ip ospf neighbors, show nve peers, show bgp l2vpn evpn summary۔Ahem commands: show interface brief, show vpc brief, show ip ospf neighbors, show nve peers, show bgp l2vpn evpn summary.Key commands: show interface brief, show vpc brief, show ip ospf neighbors, show nve peers, show bgp l2vpn evpn summary.
خود جانچ (مشق)Self-Check (Practice)Self-Check (Practice)
یہ مشقی سوالات ہیں، امتحانی سوالات نہیں۔These are practice questions, not exam questions.These are practice questions, not exam questions.
❓ NX-API کیا ہے اور JSON output کیوں مفید ہے؟ (Practice سوال)NX-API kya hai aur JSON output kyun mufeed hai? (Practice sawal)What is NX-API and why is JSON output useful? (Practice question)
NX-API Nexus پر HTTP/HTTPS API ہے۔ '| json' سے structured output ملتا ہے جسے scripts بھروسے سے پڑھ سکتی ہیں۔NX-API Nexus par HTTP/HTTPS API hai. '| json' se structured output milta hai jisay scripts bharose se parh sakti hain.NX-API is the HTTP/HTTPS API on Nexus. With '| json' you get structured output that scripts can read reliably.
❓ Ansible کو agentless کیوں کہتے ہیں؟ (Practice سوال)Ansible ko agentless kyun kehte hain? (Practice sawal)Why is Ansible called agentless? (Practice question)
کیونکہ target device پر کچھ install نہیں ہوتا — Ansible control machine سے SSH پر کام کرتا ہے۔Kyunke target device par kuch install nahi hota — Ansible control machine se SSH par kaam karta hai.Because nothing is installed on the target device — Ansible works over SSH from the control machine.
❓ Data center troubleshooting کی ترتیب بتائیں۔ (Practice سوال)Data center troubleshooting ki tarteeb batayein. (Practice sawal)Describe the data center troubleshooting order. (Practice question)
Bottom-up: physical → Layer 2 → Layer 3 → overlay۔ پہلے scope واضح کریں، پھر ہر layer چیک کریں اور نتائج لکھیں۔Bottom-up: physical → Layer 2 → Layer 3 → overlay. Pehle scope wazeh karein, phir har layer check karein aur nataij likhein.Bottom-up: physical → Layer 2 → Layer 3 → overlay. Define the scope first, then check each layer and write down results.
❓ vPC down ہو تو سب سے پہلے کونسی command چلاتے ہیں؟ (Practice سوال)vPC down ho to sab se pehle kaunsi command chalate hain? (Practice sawal)Which command do you run first when vPC is down? (Practice question)
show vpc brief — peer-link کا status، peer-keepalive اور peer adjacency چیک کریں۔show vpc brief — peer-link ka status, peer-keepalive aur peer adjacency check karein.show vpc brief — check peer-link status, peer-keepalive, and peer adjacency.