example python script for nexus 3k

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

Upload: jedelman99

Post on 15-Aug-2015

87 views

Category:

Technology


2 download

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