I am trying to monitor an Arris C4 CMTS, specifically the "show interface utilization" command. This isn't a true "Linux" box, so I cannot install scripts on it. I'm thinking it will have to be run as an exe/dll script from the PRTG server, but I have not idea where to begin.
Essentially, I need to SSH to the CMTS, run the command, parse the output, combine, and graph the results. I am really only concerned with the first column (Port), and the respective "Loaded %" Column"; would love to combine and average on "Cable-Mac" column for column 5 and 7, but independently.
Can anyone help me?
Thanks! Spencer
SAMPLE OUTPUT: _____________________________________________ Polling rate (cable global load-interval) = 300 seconds Port Cable- MaxRate DataRate Loaded DataRate Loaded Mac Mb/sec Mb/sec % Mb/sec % <-- Downstream --> <--- Upstream ---> 1/0 14 30.72 - - 3.69 12% 1/1 14 30.72 - - 3.99 13% 1/2 14 30.72 - - 4.30 14% 1/3 14 30.72 - - 4.61 15% 1/4 1 30.72 - - 7.68 25% 1/5 1 30.72 - - 11.67 38% 1/6 1 30.72 - - 11.98 39% 1/7 1 30.72 - - 12.90 42% 1/8 4 25.60 - - 1.79 7% 1/9 4 15.36 - - 0.92 6% 1/10 4 15.36 - - 1.08 7% 1/11 4 15.36 - - 1.08 7% 3/0 7 30.72 - - 5.22 17% 3/1 7 30.72 - - 5.22 17% 3/2 7 30.72 - - 5.53 18% 3/3 7 30.72 - - 5.84 19% 4/0 11 30.72 - - 0.31 1% 4/1 11 30.72 - - 0.31 1% 4/2 11 30.72 - - 0.31 1% 4/3 11 30.72 - - 0.31 1% 4/4 11 20.48 - - 0.00 0% 4/5 11 30.72 - - 1.54 5% 4/6 11 30.72 - - 1.84 6% 4/7 11 30.72 - - 3.99 13% 4/8 11 20.48 - - 0.00 0% 4/9 11 30.72 - - 1.23 4% 4/10 11 30.72 - - 1.23 4% 4/11 11 30.72 - - 1.23 4% 5/0 3 30.72 - - 0.92 3% 5/1 3 30.72 - - 1.54 5% 5/2 3 30.72 - - 1.23 4% 5/3 3 30.72 - - 1.23 4% 5/4 6 20.48 - - 0.00 0% 5/5 6 20.48 - - 3.28 16% 5/6 6 20.48 - - 3.28 16% 5/7 6 20.48 - - 4.30 21% 5/8 10 20.48 - - 0.00 0% 5/9 10 30.72 - - 6.76 22% 5/10 10 30.72 - - 5.22 17% 5/11 10 30.72 - - 5.84 19% 5/12 13 20.48 - - 0.00 0% 5/13 13 30.72 - - 3.69 12% 5/14 13 30.72 - - 3.38 11% 5/15 13 30.72 - - 4.92 16% 6/0 2 20.48 - - 0.00 0% 6/1 2 20.48 - - 0.00 0% 6/2 2 20.48 - - 0.00 0% 6/3 2 20.48 - - 0.00 0% 6/4 2 20.48 - - 0.00 0% 6/5 2 20.48 - - 2.66 13% 6/6 2 20.48 - - 2.66 13% 6/7 2 20.48 - - 2.46 12% 6/8 2 20.48 - - 4.92 24% 6/9 2 20.48 - - 4.92 24% 6/10 2 20.48 - - 4.92 24% 6/11 2 20.48 - - 4.92 24% 6/12 5 30.72 - - 2.15 7% 6/13 5 30.72 - - 2.46 8% 6/14 5 30.72 - - 2.46 8% 6/15 5 30.72 - - 3.07 10% 7/16 13 42.88 13.72 32% - - 7/17 13 42.88 13.29 31% - - 7/18 13 42.88 13.29 31% - - 7/19 13 42.88 13.29 31% - - 7/20 13 42.88 13.29 31% - - 7/21 13 42.88 13.72 32% - - 7/22 13 42.88 14.58 34% - - 7/23 13 42.88 18.01 42% - - 7/24 13 42.88 13.29 31% - - 7/25 13 42.88 13.29 31% - - 7/26 13 42.88 13.29 31% - - 7/27 13 42.88 13.29 31% - - 7/28 13 42.88 13.29 31% - - 7/29 13 42.88 13.29 31% - - 7/30 13 42.88 13.29 31% - - 7/31 13 42.88 13.29 31% - - 8/0 6 42.88 36.02 84% - - 8/1 6 42.88 36.02 84% - - 8/2 6 42.88 36.02 84% - - 8/3 6 42.88 36.02 84% - - 8/4 6 42.88 36.02 84% - - 8/5 6 42.88 36.45 85% - - 8/6 6 42.88 36.02 84% - - 8/7 6 42.88 36.02 84% - - 8/8 6 42.88 35.59 83% - - 8/9 6 42.88 36.02 84% - - 8/10 6 42.88 35.59 83% - - 8/11 6 42.88 36.02 84% - - 8/12 6 42.88 35.59 83% - - 8/13 6 42.88 36.45 85% - - 8/14 6 42.88 36.02 84% - - 8/15 6 42.88 36.02 84% - - 9/0 4 42.88 9.86 23% - - 9/1 4 42.88 9.86 23% - - 9/2 4 42.88 9.86 23% - - 9/3 4 42.88 9.86 23% - - 9/4 4 42.88 9.86 23% - - 9/5 4 42.88 9.86 23% - - 9/6 4 42.88 9.86 23% - - 9/7 4 42.88 9.86 23% - - 9/8 4 42.88 9.86 23% - - 9/9 4 42.88 9.86 23% - - 9/10 4 42.88 9.86 23% - - 9/11 4 42.88 9.86 23% - - 9/12 4 42.88 9.86 23% - - 9/13 4 42.88 9.86 23% - - 9/14 4 42.88 9.86 23% - - 9/15 4 42.88 9.86 23% - - 9/16 5 42.88 16.30 38% - - 9/17 5 42.88 16.72 39% - - 9/18 5 42.88 16.30 38% - - 9/19 5 42.88 16.30 38% - - 9/20 5 42.88 16.30 38% - - 9/21 5 42.88 16.72 39% - - 9/22 5 42.88 16.30 38% - - 9/23 5 42.88 16.30 38% - - 9/24 3 42.88 15.01 35% - - 9/25 3 42.88 15.01 35% - - 9/26 3 42.88 23.59 55% - - 9/27 3 42.88 15.01 35% - - 9/28 3 42.88 15.44 36% - - 9/29 3 42.88 15.01 35% - - 9/30 3 42.88 19.30 45% - - 9/31 3 42.88 15.87 37% - - 10/0 1 42.88 37.74 88% - - 10/1 1 42.88 37.31 87% - - 10/2 1 42.88 37.31 87% - - 10/3 1 42.88 37.31 87% - - 10/4 1 42.88 37.74 88% - - 10/5 1 42.88 36.88 86% - - 10/6 1 42.88 36.88 86% - - 10/7 1 42.88 37.74 88% - - 10/8 1 42.88 36.88 86% - - 10/9 1 42.88 36.88 86% - - 10/10 1 42.88 36.88 86% - - 10/11 1 42.88 36.88 86% - - 10/12 1 42.88 36.88 86% - - 10/13 1 42.88 36.88 86% - - 10/14 1 42.88 36.88 86% - - 10/15 1 42.88 36.88 86% - - 10/16 10 42.88 30.02 70% - - 10/17 10 42.88 30.02 70% - - 10/18 10 42.88 30.02 70% - - 10/19 10 42.88 30.02 70% - - 10/20 10 42.88 30.02 70% - - 10/21 10 42.88 33.02 77% - - 10/22 10 42.88 30.02 70% - - 10/23 10 42.88 30.02 70% - - 10/24 10 42.88 30.02 70% - - 10/25 10 42.88 30.02 70% - - 10/26 10 42.88 30.02 70% - - 10/27 10 42.88 30.02 70% - - 10/28 10 42.88 30.02 70% - - 10/29 10 42.88 30.02 70% - - 10/30 10 42.88 32.16 75% - - 10/31 10 42.88 32.16 75% - - 11/0 14 42.88 17.58 41% - - 11/1 14 42.88 17.58 41% - - 11/2 14 42.88 19.30 45% - - 11/3 14 42.88 18.01 42% - - 11/4 14 42.88 16.72 39% - - 11/5 14 42.88 17.58 41% - - 11/6 14 42.88 21.44 50% - - 11/7 14 42.88 17.58 41% - - 11/8 14 42.88 15.87 37% - - 11/9 14 42.88 15.87 37% - - 11/10 14 42.88 15.87 37% - - 11/11 14 42.88 15.87 37% - - 11/12 14 42.88 15.87 37% - - 11/13 14 42.88 15.87 37% - - 11/14 14 42.88 16.30 38% - - 11/15 14 42.88 15.87 37% - - 11/16 14 42.88 15.87 37% - - 11/17 14 42.88 15.44 36% - - 11/18 14 42.88 15.87 37% - - 11/19 14 42.88 15.87 37% - - 11/20 14 42.88 15.87 37% - - 11/21 14 42.88 15.87 37% - - 11/22 14 42.88 15.87 37% - - 11/23 14 42.88 15.44 36% - - 11/24 14 42.88 15.87 37% - - 11/25 14 42.88 15.87 37% - - 11/26 14 42.88 15.87 37% - - 11/27 14 42.88 15.87 37% - - 11/28 14 42.88 15.87 37% - - 11/29 14 42.88 15.87 37% - - 11/30 14 42.88 17.58 41% - - 11/31 14 42.88 15.87 37% - - 12/16 11 42.88 16.30 38% - - 12/17 11 42.88 16.30 38% - - 12/18 11 42.88 16.30 38% - - 12/19 11 42.88 16.30 38% - - 12/20 11 42.88 16.30 38% - - 12/21 11 42.88 21.44 50% - - 12/22 11 42.88 18.01 42% - - 12/23 11 42.88 18.01 42% - - 12/24 11 42.88 16.30 38% - - 12/25 11 42.88 18.44 43% - - 12/26 11 42.88 16.30 38% - - 12/27 11 42.88 16.30 38% - - 12/28 11 42.88 16.30 38% - - 12/29 11 42.88 18.01 42% - - 12/30 11 42.88 16.30 38% - - 12/31 11 42.88 16.72 39% - - 13/0 7 42.88 19.30 45% - - 13/1 7 42.88 19.30 45% - - 13/2 7 42.88 19.30 45% - - 13/3 7 42.88 19.30 45% - - 13/4 7 42.88 19.30 45% - - 13/5 7 42.88 19.30 45% - - 13/6 7 42.88 19.30 45% - - 13/7 7 42.88 19.30 45% - - 13/8 7 42.88 19.30 45% - - 13/9 7 42.88 20.16 47% - - 13/10 7 42.88 20.16 47% - - 13/11 7 42.88 20.16 47% - - 13/12 7 42.88 21.44 50% - - 13/13 7 42.88 20.16 47% - - 13/14 7 42.88 20.16 47% - - 13/15 7 42.88 20.16 47% - - 13/16 7 42.88 19.73 46% - - 13/17 7 42.88 20.16 47% - - 13/18 7 42.88 19.30 45% - - 13/19 7 42.88 19.30 45% - - 13/20 7 42.88 19.30 45% - - 13/21 7 42.88 19.30 45% - - 13/22 7 42.88 21.87 51% - - 13/23 7 42.88 19.30 45% - - 13/24 7 42.88 18.87 44% - - 13/25 7 42.88 19.30 45% - - 13/26 7 42.88 19.30 45% - - 13/27 7 42.88 19.30 45% - - 13/28 7 42.88 19.30 45% - - 13/29 7 42.88 19.30 45% - - 13/30 7 42.88 18.87 44% - - 13/31 7 42.88 19.30 45% - - 14/0 2 42.88 26.16 61% - - 14/1 2 42.88 21.44 50% - - 14/2 2 42.88 22.73 53% - - 14/3 2 42.88 21.44 50% - - 14/4 2 42.88 23.16 54% - - 14/5 2 42.88 21.87 51% - - 14/6 2 42.88 22.73 53% - - 14/7 2 42.88 21.87 51% - - 14/8 2 42.88 22.30 52% - - 14/9 2 42.88 22.30 52% - - 14/10 2 42.88 25.30 59% - - 14/11 2 42.88 22.30 52% - - 14/12 2 42.88 22.30 52% - - 14/13 2 42.88 22.30 52% - - 14/14 2 42.88 22.73 53% - - 14/15 2 42.88 22.30 52% - - 14/16 2 42.88 21.01 49% - - 14/17 2 42.88 21.01 49% - - 14/18 2 42.88 21.01 49% - - 14/19 2 42.88 21.01 49% - - 14/20 2 42.88 21.01 49% - - 14/21 2 42.88 21.01 49% - - 14/22 2 42.88 21.01 49% - - 14/23 2 42.88 21.01 49% - - 17/0 1000.00 0.00 0% 0.00 0% 17/10 10000.00 1800.00 18% 100.00 1% 18/10 10000.00 1700.00 17% 100.00 1% ______________________________________________________________________
Add comment