From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400d:c0d::235; helo=mail-qt0-x235.google.com; envelope-from=henbinchang@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="I/7+XiN2"; dkim-atps=neutral Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41R4rw3VmXzF35w for ; Thu, 12 Jul 2018 15:54:40 +1000 (AEST) Received: by mail-qt0-x235.google.com with SMTP id c15-v6so2843618qtp.0 for ; Wed, 11 Jul 2018 22:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+glCWmTqYUPts5gMMwIOBXQaxlefqL/aN29GzJufKR8=; b=I/7+XiN2RCnyv8fcfTHIC+sHLtT4RLbiq0WDPmgogFnw+7Ch0rDYG7WfbJBUBJSECP JoDZCuf6tGdSlZ1R+hptuZgG/IwBARSI9yDtuUwM8IK+womLmJixGinY9CbGfTf1KiF2 gCw1xjLM6vYQ9Lw1+HAsX+26g6oiqdSC3luYXdOAsIl7XjHCBP94BkkQNRK5cfYE/6d9 bAf9TYqmUcPZ3yelnPSTLXF0SuwrhWarwSVh8xvKeTTqV0I/LVq/bHu9wRmzFAznKnSn owNrgZxQwJfO5+ISvuaK4akahBC0x11Zf2Kur+T5DizQAUpwIw1EkHRShTbaxIudhHCn eNBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+glCWmTqYUPts5gMMwIOBXQaxlefqL/aN29GzJufKR8=; b=nsRqNNX1fltgQPXnd7Hw3LAuSPXfPhM6nuy/1YkcC3wgciD4obJCqGQebv3DXnBNUb DGRy/loACKfH1mD220Pr2sLBROGBC/OznGY7XWhBvZPzKZBhko+alhNHcEGSJLQihkW0 gE2rpvSxkZ4DB9bAmnAjUzsy1nGBAwVhigwNOGHhQQReX2y69vZKtVJp8VCcMEEA/cQg Y9TkPFdCMR0Nm2X92+wSdAjVtNQ79psZSGTRZoPagskHoBa6bIl9OlHdE1omIyR/D9m2 N8ggQkHbnO00EtVyUDT9pePhnSsecc0TADon+AT8fTH5pZGa7JqykOLFMzkYlED65dP2 uFHQ== X-Gm-Message-State: AOUpUlEBkDeQvuJWAhtusfcjg7aruFSpHKzCr3UYgT3NnHcqWwSYgtm7 nw4Sx4OIFP6hcdevXrgoWDUZAYfRJEWLWwjMu9treQ== X-Google-Smtp-Source: AAOMgpdnZIr3lIr4is3V/qMwcxuxdW7s0kNmJTWgXrmkHndlxR9+HAfPDGIYelPGJiH6I5mCDWyPFM6DMLWYac+BF/w= X-Received: by 2002:ac8:29f6:: with SMTP id 51-v6mr686938qtt.200.1531374877159; Wed, 11 Jul 2018 22:54:37 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:26a7:0:0:0:0:0 with HTTP; Wed, 11 Jul 2018 22:54:36 -0700 (PDT) In-Reply-To: References: From: Henbin Chang Date: Thu, 12 Jul 2018 13:54:36 +0800 Message-ID: Subject: Re: IPMI and Redfish support in openbmc Linux To: OpenBMC Maillist , ed.tanous@intel.com Content-Type: multipart/alternative; boundary="0000000000009233d60570c6ff04" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2018 05:54:41 -0000 --0000000000009233d60570c6ff04 Content-Type: text/plain; charset="UTF-8" Hi Ed, I upgraded my openbmc REPO with the Github and used the latest bmcweb (commit id: 7885954af734ae61a2e1358740f84ad39248f18d.) But I got the below error for compiling. ... 6: error: 'async_result_init' is not a member of 'boost::asio::detail' boost::asio::detail::async_result_init< ^~~~~~~~~~~~~~~~~ /common/code_ref/s2600wf_openbmc/openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/boost-dbus/1.0+gitAUTOINC+2ec8037525-r0/git/include/dbus/connection_service.hpp:84:26: note: suggested alternative: 'async_result_helper' boost::asio::detail::async_result_init< ^~~~~~~~~~~~~~~~~ async_result_helper /common/code_ref/s2600wf_openbmc/openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/boost-dbus/1.0+gitAUTOINC+2ec8037525-r0/git/include/dbus/connection_service.hpp:85:23: error: expected primary-expression before ',' token MessageHandler, void(boost::system::error_code, message)> ^ /common/code_ref/s2600wf_openbmc/openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/boost-dbus/1.0+gitAUTOINC+2ec8037525-r0/git/include/dbus/connection_service.hpp:85:25: error: expected primary-expression before 'void' MessageHandler, void(boost::system::error_code, message)> ... Suppose this is because the boost-dbus is too old. Do you any suggestion? Thanks. 2018-07-12 8:05 GMT+08:00 Henbin Chang : > Thank your support. > > It did work after I used the default port 18080. > curl -k https://10.99.241.79:18080/redfish/v1 > > I had to indicate the account/password if I would like to access other > node. > curl -k https://root:0penBmc@10.99.241.79:18080/redfish/v1/Managers/ > > Bmcweb will launch under one of two ports. If launched manually, it will >> launch under port 18080. If launched via systemd, it will use socket >> activation to launch under port 883 (to avoid conflicting with the existing >> phosphor-rest server). Another thing to recognize is that there is a debug >> html interface built into the redfish interface, so the easiest way to test >> is to use a web browser, and you will get the graphical interface with >> clickable links. Try pointing a web browser at >> https://10.99.241.79:18080/redfish/v1 and see if that works. PS, the >> trailing backslash is unimportant. Bmcweb is designed to strip the trailing >> backslash for you in either case, so redfish/v1 is the same as redfish/v1/ >> -Ed > > > > 2018-07-10 16:39 GMT+08:00 Ratan Gupta : > >> Hi Henbin, >> >> Can you try "curl -b cjar -k https://:18080/redfish/v1"? >> >> Seems default port is 18080 >> >> https://github.com/openbmc/bmcweb/blob/master/src/webserver_main.cpp#L24 >> >> Regards >> >> Ratan Gupta >> >> >> >> On Tuesday 10 July 2018 10:06 AM, Henbin Chang wrote: >> >> H Ed, >> I built bmcweb into my machine, and check the 'bmcweb' daemon was started >> up. >> >> ps aux | grep bmcweb >> 919 root 0:00 /usr/bin/bmcweb >> 8662 root 0:00 grep bmcweb >> >> But I couldn't access Redfish API through the below command. >> curl -b cjar -k https://10.99.241.79/redvish/v1/ >> >> Could you help provide the suggestion? >> >> Thanks. >> -Henbin. >> >> There are several servers that support Redfish, and we have a working >>> group that meets weekly to talk through technical issues each week, which >>> you're welcome to attend. The only one checked into the upstream project is >>> bmcweb. If you need help getting it started, I'm happy to help. >>> https://github.com/openbmc/bmcweb >> >> >> >> > --0000000000009233d60570c6ff04 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ed,

