{"id":509,"date":"2011-10-03T21:40:01","date_gmt":"2011-10-04T03:40:01","guid":{"rendered":"http:\/\/benincosa.com\/blog\/?p=509"},"modified":"2014-11-19T11:24:53","modified_gmt":"2014-11-19T17:24:53","slug":"xcat-r-commands-with-ucs","status":"publish","type":"post","link":"https:\/\/benincosa.com\/?p=509","title":{"rendered":"xCAT r* commands with UCS"},"content":{"rendered":"<p>xCAT out of the box works on UCS. \u00a0Or UCS out of the box works with xCAT?  Whichever way you look at it, it works.  All of the cool things you can do with xCAT like provision nodes, KVM, vSphere, stateless computing, etc, can all be done with UCS. \u00a0In fact, you can even run most of the r* commands on UCS.<\/p>\n<p>Cisco UCS allows this through IPMI. \u00a0And configuring IPMI on UCS is easier than any other system I&#8217;ve ever used. \u00a0While I still plan on furthering my xCAT UCS plugin to get more capabilities into xCAT, most xCAT functions can be used with UCS managing the servers with IPMI. \u00a0For most people, this is good enough.<\/p>\n<p>Using IPMI this is what seems to work with xCAT 2.6.6 and UCSM 2.0(1): (See the end of this for sample output)<\/p>\n<ul>\n<li>rpower on|off|stat|boot<\/li>\n<li>rbeacon on|off<\/li>\n<li>reventlog [clear]<\/li>\n<li>rvitals \u00a0(this is quite thorough)<\/li>\n<\/ul>\n<p>rinv seems to hang on me. \u00a0This I think is due to the nature of service profiles, where UUIDs and MAC addresses are transient. \u00a0I&#8217;ll investigate this further.<\/p>\n<p>So how do you do it?<\/p>\n<p>Configuring an IPMI machine with xCAT has been <a href=\"http:\/\/sumavi.com\/sections\/ipmi-settings\">well documented<\/a>. \u00a0What I haven&#8217;t seen documented so much is configuring IPMI inside UCS. \u00a0This is surprisingly easy. \u00a0Here&#8217;s how its done:<\/p>\n<p>1. \u00a0Create a Service Profile Template that you will apply to your blades. \u00a0This is <a href=\"http:\/\/www.cisco.com\/en\/US\/products\/ps10281\/products_configuration_example09186a0080ae0642.shtml\">documented very well in various places<\/a> so I won&#8217;t go into it here. \u00a0Creating a Service Profile Template is UCS 101. \u00a0 After you&#8217;ve created your service profile, assuming its an updating template you can proceed to the next step. \u00a0(Don&#8217;t worry, any changes made for doing IPMI don&#8217;t require a reboot)<\/p>\n<p>2. \u00a0From the Servers tab, filter by Service Profile Templates, and navigate to your service profile template.<\/p>\n<p>3. \u00a0Click on the policies table and look at the IPMI Access Profile Policy<\/p>\n<p>4. \u00a0Create a new policy. \u00a0In this policy you&#8217;ll give the name of the user and give it a password. \u00a0Make sure they have admin privileges. \u00a0For simplicity, I just made my user and password the same as my UCSM user and password.<\/p>\n<p>5. \u00a0Apply the setting and click save.<\/p>\n<p>From here on out you can just run IPMI commands. \u00a0The only issue now is to know which IP address corresponds to the IPMI interface of which blade.<\/p>\n<p>This can be found in UCSM under the Admin tab, Communication Management, Management IP pool. \u00a0If you click on the IP addresses tab on the left hand side, you&#8217;ll see all the IP addresses. \u00a0<a href=\"http:\/\/benincosa.com\/blog\/wp-content\/uploads\/2011\/10\/Screen-Shot-2011-10-03-at-10.24.30-PM.png\"><\/a><\/p>\n<p><a href=\"http:\/\/benincosa.com\/blog\/wp-content\/uploads\/2011\/10\/Screen-Shot-2011-10-03-at-10.24.30-PM.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-510\" title=\"Screen Shot 2011-10-03 at 10.24.30 PM\" src=\"http:\/\/benincosa.com\/blog\/wp-content\/uploads\/2011\/10\/Screen-Shot-2011-10-03-at-10.24.30-PM.png\" alt=\"\" width=\"500\" \/><\/a><\/p>\n<p>Ok my friend, you now have it.  xCAT running rpower commands.<\/p>\n<p>And now, here is a sample output running rvitals on a UCS B200 M1:<\/p>\n<pre># rvitals lucky01\r\nlucky01: BIOSPOST_TIMEOUT: N\/A\r\nlucky01: BIOS_POST_CMPLT: 0\r\nlucky01: CATERR_N: 0\r\nlucky01: CPUS_PRCHT_N: 0\r\nlucky01: DDR3_P1_A1_ECC: 0 error\r\nlucky01: DDR3_P1_A1_PRS: 0\r\nlucky01: DDR3_P1_A1_TMP: 26 C (79 F)\r\nlucky01: DDR3_P1_A2_ECC: 0 error\r\nlucky01: DDR3_P1_A2_PRS: 0\r\nlucky01: DDR3_P1_A2_TMP: 25 C (77 F)\r\nlucky01: DDR3_P1_B1_ECC: 0 error\r\nlucky01: DDR3_P1_B1_PRS: 0\r\nlucky01: DDR3_P1_B1_TMP: 26 C (79 F)\r\nlucky01: DDR3_P1_B2_ECC: 0 error\r\nlucky01: DDR3_P1_B2_PRS: 0\r\nlucky01: DDR3_P1_B2_TMP: 27 C (81 F)\r\nlucky01: DDR3_P1_C1_ECC: 0 error\r\nlucky01: DDR3_P1_C1_PRS: 0\r\nlucky01: DDR3_P1_C1_TMP: 24 C (75 F)\r\nlucky01: DDR3_P1_C2_ECC: 0 error\r\nlucky01: DDR3_P1_C2_PRS: 0\r\nlucky01: DDR3_P1_C2_TMP: 25 C (77 F)\r\nlucky01: DDR3_P2_D1_ECC: 0 error\r\nlucky01: DDR3_P2_D1_PRS: 0\r\nlucky01: DDR3_P2_D1_TMP: 22 C (72 F)\r\nlucky01: DDR3_P2_D2_ECC: 0 error\r\nlucky01: DDR3_P2_D2_PRS: 0\r\nlucky01: DDR3_P2_D2_TMP: 22 C (72 F)\r\nlucky01: DDR3_P2_E1_ECC: 0 error\r\nlucky01: DDR3_P2_E1_PRS: 0\r\nlucky01: DDR3_P2_E1_TMP: 22 C (72 F)\r\nlucky01: DDR3_P2_E2_ECC: 0 error\r\nlucky01: DDR3_P2_E2_PRS: 0\r\nlucky01: DDR3_P2_E2_TMP: 22 C (72 F)\r\nlucky01: DDR3_P2_F1_ECC: 0 error\r\nlucky01: DDR3_P2_F1_PRS: 0\r\nlucky01: DDR3_P2_F1_TMP: 21 C (70 F)\r\nlucky01: DDR3_P2_F2_ECC: 0 error\r\nlucky01: DDR3_P2_F2_PRS: 0\r\nlucky01: DDR3_P2_F2_TMP: 22 C (72 F)\r\nlucky01: ECC_STROM: 0\r\nlucky01: FM_TEMP_SENS_IO: 21 C (70 F)\r\nlucky01: FM_TEMP_SEN_REAR: 22 C (72 F)\r\nlucky01: HDD0_PRS: 0\r\nlucky01: HDD1_PRS: 0\r\nlucky01: HDD_BP_PRS: 0\r\nlucky01: IOH_THERMALERT_N: 0\r\nlucky01: IOH_THERMTRIP_N: 0\r\nlucky01: IRQ_P1_RDIM_EVNT: 0\r\nlucky01: IRQ_P1_VRHOT: 0\r\nlucky01: IRQ_P2_RDIM_EVNT: 0\r\nlucky01: IRQ_P2_VRHOT: 0\r\nlucky01: LED_BLADE_STATUS: 0\r\nlucky01: LED_FPID: 0\r\nlucky01: LED_MEZZ_FAULT: 0\r\nlucky01: LED_MEZZ_TP_FLT: 0\r\nlucky01: LED_SAS0_FAULT: 0\r\nlucky01: LED_SAS1_FAULT: 0\r\nlucky01: LED_SYS_ACT: 0\r\nlucky01: MAIN_POWER: 0\r\nlucky01: MEZZ_PRS: 0\r\nlucky01: P0V75_DDR3_P1: 0.7644 Volts\r\nlucky01: P0V75_DDR3_P2: 0.7644 Volts\r\nlucky01: P12V_BP: 11.948 Volts\r\nlucky01: P12V_CUR_SENS: 10.78 Amps\r\nlucky01: P1V05_ICH: 1.0486 Volts\r\nlucky01: P1V1_IOH: 1.078 Volts\r\nlucky01: P1V1_VCCP_P1: 1.0192 Volts\r\nlucky01: P1V1_VCCP_P2: 0.931 Volts\r\nlucky01: P1V1_VTT_P1: 1.1368 Volts\r\nlucky01: P1V1_VTT_P2: 1.1564 Volts\r\nlucky01: P1V2_SAS: 1.2152 Volts\r\nlucky01: P1V5_DDR3_P1: 1.5288 Volts\r\nlucky01: P1V5_DDR3_P1_IMN: 5.13 Amps\r\nlucky01: P1V5_DDR3_P2: 1.5386 Volts\r\nlucky01: P1V5_DDR3_P2_IMN: 14.25 Amps\r\nlucky01: P1V5_ICH: 1.5092 Volts\r\nlucky01: P1V8_IOH: 1.813 Volts\r\nlucky01: P1V8_P1: 1.7836 Volts\r\nlucky01: P1V8_P2: 1.7836 Volts\r\nlucky01: P1_PRESENT: 0\r\nlucky01: P1_TEMP_SENS: 39.5 C (103 F)\r\nlucky01: P1_THERMTRIP_N: 0\r\nlucky01: P2_PRESENT: 0\r\nlucky01: P2_TEMP_SENS: 37.5 C (100 F)\r\nlucky01: P2_THERMTRIP_N: 0\r\nlucky01: P3V3_SCALED: 3.2548 Volts\r\nlucky01: P3V_BAT_SCALED: 3.102 Volts\r\nlucky01: P5V_SCALED: 4.9405 Volts\r\nlucky01: POWER_ON_FAIL: 0\r\nlucky01: POWER_USAGE: 126 Watts (430 BTUs\/hr)\r\nlucky01: SAS0_FAULT: N\/A\r\nlucky01: SAS1_FAULT: N\/A\r\nlucky01: SEL_FULLNESS: 0\r\nlucky01: VR_P1_IMON: 1.75 Amps\r\nlucky01: VR_P2_IMON: 3.5 Amps<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>xCAT out of the box works on UCS. \u00a0Or UCS out of the box works with xCAT? Whichever way you look at it, it works. All of the cool things you can do with xCAT like provision nodes, KVM, vSphere, stateless computing, etc, can all be done with UCS. \u00a0In fact, you can even run&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/509"}],"collection":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=509"}],"version-history":[{"count":4,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/509\/revisions"}],"predecessor-version":[{"id":2778,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/509\/revisions\/2778"}],"wp:attachment":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}