Hi, I was actually referring to netapps/monitoring/montoring.py, which is a more complete (and complicated) monitoring component, but it is the same idea. However the one you looked at might actually be a better example exactly because it is simpler, but still shows how to create and send switch query packets. The output you pasted looks okay
2011/6/19 Min-Hyup KANG <kang-min-h...@hanmail.net> > Hi, > > > after I found monitoring.py, > > There is existing /src/nox/coreapps/examples/monitor.py. > > I think what you mean is /src/nox/coreapps/examples/monitor.py. right ? > > > so, I excuted monitor component. > > > I can check Table stats and Port stats, Aggregate stats as a below. > > > 00072|openflow-event|DBG:received stats reply from 002320ca92e0 > > Table stats in from datapath 00:23:20:ca:92:e0 > > hash2 : 0 > > linear : 2 > > 00073|openflow-event|DBG:received stats reply from 002320ca92e0 > > Port stats in from datapath 00:23:20:ca:92:e0 > > 1 : 4 > > 2 : 4 > > 00074|openflow-event|DBG:received stats reply from 002320ca92e0 > > Aggregate stats in from datapath 00:23:20:ca:92:e0 > > {'packet_count': 0L, 'byte_count': 0L, 'flow_count': 0L} > > > > > --------- 원본 메일 --------- > > *보낸사람*: Kyriakos Zarifis <kyr.zari...@gmail.com> > *받는사람* : Min-Hyup KANG <kang-min-h...@hanmail.net> > *참조* : nox-dev@noxrepo.org > *날짜*: 2011년 6월 20일 월요일, 00시 35분 26초 +0900 > > *제목*: Re: [nox-dev] gathering status of Openflow Switch > Hi, > > the 'monitoring' component I was referring to, is under: > ** / src / nox / netapps / monitoring / monitoring.py** > > but on the Destiny branch of the repository (not Zaku which is the master > branch). > Follow the instructions here > http://noxrepo.org/noxwiki/index.php/NOX_Installation#Installation (where > it says "For a branch other than master"...) > to switch to Destiny. > >> -> you mean pyswitch can gather status of flow, port in switch, right ? >> >> and I think I should use ofp_stats_request, ofp_stats_reply, >> ofp_desc_stats, ofp_port_stats_request, ofp_ports_stats etc of struct in >> openflow.h and core.py >> > > Exactly. You can see some example of how to build some messages in > 'monitoring.py' > > > > > > > > Best Regards, > Min-Hyup KANG > > <kang-min-h...@hanmail.net> >
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev