{"id":891,"date":"2018-01-24T12:02:33","date_gmt":"2018-01-24T11:02:33","guid":{"rendered":"https:\/\/vblog.hochsticher.de\/?p=891"},"modified":"2018-01-24T19:45:44","modified_gmt":"2018-01-24T18:45:44","slug":"configure-huawei-ultrapath-with-powercli","status":"publish","type":"post","link":"https:\/\/vblog.hochsticher.de\/?p=891","title":{"rendered":"Configure Huawei Ultrapath with PowerCli"},"content":{"rendered":"<p>The last days we got two new All-Flash Storage Systems. These systems can present LUNs in a Metro-Cluster fashion.<\/p>\n<p>So I got the challenge to configure the Storage Plugin UltraPath from Huawei. In the manual from Huawei is explained how to configure the settings with esxcli on the ESXi-Host.<\/p>\n<p>That&#8217;s fine, but not enough \ud83d\ude09 We want to configure this with PowerCli to easily manage more than one Host.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:ps decode:true  \">#get esxcli\r\n$esxcli2 = Get-ESXCLI -VMHost (Get-VMhost MyHost-001) -V2\r\n\r\n#show known diskarrays \r\n#the corresponding esxcli command is = \"esxcli upadm show diskarray\"\r\n$esxcli2.upadm.show.diskarray.Invoke()\r\n\r\n#show ulrapath configuration \r\n#the corresponding esxcli command is = \"esxcli upadm show upconfig\" \r\n$esxcli2.upadm.show.upconfig.Invoke()\r\n\r\n\r\n#create arguments \r\n#set working mode to priority \r\n#and \r\n#set primary array to 0 or 1 \r\n#the corresponding esxcli command is = \"esxcli upadm set hypermetro workingmode -m priority -p 0\" \r\n$arguments = $esxcli2.upadm.set.hypermetro.workingmode.CreateArgs() \r\n$arguments.mode = \"priority\" \r\n$arguments.primaryarrayid =\"0\" \r\n$esxcli2.upadm.set.hypermetro.workingmode.Invoke($arguments)\r\n<\/pre>\n<p><!--more--><\/p>\n<p><em>The outprints look like this:<\/em><\/p>\n<!-- default-view.php -->\n<div\n\tclass=\"ngg-galleryoverview default-view  ngg-ajax-pagination-none\"\n\tid=\"ngg-gallery-dfe2a3579e7a1b9ac34fdd9c61e4eb87-1\">\n\n\t\t<!-- Thumbnails -->\n\t\t\t\t<div id=\"ngg-image-0\" class=\"ngg-gallery-thumbnail-box \" >\n\t\t\t\t        <div class=\"ngg-gallery-thumbnail\">\n            <a href=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/set-arguments.png\"\n               title=\"\"\n               data-src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/set-arguments.png\"\n               data-thumbnail=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/thumbs\/thumbs_set-arguments.png\"\n               data-image-id=\"90\"\n               data-title=\"set-arguments\"\n               data-description=\"\"\n               data-image-slug=\"set-arguments\"\n               class=\"ngg-fancybox\" rel=\"dfe2a3579e7a1b9ac34fdd9c61e4eb87\">\n                <img\n                    title=\"set-arguments\"\n                    alt=\"set-arguments\"\n                    src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/thumbs\/thumbs_set-arguments.png\"\n                    width=\"240\"\n                    height=\"95\"\n                    style=\"max-width:100%;\"\n                \/>\n            <\/a>\n        <\/div>\n\t\t\t\t\t\t\t<\/div> \n\t\t\t\n\t\t\t\t<div id=\"ngg-image-1\" class=\"ngg-gallery-thumbnail-box \" >\n\t\t\t\t        <div class=\"ngg-gallery-thumbnail\">\n            <a href=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/show-diskarray.jpg\"\n               title=\"\"\n               data-src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/show-diskarray.jpg\"\n               data-thumbnail=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/thumbs\/thumbs_show-diskarray.jpg\"\n               data-image-id=\"91\"\n               data-title=\"show-diskarray\"\n               data-description=\"\"\n               data-image-slug=\"show-diskarray\"\n               class=\"ngg-fancybox\" rel=\"dfe2a3579e7a1b9ac34fdd9c61e4eb87\">\n                <img\n                    title=\"show-diskarray\"\n                    alt=\"show-diskarray\"\n                    src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/thumbs\/thumbs_show-diskarray.jpg\"\n                    width=\"240\"\n                    height=\"140\"\n                    style=\"max-width:100%;\"\n                \/>\n            <\/a>\n        <\/div>\n\t\t\t\t\t\t\t<\/div> \n\t\t\t\n\t\t\t\t<div id=\"ngg-image-2\" class=\"ngg-gallery-thumbnail-box \" >\n\t\t\t\t        <div class=\"ngg-gallery-thumbnail\">\n            <a href=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/show-upconfig.jpg\"\n               title=\"\"\n               data-src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/show-upconfig.jpg\"\n               data-thumbnail=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/thumbs\/thumbs_show-upconfig.jpg\"\n               data-image-id=\"92\"\n               data-title=\"show-upconfig\"\n               data-description=\"\"\n               data-image-slug=\"show-upconfig\"\n               class=\"ngg-fancybox\" rel=\"dfe2a3579e7a1b9ac34fdd9c61e4eb87\">\n                <img\n                    title=\"show-upconfig\"\n                    alt=\"show-upconfig\"\n                    src=\"https:\/\/vblog.hochsticher.de\/wp-content\/gallery\/ultrapath\/thumbs\/thumbs_show-upconfig.jpg\"\n                    width=\"240\"\n                    height=\"160\"\n                    style=\"max-width:100%;\"\n                \/>\n            <\/a>\n        <\/div>\n\t\t\t\t\t\t\t<\/div> \n\t\t\t\n\t\n\t<br style=\"clear: both\" \/>\n\n\t\n\t\t<!-- Pagination -->\n\t<div class='ngg-clear'><\/div>\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>The last days we got two new All-Flash Storage Systems. These systems can present LUNs in a Metro-Cluster fashion. So I got the challenge to configure the Storage Plugin UltraPath from Huawei. In the manual from Huawei is explained how to configure the settings with esxcli on the ESXi-Host. That&#8217;s fine, but not enough \ud83d\ude09 We want to configure this with PowerCli to easily manage more than one Host. &nbsp; #get esxcli $esxcli2 = Get-ESXCLI -VMHost (Get-VMhost MyHost-001) -V2 #show&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/vblog.hochsticher.de\/?p=891\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":627,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[15,4,7],"tags":[],"class_list":["post-891","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-huawei","category-powercli","category-vsphere"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=891"}],"version-history":[{"count":12,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/891\/revisions"}],"predecessor-version":[{"id":914,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/891\/revisions\/914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/media\/627"}],"wp:attachment":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}