From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3CC3C433DB for ; Tue, 2 Feb 2021 01:26:14 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF5C164DDB for ; Tue, 2 Feb 2021 01:26:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF5C164DDB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4DV6b703FszDr1Z for ; Tue, 2 Feb 2021 12:26:11 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=aspeedtech.com (client-ip=2a01:111:f400:febe::709; helo=apc01-pu1-obe.outbound.protection.outlook.com; envelope-from=troy_lee@aspeedtech.com; receiver=) Received: from APC01-PU1-obe.outbound.protection.outlook.com (mail-pu1apc01on0709.outbound.protection.outlook.com [IPv6:2a01:111:f400:febe::709]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4DV6Y34Yr7zDr0L for ; Tue, 2 Feb 2021 12:24:21 +1100 (AEDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SivFT+9dPFqmatbj2iy4kLkIz49pt2I+sWJ35s5sQoZ0WKM/49aEB9yMUKgYIY6yBu6X9dqTWE00/M1Lh+Jf46xr1GDa8PI7veUh/C0xpL7ihx8FEU6FoGWNdxy4V1CKaVVoQ4jXvuuKc9pe8j3BilLEUig9vaSw2sd3PDWsWkNNHCOB0yTtG/d4QbYxJSLxNbehwgmMxsv+SeWlm9zzLLT+dLtR5Pk3eISpmSD18qyg8ayC/uWVsM4WyOOyyQG9QQmK5eYacYALUCjFTaeaFXnU098HZArHvmt8VgXDwvMVZyRGTH8PSYlN/ktmQcOttJYGswxwAcnUWYzEwAa+uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x67L7liBDq40AgwZwy3qn0jeG4Pp96ZBjYjMk+VXEik=; b=IdQXa/gvmaX2s/JWtGgHAdoPmAmtenFeWsxwLlIlGFT8TDliT+Fyc642A3sziJeVO1h1LHhZ3txWpsDtHa4XW5Hr/vFfQzNdSHTjjWIo3aY9CdoKR2lPYXoPR5Mm2d7c8HB61wWvstR5k3xvsfzxCwzHHghMa532s6rijaG7Bjn6Q6UYRo2RcxizxN0okGPCzeKaaC36RyrDVSvSHtw9z8GWLO3eoCjJwMnxWbn/4ABA4cRmav2dawhBS1AjeAXPWuPjL71hDwB9Y1s+FLp/bryzdNJ+7E3U4NOcKtt6TqW/fGcvxH2Jkp9562wyvDmRx+8ktNPdWannGUuyxLgV4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aspeedtech.com; dmarc=pass action=none header.from=aspeedtech.com; dkim=pass header.d=aspeedtech.com; arc=none Received: from PS1PR06MB2600.apcprd06.prod.outlook.com (2603:1096:803:4d::19) by PS1PR0601MB3772.apcprd06.prod.outlook.com (2603:1096:300:79::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.19; Tue, 2 Feb 2021 01:24:09 +0000 Received: from PS1PR06MB2600.apcprd06.prod.outlook.com ([fe80::6031:184a:88fe:5667]) by PS1PR06MB2600.apcprd06.prod.outlook.com ([fe80::6031:184a:88fe:5667%7]) with mapi id 15.20.3805.028; Tue, 2 Feb 2021 01:24:09 +0000 From: Troy Lee To: Mohammed.Habeeb ISV , "openbmc@lists.ozlabs.org" Subject: RE: ipmi lan interface question Thread-Topic: ipmi lan interface question Thread-Index: Adb48fkTOYQCslr6RWm64o6Ipk7eCgAD5/dA Date: Tue, 2 Feb 2021 01:24:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: inventec.com; dkim=none (message not signed) header.d=none;inventec.com; dmarc=none action=none header.from=aspeedtech.com; x-originating-ip: [118.99.190.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 257bedd6-159c-4e7a-99be-08d8c7193da4 x-ms-traffictypediagnostic: PS1PR0601MB3772: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: S5Ieet5PslUXonYLgNq7duwfVhoYj7ZolMtHn95RBfO2ZU1vPOEwnWEIO0HdOSuzuXEXFT006r8BeVKXoKlr+OYnvm7c0kbnkHlUTN5Qg5cPMHjbNMzIfVbAyNm48u5UukHepYRr1Xbk8+2TTvi3b9rS/PKe8EdYRrsEEJgJGcER/b2TBB4FjkkrAd50yQ+r/AMFdXoQk2nlOIjonlhP+FVXYUWWIQa2upHdOLWD+WLLCFWIYnD8zsEKV26Fl0/ZI055PT7XF71NBcXharDLmj70lCDSI8aZvEmOMPWKAkP5sxgrw+nyepsNgbotVMptfTwCJDEhpsZwBKLMa/miLbA3+Y4hCC/T2qObU1/F/ZLmeIZLi9g0cn0whRz2Mp1DICfcuqC9owtsJ05pK2lZirZI3hCn1Ja0Vk91tDaWow/WRgN4MWMn25J7fxvSWj0rqLjnbViaSsOqEXFgVZ0rikE1eUZleF0MkUtZwxVMFPsi9iq9W/K6Mt5iP8YvHysUdel5SUK6efW0rB7RjMngFVeqxnjR6LRubdAHudiCvhN6IIu5WNVLD8j01dRNhKOwH4YKf28ZVZg7qdDY1KndeGuVvRb6enP8aNZHOxLUtw8= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PS1PR06MB2600.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(136003)(346002)(39830400003)(366004)(376002)(478600001)(83380400001)(66446008)(6506007)(53546011)(2906002)(966005)(66946007)(9326002)(33656002)(3480700007)(66556008)(64756008)(9686003)(5660300002)(66476007)(71200400001)(86362001)(8676002)(76116006)(55016002)(8936002)(7696005)(26005)(52536014)(110136005)(316002)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?lj5AuywrRzAyj6X/P1SyK35cgSq+wKv4sN44jU7Wo4TPcw1WgGbh2KeY5oX4?= =?us-ascii?Q?uVP6CQjG6iefxmTuvcK0jOzJ8XqoFgY4ZQsSya0Z46ZlZth363yuajUwd7GN?= =?us-ascii?Q?mHF6mYCTdh5XjHZLBNWYlGUPJLu0Dx1x/oKFArg5qJTzOy+6Ux2B0p6irGHN?= =?us-ascii?Q?+wrMDY19WrbQasAOQHZiydqA5jpQWPT/uMlKK/LdIrpasNRRbj7e4NYy1uaX?= =?us-ascii?Q?eAfwJ0XgRrQ48UnGLUake+x8c3cx1q2I50C1296FKySUJRq9xMV16SahfmWs?= =?us-ascii?Q?1wTLQ5aY+IlqZ94qeU67O83Jr/3ejliMX1Tsl86Af+kI4KiZDnOzEHEqfBd7?= =?us-ascii?Q?ozO7LXNcxcj8xL9FWq2foFAAgqDbJ4OF/v32EB4Mzh7jU5iA3iMkilR/1f4j?= =?us-ascii?Q?sR4JRSfYcdzNaytsUt6P9tNKcrZXz6k2qcoF/X6lp7EgPepKAKeR+wJgFAmU?= =?us-ascii?Q?0Z7lHYVwZ1/v0bLGH8FPnwc6vPbkIu9TwQLvygYTNz6tL2g1saMIEuVlyeev?= =?us-ascii?Q?idhNZSnShdspi66uMpJe9i0kU7OuVDe1rNlESOX4fpaAX8op4GXtxBQ84tQC?= =?us-ascii?Q?5zUFm+wo+pqmJy9P61VYD1sT3uuK/os1vcisvlmn6u4+o9XOyCgMBBqiSngi?= =?us-ascii?Q?qFmDdc3XIlFGRXU7OTcgvY4mQwTaq331V62WeCe81h/UvOEBqiooz9zrAhHd?= =?us-ascii?Q?L4Z0/t63YHqEkcq4y9tSsF0kDql0CGhWaUC4dHNOFWARmEVzCa4QNW3HIcE6?= =?us-ascii?Q?qhQ0tAM457Dxlm6/8ZNnVEbhtUYeiym84HPlsh3pg6im6CEKVSqiLakvS0Q7?= =?us-ascii?Q?1BlgPzF4niivpYPbLD3oQDl+A2vkZ0tTiVD1aaYnZQkr9k+C8XEpxNfcb+yO?= =?us-ascii?Q?beITHmrRsCbVF50iMIrAt51S8gC+Z0vzsRX0nhdiZVYRL949z3UxOllWhzsc?= =?us-ascii?Q?zWlm4dncXflA/OjIhg2P213oa7yFyjetIqrOe8HqKlcZor5ygPyptZXp3eJO?= =?us-ascii?Q?jyt7AOM4yFtEAQ3SEP+j9ILJiY7cwvmPzWixUN6qK4J7TKoJXInKlpNNzI49?= =?us-ascii?Q?LfR7f7OH?= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_PS1PR06MB2600792E350226ADAE1FFFA28AB59PS1PR06MB2600apcp_" MIME-Version: 1.0 X-OriginatorOrg: aspeedtech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PS1PR06MB2600.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 257bedd6-159c-4e7a-99be-08d8c7193da4 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2021 01:24:09.0914 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43d4aa98-e35b-4575-8939-080e90d5a249 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1snFnfXEcq27uswf/1dWo658B1n5j28MTigwtSOTPgKiS8+I7Ci80d0R30Djju/vmLRSRn/Fv35/qRCQhuU6+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB3772 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --_000_PS1PR06MB2600792E350226ADAE1FFFA28AB59PS1PR06MB2600apcp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Mohammed, What version is your ipmitool? Try to use cipher suite 17 and RMCP+ with ipmitool. E.g., $ ipmitool -C 17 -I lanplus -H $IP -U $USER -P $Pass lan print Please refer to: https://github.com/openbmc/docs/blob/master/IPMITOOL-cheat= sheet.md Thanks, Troy Lee From: openbmc = On Behalf Of Mohammed.Habeeb ISV Sent: Tuesday, February 2, 2021 7:29 AM To: openbmc@lists.ozlabs.org Subject: ipmi lan interface question Hi I am trying to test the ipmi lan interface for the first time. However, I s= ee setting Authtype is failing. Please review the below logs and let me kno= w if any inputs. OpenBMC Version is 2.9 . Setup: Openbmc machince 2.7(seahawk) ------openbmc machine 2.9(transformers) Below is the command outputs. /* 10.41.8.50 is transformers 2.9 BMC IP.*/ seahawk:/# ipmitool -H 10.41.8.50 -U test -P test123 lan print -vvv Sending IPMI/RMCP presence ping packet send_packet (12 bytes) 06 00 ff 06 00 00 11 be 80 00 00 00 ipmi_lan_send_cmd:opened=3D[1], open=3D[474656] >> IPMI Request Session Header (level 0) >> Authtype : NONE >> Sequence : 0x00000000 >> Session ID : 0x00000000 >> IPMI Request Message Header >> Rs Addr : 20 >> NetFn : 06 >> Rs LUN : 0 >> Rq Addr : 81 >> Rq Seq : 01 >> Rq Lun : 0 >> Command : 38 send_packet (23 bytes) 06 00 ff 07 00 00 00 00 00 00 00 00 00 09 20 18 c8 81 04 38 0e 04 31 recv_packet (31 bytes) 06 00 ff 07 00 00 00 00 00 00 00 00 00 10 81 1c 63 20 04 38 00 01 80 04 02 00 00 00 00 1d 00 ipmi message header (31 bytes) 06 00 ff 07 00 00 00 00 00 00 00 00 00 10 81 1c 63 20 04 38 00 01 80 04 02 00 00 00 00 1d 00 << IPMI Response Session Header << Authtype : NONE << Sequence : 0x00000000 << Session ID : 0x00000000 << IPMI Response Message Header << Rq Addr : 81 << NetFn : 07 << Rq LUN : 0 << Rs Addr : 20 << Rq Seq : 01 << Rs Lun : 0+ << Command : 38 << Compl Code : 0x00 get_auth_capabilities (9 bytes) 01 80 04 02 00 00 00 00 1d Channel 01 Authentication Capabilities: Privilege Level : ADMINISTRATOR Auth Types : Per-msg auth : enabled User level auth : enabled Non-null users : enabled Null users : disabled Anonymous login : disabled Authentication type NONE not supported Error: Unable to establish LAN session Error: Unable to establish IPMI v1.5 / RMCP session seahawk:/# Since , AuthType NONE is not supported tried to set the auth type to MD5 bu= t it fails. sysadmin@transformers:~# ipmitool lan set 1 auth Admin MD5,PASSWORD -vvv Loading IANA PEN Registry... Running Get PICMG Properties my_addr 0x20, transit 0, target 0 Error response 0xc1 from Get PICMG Properties Running Get VSO Capabilities my_addr 0x20, transit 0, target 0 Invalid completion code received: Invalid command Acquire IPMB address Discovered IPMB address 0x0 Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0 Channel type: 802.3 LAN Auth Type Enable : callback=3D0x00 user=3D0x00 operator=3D0x00 admin= =3D0x00 oem=3D0x00 authtype data (5 bytes) 00 00 00 14 00 Warning: Set LAN Parameter failed: Unknown (0x82) sysadmin@transformers:~# sysadmin@transformers:~# ipmitool channel getaccess 1 4 Maximum User IDs : 15 Enabled User IDs : 4 User ID : 4 User Name : test Fixed Name : No Access Available : callback Link Authentication : enabled IPMI Messaging : enabled Privilege Level : ADMINISTRATOR Enable Status : enabled sysadmin@transformers:~# --_000_PS1PR06MB2600792E350226ADAE1FFFA28AB59PS1PR06MB2600apcp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Mohammed,

 

What version is your ipmitool?

Try to use cipher suite 17 and RMCP+ with ipmitool. =

E.g.,

$ ipmitool -C 17 -I lanplus -H $IP -U $USER -= P $Pass lan print

 

Please refer to: https://github.com/openbmc/docs/blo= b/master/IPMITOOL-cheatsheet.md

 

Thanks,

Troy Lee

 

From: openbmc <openbmc-bounces+troy_lee=3D= aspeedtech.com@lists.ozlabs.org> On Behalf Of Mohammed.Habeeb ISV
Sent: Tuesday, February 2, 2021 7:29 AM
To: openbmc@lists.ozlabs.org
Subject: ipmi lan interface question

 

Hi

 

I am trying to test the ipmi lan interface for the f= irst time. However, I see setting Authtype is failing. Please review the be= low logs and let me know if any inputs.

OpenBMC Version is 2.9 .

 

Setup:

Openbmc machince 2.7(seahawk) ------openbmc machine = 2.9(transformers)

 

 

Below is the command outputs.

 

/* 10.41.8.50 is transformers 2.9 BMC IP.*/

seahawk:/# ipmitool -H 10.41.8.50 -U test -P test123= lan print -vvv

Sending IPMI/RMCP presence ping packet

send_packet (12 bytes)

06 00 ff 06 00 00 11 be 80 00 00 00

ipmi_lan_send_cmd:opened=3D[1], open=3D[474656]=

>> IPMI Request Session Header (level 0)<= /o:p>

>>   Authtype   : NONE

>>   Sequence   : 0x000000= 00

>>   Session ID : 0x00000000

>> IPMI Request Message Header

>>   Rs Addr    : 20<= o:p>

>>   NetFn    &n= bsp; : 06

>>   Rs LUN     = : 0

>>   Rq Addr    : 81<= o:p>

>>   Rq Seq     = : 01

>>   Rq Lun     = : 0

>>   Command    : 38<= o:p>

send_packet (23 bytes)

06 00 ff 07 00 00 00 00 00 00 00 00 00 09 20 18=

c8 81 04 38 0e 04 31

recv_packet (31 bytes)

06 00 ff 07 00 00 00 00 00 00 00 00 00 10 81 1c=

63 20 04 38 00 01 80 04 02 00 00 00 00 1d 00

ipmi message header (31 bytes)

06 00 ff 07 00 00 00 00 00 00 00 00 00 10 81 1c=

63 20 04 38 00 01 80 04 02 00 00 00 00 1d 00

<< IPMI Response Session Header

<<   Authtype   : NONE

<<   Sequence   : 0x000000= 00

<<   Session ID : 0x00000000

<< IPMI Response Message Header

<<   Rq Addr    : 81<= o:p>

<<   NetFn    &n= bsp; : 07

<<   Rq LUN     = : 0

<<   Rs Addr    : 20<= o:p>

<<   Rq Seq     = : 01

<<   Rs Lun     = : 0+

<<   Command    : 38<= o:p>

<<   Compl Code : 0x00

get_auth_capabilities (9 bytes)

01 80 04 02 00 00 00 00 1d

Channel 01 Authentication Capabilities:

  Privilege Level : ADMINISTRATOR

  Auth Types      :

  Per-msg auth    : enabled=

  User level auth : enabled

  Non-null users  : enabled

  Null users      : di= sabled

  Anonymous login : disabled

 

Authentication type NONE not supported

Error: Unable to establish LAN session

Error: Unable to establish IPMI v1.5 / RMCP session<= o:p>

seahawk:/#

 

Since , AuthType NONE is not supported tried to set = the auth type to MD5 but it fails.

sysadmin@transformers:~# ipmitool lan set 1 auth Adm= in MD5,PASSWORD -vvv

Loading IANA PEN Registry...

Running Get PICMG Properties my_addr 0x20, transit 0= , target 0

Error response 0xc1 from Get PICMG Properties

Running Get VSO Capabilities my_addr 0x20, transit 0= , target 0

Invalid completion code received: Invalid command

Acquire IPMB address

Discovered IPMB address 0x0

Interface address: my_addr 0x20 transit 0:0 target 0= x20:0 ipmb_target 0

 

Channel type: 802.3 LAN

Auth Type Enable      =   : callback=3D0x00 user=3D0x00 operator=3D0x00 admin=3D0x00 oem=3D0x0= 0

authtype data (5 bytes)

00 00 00 14 00

Warning: Set LAN Parameter failed: Unknown (0x82)

sysadmin@transformers:~#

 

sysadmin@transformers:~# ipmitool channel getaccess = 1 4

Maximum User IDs     : 15

Enabled User IDs     : 4

 

User ID       &nb= sp;      : 4

User Name       &= nbsp;    : test

Fixed Name       =     : No

Access Available     : callback<= o:p>

Link Authentication  : enabled

IPMI Messaging       := enabled

Privilege Level      : ADMI= NISTRATOR

Enable Status      &nb= sp; : enabled

sysadmin@transformers:~#

--_000_PS1PR06MB2600792E350226ADAE1FFFA28AB59PS1PR06MB2600apcp_--