- 社区
- 搜索
未回答问题
1095题目
/sr\/local\/nutanix\/bin\/croble您想继续吗?(I agree\/[N]):-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------","url":"\/how-it-works-22\/how-to-stop-the-nutanix-cluster-with-invoke-vmscript-38840?postid=55161#post55161","creationDate":"2020-12-05T12:40:24+0000","relativeCreationDate":"1 year ago"},"isTopicUnread":true,"privateId":23378,"id":38840,"type":"post","hasCurrentUserLiked":false,"isSticky":false,"features":[{"id":"isQuestion","label":"vraag"}],"forum":{"id":22,"isIdeation":false,"url":"\/how-it-works-22","title":"How It works","description":"Have questions about how the Nutanix Platform works?Looking to get started - start here!"},"url":"\/how-it-works-22\/how-to-stop-the-nutanix-cluster-with-invoke-vmscript-38840","title":"How to Stop the Nutanix Cluster with Invoke-VMScript","lastPost":{"id":55237,"author":{"id":104273,"url":"\/members\/sudhir9-104273","name":"Sudhir9","avatar":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/icon\/200x200\/d9baf06c-76d4-4a6b-8568-b637ccc658bf.png","userTitle":"Moderator","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Moderator","color":"#0873ba"},"userLevel":2},"content":"@Clifford Anup\u00a0 I am not sure about this script you have shared however we already have the command to stop all VMs except CVMs from any CVM, and after that, you can run cluster stop.\u00a0\u00a0https:\/\/portal.nutanix.com\/page\/documents\/details?targetId=NX3060G7-Ear-Replacement-AHV:app-cluster-stop-ahv-node-shutdown-t.html\u00a0There are a couple of old community discussion as well on either stoping all VMs in a cluster ( AHV)\u00a0https:\/\/next.nutanix.com\/how-it-works-22\/script-to-shutdown-all-vms-with-nutanix-clone-37811https:\/\/next.nutanix.com\/how-it-works-22\/script-to-shutdown-all-vms-with-nutanix-clone-37811","url":"\/how-it-works-22\/how-to-stop-the-nutanix-cluster-with-invoke-vmscript-38840?postid=55237#post55237","creationDate":"2020-12-09T12:06:41+0000","relativeCreationDate":"1 year ago"},"lastReply":{"id":55237,"author":{"id":104273,"url":"\/members\/sudhir9-104273","name":"Sudhir9","avatar":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/icon\/200x200\/d9baf06c-76d4-4a6b-8568-b637ccc658bf.png","userTitle":"Moderator","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Moderator","color":"#0873ba"},"userLevel":2},"content":"@Clifford Anup\u00a0 I am not sure about this script you have shared however we already have the command to stop all VMs except CVMs from any CVM, and after that, you can run cluster stop.\u00a0\u00a0https:\/\/portal.nutanix.com\/page\/documents\/details?targetId=NX3060G7-Ear-Replacement-AHV:app-cluster-stop-ahv-node-shutdown-t.html\u00a0There are a couple of old community discussion as well on either stoping all VMs in a cluster ( AHV)\u00a0https:\/\/next.nutanix.com\/how-it-works-22\/script-to-shutdown-all-vms-with-nutanix-clone-37811https:\/\/next.nutanix.com\/how-it-works-22\/script-to-shutdown-all-vms-with-nutanix-clone-37811","url":"\/how-it-works-22\/how-to-stop-the-nutanix-cluster-with-invoke-vmscript-38840?postid=55237#post55237","creationDate":"2020-12-09T12:06:41+0000","relativeCreationDate":"1 year ago"},"numberOfUnreadReplies":0,"numberOfReplies":1,"numberOfLikes":0,"relevantPost":{"id":55161,"author":{"id":108632,"url":"\/members\/clifford-anup-108632","name":"Clifford Anup","avatar":"","userTitle":"Scout","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Scout","color":"#000000"},"userLevel":0},"content":"Hello,I\u2019m trying to stop the cluster before shutting down and powering off the CVM Nodes.I\u2019m using the following command to attempt to stop the cluster, however, it doesn\u2019t seem to work, the command and the output is pasted, please tell me what am I doing wrong?$nutanixclusterstatus = Invoke-VMScript -VM $cvms[0] -GuestCredential $nutanixlogincreds -ScriptText {\/usr\/bin\/echo 'I agree' | \/usr\/local\/nutanix\/cluster\/bin\/cluster stop} -ScriptType Bash\u00a0ScriptOutput-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| \u00a0\/usr\/bin\/echo: \/usr\/bin\/echo: cannot execute binary file| \u00a02020-12-05 04:30:17 INFO zookeeper_session.py:143 cluster is attempting to connect to Zookeeper| \u00a02020-12-05 04:30:17 INFO cluster:2716 Executing action stop on SVMs 10.65.241.247,10.65.241.248,10.65.241.249,10.65.241.246| \u00a02020-12-05 04:30:17 WARNING genesis_utils.py:279 Deprecated: use util.cluster.info.get_node_uuid() instead| \u00a02020-12-05 04:30:17 INFO zookeeper_session.py:143 cluster is attempting to connect to Zookeeper| \u00a02020-12-05 04:30:17 INFO cluster:2763|| \u00a0***** CLUSTER NAME *****| \u00a0lab-prism01|| \u00a02020-12-05 04:30:17 ERROR cluster:2900 Failed to execute action stop.错误(EOF读行) trackback:#\\u00a0Track(最近调用最晚):\\una0\u00a0File\"\/sr\/Local\/Nutanix\/Croduction\/Bin\/Croduce
/sr\/local\/nutanix\/bin\/croble您想继续吗?(I agree\/[N]):-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------","url":"\/how-it-works-22\/how-to-stop-the-nutanix-cluster-with-invoke-vmscript-38840?postid=55161#post55161","creationDate":"2020-12-05T12:40:24+0000","relativeCreationDate":"1 year ago"},"numberOfViews":282,"contentType":"question","featuredImage":"","publicLabel":"","category":{"url":"\/all-about-nutanix-5","categoryId":5,"title":"All About Nutanix","metaRobots":"index, follow","type":0},"lastPostId":"55237"}, "isActivityPage": true, "showUnsubscribeBtn": null, "attachmentCdn": "https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/attachment\/", "isGuest": true, "csrfToken": "800fe2d7867e191f92f9b87cc74d1f857ed8e1b6", "hideCategoryMetadata": false, "phrases": { "Forum": { "thread.unsubscribe": "Unsubscribe", "vraag": "Question", "beantwoord": "Solved" } } }'>
VM, right-click on the template and choose 'Clone', in the wizard window I can set 'Number of Clones', 'Prefix Name' and in the Custom Script put something like:#cloud-configrepo_update: truerepo_upgrade: allhostname: cos8-testfqdn: cos8-test.localpassword: centoschpasswd: { expire: False }ssh_pwauth: TrueIn that case I will have 'n' VMS with hostname 'cos8-test' but I want to have 'n' VMs with names cos8-test-01,.., cos8-test-'n'.","url":"\/prism-for-infra-and-it-ops-26\/setting-hostnames-while-cloning-template-38834?postid=55144#post55144","creationDate":"2020-12-04T11:23:00+0000","relativeCreationDate":"1 year ago"},"lastReply":{"id":55144,"author":{"id":108613,"url":"\/members\/serhiy-108613","name":"Serhiy","avatar":"","userTitle":"Voyager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Voyager","color":"#000000"},"userLevel":0},"content":"Hi @Neel Kotak\u00a0,Let's say I have an prepared template (some Linux with a bundle of software) and want to create \u2018n\u2019 virtual machines.So I go to the Prism -> VM, right-click on the template and choose 'Clone', in the wizard window I can set 'Number of Clones', 'Prefix Name' and in the Custom Script put something like:#cloud-configrepo_update: truerepo_upgrade: allhostname: cos8-testfqdn: cos8-test.localpassword: centoschpasswd: { expire: False }ssh_pwauth: TrueIn that case I will have 'n' VMS with hostname 'cos8-test' but I want to have 'n' VMs with names cos8-test-01,.., cos8-test-'n'.","url":"\/prism-for-infra-and-it-ops-26\/setting-hostnames-while-cloning-template-38834?postid=55144#post55144","creationDate":"2020-12-04T11:23:00+0000","relativeCreationDate":"1 year ago"},"numberOfUnreadReplies":0,"numberOfReplies":2,"numberOfLikes":0,"relevantPost":{"id":55141,"author":{"id":108613,"url":"\/members\/serhiy-108613","name":"Serhiy","avatar":"","userTitle":"Voyager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Voyager","color":"#000000"},"userLevel":0},"content":"Hello,\u00a0Is there any way to use variables for hostnames while cloning VMs from template with Prism (Custom script\/cloud init)?For instance can I set hostname equal to VM name (prefix name + index)?\u00a0brg,Serhiy.\u00a0","url":"\/prism-for-infra-and-it-ops-26\/setting-hostnames-while-cloning-template-38834?postid=55141#post55141","creationDate":"2020-12-04T09:08:15+0000","relativeCreationDate":"1 year ago"},"numberOfViews":171,"contentType":"question","featuredImage":"","publicLabel":"","category":{"url":"\/all-about-nutanix-5","categoryId":5,"title":"All About Nutanix","metaRobots":"index, follow","type":0},"lastPostId":"55144"}, "isActivityPage": true, "showUnsubscribeBtn": null, "attachmentCdn": "https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/attachment\/", "isGuest": true, "csrfToken": "800fe2d7867e191f92f9b87cc74d1f857ed8e1b6", "hideCategoryMetadata": false, "phrases": { "Forum": { "thread.unsubscribe": "Unsubscribe", "vraag": "Question", "beantwoord": "Solved" } } }'>
输入用户名或电子邮件地址发邮件指令重置密码
Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies.可选择要接受的cookie我们需要基本cookie使网站工作, 因此这是最小选择
更多了解cookie.Q/a>
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
函数+分析+社交媒体+嵌入视频
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
函数+分析+社交媒体+嵌入视频