TWiki> LHCb Web>LHCbOnline>ActiveL1BoardMonitoring (revision 1)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@gw02 showMac]$ python showMac.py sw-daq-02 
         snmpwalking the IP and Mac Addr >>>>>>>
         IP Addr=                 =Mac Addr=             SubSystem            L1 Board         
         192.169.2.1          00:CC:BB:02:01:00    HCAL                 hctell01-d1      
         192.169.3.3          00:CC:BB:03:03:00    ECAL                 ectell03-d1      
         192.169.4.1          00:CC:BB:04:01:00    TMU                  tmutellq03-d1    
         192.169.9.1          00:CC:BB:09:01:00    MU_C                 mutellc01-d1     
         192.169.13.14        00:CC:BB:13:00:00    IT                    ittell00-d1      
         192.169.18.1         00:CC:BB:18:01:00    MU_A                 mutella01-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: r1 - 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