I upgraded my openbmc REPO with = the Github and used the latest bmcweb (commit id:=20 7885954af734ae61a2e135= 8740f84ad39248f18d.)

But I got the below er= ror for compiling.
...
6: error: 'async_re= sult_init' is not a member of 'boost::asio::detail'
= =C2=A0 =C2=A0 =C2=A0boost::asio::detail::async_result_init<
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~~~
/common/code_ref/s2600wf_open= bmc/openbmc/build/tmp/work/armv6-openbmc-linux-gnueabi/boost-dbus/1.0+gitAU= TOINC+2ec8037525-r0/git/include/dbus/connection_service.hpp:84:26: note: su= ggested alternative: 'async_result_helper'
=C2=A0 =C2=A0 = =C2=A0boost::asio::detail::async_result_init<
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ^~~~~~~~~~~~~~~~~
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 async_result_helper
<= div>/common/code_ref/s2600wf_openbmc/openbmc/build/tmp/work/armv6-openbmc-l= inux-gnueabi/boost-dbus/1.0+gitAUTOINC+2ec8037525-r0/git/include/dbus/conne= ction_service.hpp:85:23: error: expected primary-expression before ',&#= 39; token
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MessageHandler, void(= boost::system::error_code, message)>
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^
/com= mon/code_ref/s2600wf_openbmc/openbmc/build/tmp/work/armv6-openbmc-linux-gnu= eabi/boost-dbus/1.0+gitAUTOINC+2ec8037525-r0/git/include/dbus/connection_se= rvice.hpp:85:25: error: expected primary-expression before 'void'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MessageHandler, void(boost::syst= em::error_code, message)>
...

S= uppose this is because the boost-dbus is too old.

= Do you any suggestion?

Thanks.


2018-07-12= 8:05 GMT+08:00 Henbin Chang <henbinchang@gmail.com>:
Thank your support.
It did work after I used the default port 18080.

I= had to indicate the account/password if I would like to access other node.=
https://root:0penBmc@10.99.241.79:18080/redf= ish/v1/Managers/

Bmcweb will launch under = one of two ports. If launched manually, it will launch under port 18080. = If launched via systemd, it will use socket activation to launch under port= 883 (to avoid conflicting with the existing phosphor-rest server). Another thing to recognize is that there is a debug html interface built in= to the redfish interface, so the easiest way to test is to use a web browse= r, and you will get the graphical interface with clickable links. Try poin= ting a web browser at https://10.99.241.79:18080/redfish/v1 and see if th= at works. PS, the trailing backslash is unimportant. Bmcweb is designed to strip the= trailing backslash for you in either case, so redfish/v1 is the same as re= dfish/v1/ -Ed


2018-07-10 16:39 GMT+08:00 Ratan Gup= ta <ratagupt@linux.vnet.ibm.com>:
=20 =20 =20

Hi Henbin,

Can you try "curl -b cjar -k https://<ip>:18080/redfish/v1"?

Seems default port is 18080

https://github.com/openbmc/bmc= web/blob/master/src/webserver_main.cpp#L24

Regards

Ratan Gupta



On Tuesday 10 July 2018 10:06 AM, Henbin Chang wrote:
=20
H Ed,
I built bmcweb into my machine, and check the 'bmcweb' daemon was started up.

ps aux | grep bmcweb
=C2=A0 919 root=C2=A0 =C2=A0 =C2=A0 =C2=A00:00 /usr/bin/bmcw= eb
=C2=A08662 root=C2=A0 =C2=A0 =C2=A0 =C2=A00:00 grep bmcweb

But I couldn't access Redfish API through the below command.

Could you help provide the suggestion?

Thanks.
-Henbin.

There are sev= eral servers that support Redfish, and we have a working group that meets weekly to talk through technical issues each week, which you're welcome to attend. The only one checked into the upstream project is bmcweb. If you need help getting it started, I'm happy to help.
https://github.com/openbmc/bmcweb




--0000000000009233d60570c6ff04--