📝 Section Review: Automation & Troubleshooting

اہم نکاتKey TakeawaysKey Takeaways

خود جانچ (مشق)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.