Python论坛  - 讨论区

标题:[python-chinese] 求助:如何用PYTHON获得网卡的实时流量?

2007年04月11日 星期三 12:22

pt42 pt4200在gmail.com
星期三 四月 11 12:22:26 HKT 2007

ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿
ÔÚWINƽ̨ÏÂ
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070411/cf1fc737/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月11日 星期三 13:11

weizi nmweizi在163.com
星期三 四月 11 13:11:46 HKT 2007

可以看看这个东西,Zenoss

-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] 代表 pt42
发送时间: 2007年4月11日 12:22
收件人: python-chinese在lists.python.cn
主题: [python-chinese] 求助:如何用PYTHON获得网卡的实时流量?

求助:如何用PYTHON获得网卡的实时流量?
在WIN平台下

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月11日 星期三 13:33

Neo Chen openunix在163.com
星期三 四月 11 13:33:14 HKT 2007

SNMP ¿ÉÒÔ

  ----- Original Message ----- 
  From: pt42 
  To: python-chinese在lists.python.cn 
  Sent: Wednesday, April 11, 2007 12:22 PM
  Subject: [python-chinese] ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿


  ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿
  ÔÚWINƽ̨ÏÂ


------------------------------------------------------------------------------


  _______________________________________________
  python-chinese
  Post: send python-chinese在lists.python.cn
  Subscribe: send subscribe to python-chinese-request在lists.python.cn
  Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
  Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070411/49a49ddc/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月11日 星期三 14:46

pt42 pt4200在gmail.com
星期三 四月 11 14:46:07 HKT 2007

×îºóÖ»ºÃÓÃNETSTAT¸ã¶¨

