example python script for nexus 3k
TRANSCRIPT
A Sample Client/Server, Agent Based, Network Monitoring Application
• Starting Server Component• It’s now awaiting client connections
• Starting Client (Agent)Component
• Agent output right after client is started• Displays packets sent every 5 seconds• Wouldn’t really display this in prod, but good for demos.
• Server Side• Still the same – no triggered events yet
• Sending packets out eth0 on client to trigger an event
• 4 packets sent (it triggers >= 4, i.e. >3)
• Client output right after 4 pings were sent• Client displays output showing an event has
occurred
• Server Side AFTER trigger• Displays event output in JSON format
• RESTARTING CONTINUOUS PINGS ON CLIENT
• Client output during continuous pings • Continuous trigger events
• Server output during continuous pings • Continuous trigger events
• The server shouldn’t just display or accept logs.
• It should be used to create a feedback loop.
• There is so much data in network devices that is yet to be extracted
THE END
CLIENT
SERVER