Top Banner
A Sample Client/Server, Agent Based, Network Monitoring Application
14

Example Python Script for Nexus 3K

Aug 15, 2015

Download

Technology

jedelman99
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Example Python Script for Nexus 3K

A Sample Client/Server, Agent Based, Network Monitoring Application

Page 2: Example Python Script for Nexus 3K

• Starting Server Component• It’s now awaiting client connections

Page 3: Example Python Script for Nexus 3K

• Starting Client (Agent)Component

Page 4: Example Python Script for Nexus 3K

• Agent output right after client is started• Displays packets sent every 5 seconds• Wouldn’t really display this in prod, but good for demos.

Page 5: Example Python Script for Nexus 3K

• Server Side• Still the same – no triggered events yet

Page 6: Example Python Script for Nexus 3K

• Sending packets out eth0 on client to trigger an event

• 4 packets sent (it triggers >= 4, i.e. >3)

Page 7: Example Python Script for Nexus 3K

• Client output right after 4 pings were sent• Client displays output showing an event has

occurred

Page 8: Example Python Script for Nexus 3K

• Server Side AFTER trigger• Displays event output in JSON format

Page 9: Example Python Script for Nexus 3K

• RESTARTING CONTINUOUS PINGS ON CLIENT

Page 10: Example Python Script for Nexus 3K

• Client output during continuous pings • Continuous trigger events

Page 11: Example Python Script for Nexus 3K

• Server output during continuous pings • Continuous trigger events

Page 12: Example Python Script for Nexus 3K

• 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

Page 13: Example Python Script for Nexus 3K

CLIENT

Page 14: Example Python Script for Nexus 3K

SERVER