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 the traffics are also monitored as well.

NB. It supports aggregation switch and daq switch only

The scripts locate in the directory /group/online/showMac/

Usage

There are several steps to use this script

step 1. run the script, then select aggregation switch (sw-agg-01 ,sw-agg-02, sw-d2e01-d1, sw-d3b07-d1) or main switch sw-daq-01

[gliu@gw01 ~]$ /group/online/showMac/showMac.py 

        Active L1 Boards Monitoring

        Step1: select the switches
        1:    Aggregation switches
        2:    Force 10 router
        ---------------------------
        0:    Quit
Enter your selcection(1 by default):1

step 2. select which sub-system or switch you want to monitoring

        Active L1 Boards Monitoring

        Step2: select the sub-system
        1:    RICH2
        2:    HCAL
        3:    ECAL
        4:    TMU
        5:    TFC
        6:    TCA
        7:    TRG
        8:    PRS
        9:    MUON
        A:    TT
        B:    VELO
        C:    OT
        D:    IT
        E:    RICH1
        F:    TPU
        G:    DUMMY
        ------------------------------
        H:    SW-AGG-01
        I:    SW-AGG-02
        J:    SW-D2E01-D1
        K:    SW-D3B07-D1
        L:    ALL SYSTEM
        ------------------------------
        0:    Last Step
Enter your selcection(multi-selection is allowed):5

step 3. select the method to list the data, in the order of MAC or switch port

        Active L1 Boards Monitoring

        Step4: select the display in the order of :
        1:    L1 board IP address
        2:    Switch port
        ------------------------------
        0:    Last Step
Enter your selcection(1 by default):1

Then you will see something in the stdout,

sw-d3b07-d1
Mac Address          Port   L1 Board        InBytes InUcastPkt  InDiscard    InError    OutByte OutUcastPkt
00:CC:BB:05:01:00    19     tfcodin01-d1          0          0          0          0          0          0
00:CC:BB:05:02:00    17     tfcodin02-d1          0          0          0          0          0          0
00:CC:BB:05:03:00    15     tfcodin03-d1          0          0          0          0          0          0
00:CC:BB:05:04:00    13     tfcodin04-d1          0          0          0          0          0          0
00:CC:BB:05:05:00    11     tfcodin05-d1          0          0          0          0          0          0
00:CC:BB:05:06:00    9      tfcodin06-d1          0          0          0          0        176          0
00:CC:BB:05:07:00    7      tfcodin07-d1          0          0          0          0          0          0
00:CC:BB:05:08:00    5      tfcodin08-d1          0          0          0          0          0          0
00:CC:BB:05:09:00    3      tfcodin09-d1          0          0          0          0          0          0
00:CC:BB:05:0A:00    1      tfcodin10-d1          0          0          0          0          0          0
00:CC:BB:05:0B:00    21     tfcodin11-d1          0          0          0          0          0          0
00:CC:BB:05:0C:00    23     tfcodin12-d1          0          0          0          0          0          0
00:CC:BB:05:0D:00    25     tfcodin13-d1  565326592          0          0          0          0          0
00:CC:BB:05:0E:00    27     tfcodin14-d1          0          0          0          0          0          0
00:CC:BB:05:0F:00    29     tfcodin15-d1          0          0          0          0          0          0
00:CC:BB:05:10:00    31     tfcodin16-d1          0          0          0          0          0          0
--------------------------------------------------------------------------------
Switch Total Inbound Unicat Pkts:  0
Outbound Unicast Pkts:  0
Unicast Packets Forwarding Rate:  No Inbound Packets!

Press any key to quit ...

You can press any key to quit the script.

-- GuomingLiu - 27 Feb 2008


This topic: LHCb > WebHome > LHCbOnline > ActiveL1BoardMonitoring
Topic revision: r7 - 2008-06-27 - GuomingLiu
 
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