Join us for a virtual Nutanix User Group meeting with Jarian Gibson as he covers Nutanix Cloud Clusters (NC2) on Azure and AWS with Citrix. <\/span><\/p>

Jarian will take a deep dive into NC2 on Azure architecture and Citrix on NC2 on Azure\u00a0that helps you strengthen your business continuity and disaster recovery position. He\u2019ll also provide the latest updates for NC2 on AWS.<\/span><\/p>

Plus, we're\u00a0giving away a Nutanix suitcase to one lucky winner!\u00a0Opt-in when you register\u00a0to be entered to win.\u00a0<\/p>","author":{"id":113632,"url":"\/members\/karlie-beil-113632","name":"Karlie Beil","avatar":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/icon\/200x200\/1581aab3-bcf6-49f4-b2fb-3d11e8c010dc.png","userTitle":"Community Manager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Community Manager","color":"#0873ba"},"userLevel":4},"type":"Webinar","url":"https:\/\/next.nutanix.com\/events\/global-nug-nc2-on-azure-and-aws-with-citrix-151","image":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/attachment\/f9693b5b-436b-427a-9b98-531b4040ff24_thumb.png","location":"","startsAt":1678298400,"endsAt":1678302000,"contentType":"event","attendees":[],"attendeeCount":0,"isLoggedInUserAttendee":false,"createdAt":"1675974969"},"phrases":{"Forum":{"{n} year|{n} years":"{n} year|{n} years","{n} month|{n} months":"{n} month|{n} months","{n} day|{n} days":"{n} day|{n} days","{n} hour|{n} hours":"{n} hour|{n} hours","{n} minute|{n} minutes":"{n} minute|{n} minutes","just":"just now","{plural} ago":"{plural} ago"}}}">

解决了

通过Ansible在CVM上运行SSH命令

  • 2019年6月18日
  • 4个答复
  • 1950年的观点

Userlevel 1
徽章 +2
你好,



只是想知道通过Ansible或其他非交互式会话工具运行CVM命令是否有什么特别之处?Ansible PING模块工作正常,但是当我开始使用Nutanix特定命令时,我会出现错误,告诉我“不存在此类文件”。我正在运行的命令是“群集状态”和“ ncli rsyslog-config get-status”



这些显然在常规的互动会议中起作用,但不适合。我是否缺少路径变量声明或其他内容?这些命令仅通过交互式会话可用(甚至是事物)吗?



谢谢



更新:在Linux上比我说的更好的同事说,该配置文件可能没有加载相同,因此我需要完全填写所有命令。因此,现在我正在尽力找到它们并以这种方式运行它们。到目前为止,一切都很好。



/home/nutanix/cluster/bin/cluster状态

该主题已关闭以供评论

4个答复

您可以提供剧本样本吗?
Userlevel 1
徽章 +2
@sca1178



https://github.com/ad-code/automation/blob/master/ansible/nutanix_cluster_baseline/tasks/configure_cluster/syslog_config.yml



那是我的Syslog任务列表。
UserLevel 2
徽章 +4
@itguyadam

我已经从这条路开始,几乎逐字了解您在那里的代码。感谢您将其发布在Github中。它帮助我验证了我们在这个领域已经做的工作​​。

这是一个很好的例子,说明如何在Nutanix平台中使用Ansible。我们还添加了CVM密码更改为构建/所需状态。不幸的是,我无法公开发布该代码。
Userlevel 1
徽章 +2
谢谢 @rhunt我很高兴听到我并不是唯一一个试图为集群创建所需的状态工具的人。我也很高兴听到我创造的东西并不是那么疯狂,以至于对任何人都没有任何意义
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. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu