[E-impact] Re: Digging into the source of SNMP data

Romain Jacob <jacobr@ethz.ch> Thu, 07 November 2024 20:01 UTC

Return-Path: <jacobr@ethz.ch>
X-Original-To: e-impact@ietfa.amsl.com
Delivered-To: e-impact@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0CF8FC14F5E5; Thu, 7 Nov 2024 12:01:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.904
X-Spam-Level:
X-Spam-Status: No, score=-1.904 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2DNY9rCvIING; Thu, 7 Nov 2024 12:01:02 -0800 (PST)
Received: from mailg110.ethz.ch (mailg110.ethz.ch [IPv6:2001:67c:10ec:5605::21]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7A2D5C1D52ED; Thu, 7 Nov 2024 12:01:02 -0800 (PST)
Received: from mailm113.d.ethz.ch (2001:67c:10ec:5602::25) by mailg110.ethz.ch (2001:67c:10ec:5605::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 7 Nov 2024 21:01:01 +0100
Received: from [192.168.1.27] (31.10.154.216) by mailm113.d.ethz.ch (2001:67c:10ec:5602::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 7 Nov 2024 21:01:00 +0100
Message-ID: <f0794374-63af-4d61-9d8f-9ae377294bab@ethz.ch>
Date: Thu, 07 Nov 2024 21:01:45 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Toerless Eckert <tte@cs.fau.de>
References: <1de6f145-3686-4320-8776-32f67d6affc9@ethz.ch> <Zyztq4Yz5o12L9lI@faui48e.informatik.uni-erlangen.de>
From: Romain Jacob <jacobr@ethz.ch>
Content-Language: en-US
In-Reply-To: <Zyztq4Yz5o12L9lI@faui48e.informatik.uni-erlangen.de>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="------------ms040202080607090202010405"
X-Originating-IP: [31.10.154.216]
X-ClientProxiedBy: mailm215.d.ethz.ch (2001:67c:10ec:5603::29) To mailm113.d.ethz.ch (2001:67c:10ec:5602::25)
Message-ID-Hash: HIZ36UDY5NBNLM7ODJGHAEF7YON7VPDY
X-Message-ID-Hash: HIZ36UDY5NBNLM7ODJGHAEF7YON7VPDY
X-MailFrom: jacobr@ethz.ch
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "e-impact@ietf.org" <e-impact@ietf.org>, green@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [E-impact] Re: Digging into the source of SNMP data
List-Id: Environmental impacts of the Internet <e-impact.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/e-impact/27yAu1_gWI4NvsIjV0u9OB8-WNs>
List-Archive: <https://mailarchive.ietf.org/arch/browse/e-impact>
List-Help: <mailto:e-impact-request@ietf.org?subject=help>
List-Owner: <mailto:e-impact-owner@ietf.org>
List-Post: <mailto:e-impact@ietf.org>
List-Subscribe: <mailto:e-impact-join@ietf.org>
List-Unsubscribe: <mailto:e-impact-leave@ietf.org>

Hi Toerless

> I wonder if questions like this might now be more appropriate to thegreen@ietf.org
> WG mailing list given how that one seems to be mostly around instrumenting
> routers with such measurement options. Cc'ed.
Good point, thanks for forwarding.
> Which router product/model are you using , and which MIB OIDs are you using ?

In that particular case, that's a Cisco 8201-32FH. I am not entirely 
sure about the exact MIB since I'm not collecting the data myself. Simon 
Leinen, from SWITCH, put this together (Many thanks again, Simon!).

AFAIU, the relevant MIB entries can be read from this file [1].

Cheers, -- Romain

[1] 
https://github.com/sleinen/snmp-session/blob/master/test/get-cisco-power-usage.pl 


> I remember from the past routers with separate environmental support hardware,
> so i would not want to exclude that there may be different sources of truth.
>
> Cheers
>      Toerless
>
> On Thu, Nov 07, 2024 at 05:29:25PM +0100, Romain Jacob wrote:
>> Hello everyone,
>>
>> I have access to power data collected via SNMP. The numbers do not match the
>> sensor data that I can get manually from the router with commands like `sh
>> env all` or similar, which makes me wonder where the power data that I get
>> from SNMP comes from, or how it is preprocessed before it is piped to SNMP.
>>
>> If some of you have any clues or pointers, I'd be very interested :-)
>>
>> Thanks,
>>
>> -- 
>> Romain JACOB
>> Postdoctoral Researcher
>> ETH Zurich
>> Networked Systems Group (NSG)
>> Lead: Prof. Laurent Vanbever
>> www.romainjacob.net  <https://www.romainjacob.net/>
>> @RJacobPartner<https://twitter.com/RJacobPartner>
>> @jacobr@discuss.systems<https://discuss.systems/@jacobr>
>> Gloriastrasse 35, ETZ G84
>> 8092 Zurich
>> +41 7 68 16 88 22
>
>
>> -- 
>> E-impact mailing list --e-impact@ietf.org
>> To unsubscribe send an email toe-impact-leave@ietf.org
>
-- 
Romain JACOB
Postdoctoral Researcher
ETH Zurich
Networked Systems Group (NSG)
Lead: Prof. Laurent Vanbever
www.romainjacob.net <https://www.romainjacob.net/>
@RJacobPartner <https://twitter.com/RJacobPartner>
@jacobr@discuss.systems <https://discuss.systems/@jacobr>
Gloriastrasse 35, ETZ G84
8092 Zurich
+41 7 68 16 88 22