SNMP, Syslog, NetFlow, Telemetry, Assurance & SPAN
CCNP ENCOR 350-401 v1.2 EVE-NG / GNS3
مقصدObjectiveObjective
اس لیب میں آپ نیٹ ورک مانیٹرنگ کے ٹولز سیکھیں گے — SNMPv3، syslog، NetFlow، SPAN، اور streaming telemetry و Catalyst Center assurance کے کانسیپٹس۔ ENCOR D4 کا ٹاپک۔Is lab mein aap network monitoring ke tools seekhenge — SNMPv3, syslog, NetFlow, SPAN, aur streaming telemetry w Catalyst Center assurance ke concepts. ENCOR D4 ka topic.In this lab you will learn network monitoring tools — SNMPv3, syslog, NetFlow, SPAN, and the concepts of streaming telemetry and Catalyst Center assurance. An ENCOR D4 topic.
آسان مثالSimple AnalogySimple Analogy
نیٹ ورک کی نگرانی ہسپتال کی نگرانی جیسی ہے۔ SNMP وہ نرس ہے جو وقفے وقفے سے مریض کی نبض چیک کرتی ہے۔ Syslog مریض کی ڈائری ہے — جو کچھ ہوا لکھ دیا۔ NetFlow آنے جانے والوں کی گنتی ہے۔ SPAN ایک آئینہ/کیمرہ ہے جو ٹریفک کی کاپی دیکھنے دیتا ہے۔ Streaming telemetry مریض کے جسم پر لگا سینسر ہے جو خود بخود ڈیٹا بھیجتا ہے۔Network ki nigrani hospital ki nigrani jaisi hai. SNMP woh nurse hai jo waqfe waqfe se mareez ki nabz check karti hai. Syslog mareez ki diary hai — jo kuch hua likh diya. NetFlow aane jaane walon ki ginti hai. SPAN ek aaina/camera hai jo traffic ki copy dekhne deta hai. Streaming telemetry mareez ke jism par laga sensor hai jo khud bakhud data bhejta hai.Monitoring a network is like monitoring a hospital. SNMP is the nurse who checks the patient's pulse at intervals. Syslog is the patient's diary — everything that happened is written down. NetFlow counts the visitors coming and going. SPAN is a mirror/camera that lets you view a copy of the traffic. Streaming telemetry is a sensor on the patient's body that sends data automatically.
سیٹ اپLab SetupLab Setup
R1 روٹر اور SW1 سوئچ، دونوں کے پیچھے PCs۔ مانیٹرنگ سرور 192.168.10.100 پر۔ ڈیوائسز: 1x روٹر 2911 (R1)، 1x سوئچ 2960 (SW1)، 2x پی سی۔ PC1: 192.168.10.10/24، PC2: 192.168.10.11/24، سرور: 192.168.10.100۔R1 router aur SW1 switch, dono ke peeche PCs. Monitoring server 192.168.10.100 par. Devices: 1x Router 2911 (R1), 1x Switch 2960 (SW1), 2x PC. PC1: 192.168.10.10/24, PC2: 192.168.10.11/24, Server: 192.168.10.100.R1 router and SW1 switch, with PCs behind both. Monitoring server at 192.168.10.100. Devices: 1x Router 2911 (R1), 1x Switch 2960 (SW1), 2x PC. PC1: 192.168.10.10/24, PC2: 192.168.10.11/24, Server: 192.168.10.100.
اقداماتStepsSteps
Step 1
R1 پر SNMPv3 لگائیں۔ SNMPv3 میں authentication اور privacy (encryption) ہوتی ہے — پرانے v1/v2c میں صرف community string تھی۔ پہلے گروپ، پھر یوزر، پھر سرور (host) بتائیں۔R1 par SNMPv3 lagao. SNMPv3 mein authentication aur privacy (encryption) hoti hai — purane v1/v2c mein sirf community string thi. Pehle group, phir user, phir server (host) batao.Configure SNMPv3 on R1. SNMPv3 has authentication and privacy (encryption) — old v1/v2c had only a community string. First the group, then the user, then the server (host).
enable configure terminal snmp-server group NETADMIN v3 priv snmp-server user admin NETADMIN v3 auth sha AUTH-PASS priv aes 128 PRIV-PASS snmp-server host 192.168.10.100 version 3 priv admin exit
Step 2
Syslog لگائیں تاکہ لاگز سرور پر جائیں۔ logging trap سے لیول بتائیں — informational کا مطلب info اور اس سے اوپر کے سارے میسجز۔Syslog lagao taake logs server par jayein. logging trap se level batao — informational ka matlab info aur us se upar ke saare messages.Configure syslog so logs go to the server. Set the level with logging trap — informational means info and all messages above it.
configure terminal logging host 192.168.10.100 logging trap informational logging source-interface g0/0 exit
Step 3
NetFlow لگائیں — کون کس سے بات کر رہا ہے، کتنا ڈیٹا گیا۔ پہلے record (کیا گننا ہے)، پھر exporter (کہاں بھیجنا ہے)، پھر monitor (دونوں کو جوڑیں)، آخر میں انٹرفیس پر لگائیں۔NetFlow lagao — kaun kis se baat kar raha hai, kitna data gaya. Pehle record (kya ginna hai), phir exporter (kahan bhejna hai), phir monitor (dono ko joro), aakhir mein interface par lagao.Configure NetFlow — who is talking to whom, how much data went. First the record (what to count), then the exporter (where to send), then the monitor (join the two), finally apply it on the interface.
configure terminal flow record MYRECORD match ipv4 source address match ipv4 destination address collect counter bytes long exit flow exporter MYEXPORTER destination 192.168.10.100 transport udp 9996 exit flow monitor MYMONITOR record MYRECORD exporter MYEXPORTER exit interface g0/0 ip flow monitor MYMONITOR input ip flow monitor MYMONITOR output exit exit
Step 4
SW1 پر SPAN لگائیں۔ SPAN ایک پورٹ کے ٹریفک کی کاپی دوسرے پورٹ پر بھیجتا ہے — وہاں Wireshark والا PC لگا کر ٹریفک دیکھیں۔SW1 par SPAN lagao. SPAN ek port ke traffic ki copy doosre port par bhejta hai — wahan Wireshark wala PC laga kar traffic dekho.Configure SPAN on SW1. SPAN sends a copy of one port's traffic to another port — connect a PC with Wireshark there to view the traffic.
enable configure terminal monitor session 1 source interface fa0/1 monitor session 1 destination interface fa0/24 exit
Step 5
Streaming telemetry کا کانسیپٹ: ڈیوائس خود وقفے وقفے سے ڈیٹا بھیجتی ہے (push) — بار بار پوچھنا (pull) نہیں پڑتا۔ Catalyst Center assurance نیٹ ورک کی صحت کا اسکور دیتا ہے اور AI سے مسائل کی نشاندہی کرتا ہے۔Streaming telemetry ka concept: device khud waqfe waqfe se data bhejti hai (push) — baar baar poochna (pull) nahi parta. Catalyst Center assurance network ki sehat ka score deta hai aur AI se masail ki nishandahi karta hai.Streaming telemetry concept: the device itself pushes data at intervals — no need to keep polling (pull). Catalyst Center assurance gives a health score of the network and uses AI to point out issues.
Step 6
ٹیسٹنگ: show کمانڈز سے دیکھیں کہ SNMP یوزر بنا، لاگنگ سرور سیٹ ہے، NetFlow ڈیٹا آ رہا ہے، اور SPAN سیشن چل رہا ہے۔Testing: show commands se dekho ke SNMP user bana, logging server set hai, NetFlow data aa raha hai, aur SPAN session chal raha hai.Testing: use show commands to confirm the SNMP user exists, the logging server is set, NetFlow data is arriving, and the SPAN session is running.
show snmp user show logging | include 192.168.10.100 show flow monitor MYMONITOR statistics show monitor session 1
تصدیقVerifyVerify
show snmp user، show logging اور show monitor session 1 — تینوں ٹھیک ہوں تو لیب کامیاب۔show snmp user, show logging aur show monitor session 1 — teenon theek hon to lab kamyab.show snmp user, show logging and show monitor session 1 — if all three are correct, the lab is a success.
show snmp user show logging show monitor session 1
خرابی دور کرناTroubleshootingTroubleshooting
⚠️ SNMP سرور ڈیوائس کو poll نہیں کر پا رہا۔SNMP server device ko poll nahi kar pa raha.The SNMP server cannot poll the device.
✅ یوزر، گروپ اور پاس ورڈ دونوں طرف same ہونے چاہئیں۔ ACL لگا ہو تو سرور کا IP allow کریں۔User, group aur password dono taraf same hone chahiye. ACL laga ho to server ka IP allow karo.User, group and passwords must match on both sides. If an ACL is applied, allow the server's IP.
⚠️ NetFlow میں کوئی ڈیٹا نہیں آ رہا۔NetFlow mein koi data nahi aa raha.No data is arriving in NetFlow.
✅ چیک کریں کہ monitor انٹرفیس پر لگا ہے اور سمت (input/output) درست ہے۔ exporter کا destination IP بھی درست ہونا چاہیے۔Check karo ke monitor interface par laga hai aur direction (input/output) durust hai. Exporter ka destination IP bhi durust hona chahiye.Check that the monitor is applied on the interface and the direction (input/output) is correct. The exporter's destination IP must also be correct.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ SNMPv3 SNMPv2c سے بہتر کیوں ہے؟SNMPv3 SNMPv2c se behtar kyun hai?Why is SNMPv3 better than SNMPv2c?
v2c میں صرف community string ہوتی ہے جو plain text میں جاتی ہے۔ v3 میں authentication (آپ کون ہیں) اور privacy (encryption) دونوں ہیں۔v2c mein sirf community string hoti hai jo plain text mein jati hai. v3 mein authentication (aap kaun hain) aur privacy (encryption) dono hain.v2c has only a community string sent in plain text. v3 has both authentication (who you are) and privacy (encryption).
❓ SPAN کیا کرتا ہے؟SPAN kya karta hai?What does SPAN do?
SPAN ایک پورٹ کے ٹریفک کی کاپی دوسرے پورٹ پر بھیجتا ہے تاکہ مانیٹرنگ ٹول (Wireshark) اصل ٹریفک کو چھوئے بغیر اسے دیکھ سکے۔SPAN ek port ke traffic ki copy doosre port par bhejta hai taake monitoring tool (Wireshark) asal traffic ko chhue baghair usay dekh sake.SPAN sends a copy of one port's traffic to another port so a monitoring tool (Wireshark) can view it without touching the real traffic.