re.findall(r'Bytes[\s]*?([0-9]*?)[\s]*?([0-9]*?)\n',os.popen('netstat
-e').read())

ºÇºÇ

ÔÚ07-4-11£¬Neo Chen <openunix在163.com> дµÀ£º
>
>  SNMP ¿ÉÒÔ
>
>
> ----- Original Message -----
> *From:* pt42 <pt4200在gmail.com>
> *To:* python-chinese在lists.python.cn
> *Sent:* Wednesday, April 11, 2007 12:22 PM
> *Subject:* [python-chinese] ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿
>
>
> ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿
> ÔÚWINƽ̨ÏÂ
>
> ------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070411/82e6266a/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 01:29

wibrst.python wibrst.python在tom.com
星期四 四月 12 01:29:18 HKT 2007

ÕâÊÂʵÉϱä³ÉÁËÓÃWindowsÃüÁîÐлñµÃÍø¿¨µÄʵʱÁ÷Á¿ÁË.¸úPythonÎÞ¹Ø


pt42 дµÀ:
> ×îºóÖ»ºÃÓÃNETSTAT¸ã¶¨
> re.findall(r'Bytes[\s]*?([0-9]*?)[\s]*?([0-9]*?)\n',os.popen('netstat
> -e').read())
>
> ºÇºÇ
> ÔÚ07-4-11£¬*Neo Chen* <openunix在163.com openunix在163.com>> дµÀ£º
>
>     SNMP ¿ÉÒÔ
>
>         ----- Original Message -----
>         *From:* pt42 pt4200在gmail.com>
>         *To:* python-chinese在lists.python.cn
>         python-chinese在lists.python.cn>
>         *Sent:* Wednesday, April 11, 2007 12:22 PM
>         *Subject:* [python-chinese] ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿
>
>         ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿
>         ÔÚWINƽ̨ÏÂ
>
>         ------------------------------------------------------------------------
>         _______________________________________________
>         python-chinese
>         Post: send python-chinese在lists.python.cn
>         python-chinese在lists.python.cn>
>         Subscribe: send subscribe to
>         python-chinese-request在lists.python.cn
>         python-chinese-request在lists.python.cn>
>         Unsubscribe: send unsubscribe to
>         python-chinese-request在lists.python.cn
>         python-chinese-request在lists.python.cn>
>         Detail Info: http://python.cn/mailman/listinfo/python-chinese 
>
>
>     _______________________________________________
>     python-chinese
>     Post: send python-chinese在lists.python.cn
>     python-chinese在lists.python.cn>
>     Subscribe: send subscribe to
>     python-chinese-request在lists.python.cn
>     python-chinese-request在lists.python.cn>
>     Unsubscribe: send unsubscribe to
>     python-chinese-request在lists.python.cn
>     python-chinese-request在lists.python.cn>
>     Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070412/0478d535/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 08:05

jessinio smith jessinio在gmail.com
星期四 四月 12 08:05:54 HKT 2007

˵ÊÇÂï.»Ø´ð¾ÍÓÃpythonµÄ·½·¨Âï
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070412/a0558a5a/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 08:17

pt42 pt4200在gmail.com
星期四 四月 12 08:17:01 HKT 2007

´¿PYTHONµÄ·½Ê½»¹Ã»ÕÒµ½£º£¨

ÔÚ07-4-12£¬wibrst.python <wibrst.python在tom.com> дµÀ£º
>
>
> ÕâÊÂʵÉϱä³ÉÁËÓÃWindowsÃüÁîÐлñµÃÍø¿¨µÄʵʱÁ÷Á¿ÁË.¸úPythonÎÞ¹Ø
>
>
> pt42 дµÀ:
>
> ×îºóÖ»ºÃÓÃNETSTAT¸ã¶¨
>
> re.findall(r'Bytes[\s]*?([0-9]*?)[\s]*?([0-9]*?)\n',os.popen('netstat
> -e').read())
>
> ºÇºÇ
>
> ÔÚ07-4-11£¬Neo Chen <openunix在163.com> дµÀ£º
> >
> >  SNMP ¿ÉÒÔ
> >
> >
> > ----- Original Message -----
> > *From:* pt42 <pt4200在gmail.com>
> > *To:* python-chinese在lists.python.cn
> > *Sent:* Wednesday, April 11, 2007 12:22 PM
> > *Subject:* [python-chinese] ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿
> >
> >
> > ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿
> > ÔÚWINƽ̨ÏÂ
> >
> > ------------------------------
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
> ------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070412/fdd831cd/attachment-0001.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 09:42

Neo Chen openunix在163.com
星期四 四月 12 09:42:44 HKT 2007

¹Ø×¢,ÎÒÒ²Ïë×öÕâ¸ö..ÎÒҪȡËùÓÐÐÅÏ¢,Ô¶³¬³öÁËÍø¿¨,ËùÒÔÎÒÓÃSNMP. µ«ÅäÖÃÉϳöµãÎÊÌâ.¾ÍÊÇÈ¡²»³ö¶«Î÷À´.:(

python ºÃÏñûÓÃÌṩsnmp µÄ°ü.:(
  ----- Original Message ----- 
  From: wibrst.python 
  To: python-chinese在lists.python.cn 
  Sent: Thursday, April 12, 2007 1:29 AM
  Subject: Re: [python-chinese] ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿



  ÕâÊÂʵÉϱä³ÉÁËÓÃWindowsÃüÁîÐлñµÃÍø¿¨µÄʵʱÁ÷Á¿ÁË.¸úPythonÎÞ¹Ø


  pt42 дµÀ: 
    ×îºóÖ»ºÃÓÃNETSTAT¸ã¶¨

    re.findall(r'Bytes[\s]*?([0-9]*?)[\s]*?([0-9]*?)\n',os.popen('netstat -e').read())

    ºÇºÇ
     
    ÔÚ07-4-11£¬Neo Chen <openunix在163.com> дµÀ£º 
      SNMP ¿ÉÒÔ

        ----- Original Message ----- 
        From: pt42 
        To: python-chinese在lists.python.cn 
        Sent: Wednesday, April 11, 2007 12:22 PM
        Subject: [python-chinese] ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿

         
        ÇóÖú£ºÈçºÎÓÃPYTHON»ñµÃÍø¿¨µÄʵʱÁ÷Á¿£¿
        ÔÚWINƽ̨ÏÂ


------------------------------------------------------------------------
        _______________________________________________
        python-chinese
        Post: send python-chinese在lists.python.cn 
        Subscribe: send subscribe to python-chinese-request在lists.python.cn
        Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
        Detail Info: http://python.cn/mailman/listinfo/python-chinese 

      _______________________________________________
      python-chinese
      Post: send python-chinese在lists.python.cn
      Subscribe: send subscribe to python-chinese-request在lists.python.cn
      Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
      Detail Info: http://python.cn/mailman/listinfo/python-chinese



----------------------------------------------------------------------------
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese



------------------------------------------------------------------------------


  _______________________________________________
  python-chinese
  Post: send python-chinese在lists.python.cn
  Subscribe: send subscribe to python-chinese-request在lists.python.cn
  Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
  Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070412/a26e5c34/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 10:04

hutuworm hutuworm在gmail.com
星期四 四月 12 10:04:37 HKT 2007

http://pysnmp.sourceforge.net/

On 4/12/07, Neo Chen <openunix在163.com> wrote:
>
>
> 关注,我也想做这个..我要取所有信息,远超出了网卡,所以我用SNMP. 但配置上出点问题.就是取不出东西来.:(
>
> python 好像没用提供snmp 的包.:(
>
> ----- Original Message -----
> From: wibrst.python
> To: python-chinese在lists.python.cn
> Sent: Thursday, April 12, 2007 1:29 AM
> Subject: Re: [python-chinese] 求助:如何用PYTHON获得网卡的实时流量?
>
>
> 这事实上变成了用Windows命令行获得网卡的实时流量了.跟Python无关
>
>
> pt42 写道:
>
> 最后只好用NETSTAT搞定
>
> re.findall(r'Bytes[\s]*?([0-9]*?)[\s]*?([0-9]*?)\n',os.popen('netstat
> -e').read())
>
> 呵呵
>
> 在07-4-11,Neo Chen <openunix在163.com> 写道:
> >
> >
> > SNMP 可以
> >
> >
> > ----- Original Message -----
> > From: pt42
> > To: python-chinese在lists.python.cn
> > Sent: Wednesday, April 11, 2007 12:22 PM
> > Subject: [python-chinese] 求助:如何用PYTHON获得网卡的实时流量?
> >
> >
> > 求助:如何用PYTHON获得网卡的实时流量?
> > 在WIN平台下
> >
> > ________________________________
>  _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> >
>
> ________________________________
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>
>
>  ________________________________
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>


-- 
In doG We Trust

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年04月12日 星期四 10:47

Neo Chen openunix在163.com
星期四 四月 12 10:47:28 HKT 2007

非常感谢啊...



----- Original Message ----- 
From: "hutuworm" <hutuworm在gmail.com>
To: <python-chinese在lists.python.cn>
Sent: Thursday, April 12, 2007 10:04 AM
Subject: Re: [python-chinese]求助:如何用PYTHON获得网卡的实时流量?


> http://pysnmp.sourceforge.net/
> 
> On 4/12/07, Neo Chen <openunix在163.com> wrote:
>>
>>
>> 关注,我也想做这个..我要取所有信息,远超出了网卡,所以我用SNMP. 但配置上出点问题.就是取不出东西来.:(
>>
>> python 好像没用提供snmp 的包.:(
>>
>> ----- Original Message -----
>> From: wibrst.python
>> To: python-chinese在lists.python.cn
>> Sent: Thursday, April 12, 2007 1:29 AM
>> Subject: Re: [python-chinese] 求助:如何用PYTHON获得网卡的实时流量?
>>
>>
>> 这事实上变成了用Windows命令行获得网卡的实时流量了.跟Python无关
>>
>>
>> pt42 写道:
>>
>> 最后只好用NETSTAT搞定
>>
>> re.findall(r'Bytes[\s]*?([0-9]*?)[\s]*?([0-9]*?)\n',os.popen('netstat
>> -e').read())
>>
>> 呵呵
>>
>> 在07-4-11,Neo Chen <openunix在163.com> 写道:
>> >
>> >
>> > SNMP 可以
>> >
>> >
>> > ----- Original Message -----
>> > From: pt42
>> > To: python-chinese在lists.python.cn
>> > Sent: Wednesday, April 11, 2007 12:22 PM
>> > Subject: [python-chinese] 求助:如何用PYTHON获得网卡的实时流量?
>> >
>> >
>> > 求助:如何用PYTHON获得网卡的实时流量?
>> > 在WIN平台下
>> >
>> > ________________________________
>>  _______________________________________________
>> > python-chinese
>> > Post: send python-chinese在lists.python.cn
>> > Subscribe: send subscribe to
>> python-chinese-request在lists.python.cn
>> > Unsubscribe: send unsubscribe to
>> python-chinese-request在lists.python.cn
>> > Detail Info:
>> http://python.cn/mailman/listinfo/python-chinese
>> > _______________________________________________
>> > python-chinese
>> > Post: send python-chinese在lists.python.cn
>> > Subscribe: send subscribe to
>> python-chinese-request在lists.python.cn
>> > Unsubscribe: send unsubscribe to
>> python-chinese-request在lists.python.cn
>> > Detail Info:
>> http://python.cn/mailman/listinfo/python-chinese
>> >
>>
>> ________________________________
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese在lists.python.cn
>> Subscribe: send subscribe to
>> python-chinese-request在lists.python.cn
>> Unsubscribe: send unsubscribe to
>> python-chinese-request在lists.python.cn
>> Detail Info:
>> http://python.cn/mailman/listinfo/python-chinese
>>
>>
>>
>>  ________________________________
>>
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese在lists.python.cn
>> Subscribe: send subscribe to
>> python-chinese-request在lists.python.cn
>> Unsubscribe: send unsubscribe to
>> python-chinese-request在lists.python.cn
>> Detail Info:
>> http://python.cn/mailman/listinfo/python-chinese
>>
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese在lists.python.cn
>> Subscribe: send subscribe to
>> python-chinese-request在lists.python.cn
>> Unsubscribe: send unsubscribe to
>> python-chinese-request在lists.python.cn
>> Detail Info:
>> http://python.cn/mailman/listinfo/python-chinese
>>
> 
> 
> -- 
> In doG We Trust
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号