TWiki> LHCb Web>LHCbOnline>ActiveL1BoardMonitoring (revision 2)EditAttachPDF

Monitoring the active L1 Board with a python script "showMac.py"

The script showMac.py is to discover all the active L1 Read-out Boards, which are connected to the aggregation switches ( sw-agg-01 and sw-agg-02 ) and sending data through the DAQ switch (sw-daq-02), and list their mac-addresses and their names in the order of mac-address.

NB. It supports aggregation switch and daq switch only

  • Usage:
      The script is stored in the directory: /group/online/showMac 

      usage:  python showMac.py swithName [-t interval][-p][-v][-h]  
                Get the learned Mac Addresses from the switch. By default,  the data are listed in the order of mac address;  
                with options: 
                        '-t interval', set traffic monitoring interval (only for aggregation switches)  
                        '-p', the data are displayed by the order of ports (only for aggregation switches)  
                        '-v', get version  
                        '-h', help   

  • example:
      1. Monitoring the active L1 boardthe sending data through DAQ switch 
         [gliu@gw01 showMac1]$ python showMac.py sw-daq-02
         snmpwalking Mac Addr >>>>>>>
         snmpwalking the IP and Mac Addr >>>>>>>
         Mac Addr             IP Addr              Port       SubSystem  L1 Board            
         00:17:A4:C1:D6:A2    Unknown              Gi 0/74    NON-TELL1  xx-d1               
         00:CC:BB:01:06:00    Unknown              Gi 0/15    RICH2      r2ukl106-d1         
         00:CC:BB:04:01:00    192.169.4.1          Gi 0/36    TMU        tmutellq03-d1       
         00:CC:BB:04:02:00    192.169.4.2          Gi 0/28    TMU        tmutellq04-d1       
         00:CC:BB:04:03:00    192.169.4.3          Gi 0/37    TMU        tmutellq34-d1       

         
     2. monitoring the aggregation switch      
         [gliu@gw02 showMac]$ python showMac.py sw-agg-01  
         snmpwalking the port numbers >>>>>>>
         snmpwalking the Rx UnicastPkt  >>>>>>>
         snmpwalking the Tx UnicastPkt  >>>>>>>
         Monitoring the traffic, press Enter to stop it!
         
         mac Address          Port   SubSystem    L1 Board        InUcastPkt OutUcastPkt
         00:17:A4:C2:46:00    A01    NON-TELL1    xx-d1                  544        544
         00:CC:BB:01:01:00    C20    RICH2        r2ukl101-d1           1394          0
         00:CC:BB:01:08:00    E13    RICH2        r2ukl108-d1           1399          0
         00:CC:BB:01:09:00    E14    RICH2        r2ukl109-d1           1399          0
         
       3. monitoring the aggregation switch in a predefined time interval
         [gliu@gw02 showMac]$ python showMac.py sw-agg-01 -t 5
         snmpwalking the port numbers >>>>>>>
         snmpwalking the Rx UnicastPkt  >>>>>>>
         snmpwalking the Tx UnicastPkt  >>>>>>>
         sleeping  5.0  seconds >>>>>>>
         mac Address          Port   SubSystem    L1 Board        InUcastPkt OutUcastPkt
         00:17:A4:C2:46:00    A01    NON-TELL1    xx-d1                  544        544
         00:CC:BB:01:01:00    C20    RICH2        r2ukl101-d1           1394          0
         00:CC:BB:01:08:00    E13    RICH2        r2ukl108-d1           1399          0
         00:CC:BB:01:09:00    E14    RICH2        r2ukl109-d1           1399          0

-- GuomingLiu - 07 Feb 2008

Edit | Attach | Watch | Print version | History: r7 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2008-02-07 - GuomingLiu
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback