VMware {code} Community
akblackwel
Contributor
Contributor
Jump to solution

Permissions needed to connect to esxi with perl sdk

I've been trying to user the perl scripts for some monitoring. I have 1 ESXi 5.1 server that I can connect to directly and the script has no problem connecting.

I have another 3 esxi servers that are all connected to a vsphere server.

On the single server, I can connect directly to the esxi server with vsphere client no problems.

On the vsphere server, I can only connect to the vsphere server, I cannot connect directly to the esxi hosts. (http, https, ssh, etc..)

I believe this is the issue I'm having with the perl sdk. I have a SSO login that I can user to log into the vsphere server, but those permissions will not get me access tot he esxi host.

Anyone have any thoughts on how to resolve this issue?

Thanks

Reply
0 Kudos
1 Solution

Accepted Solutions
abhilashhb
VMware Employee
VMware Employee
Jump to solution

I'm really not sure about scripting and stuff but if you need to create local users in ESXi host, you need to login into the host directly then go to local users and groups tab and create the users.

maxresdefault.jpg

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

View solution in original post

Reply
0 Kudos
3 Replies
abhilashhb
VMware Employee
VMware Employee
Jump to solution

I'm guessing, by vSphere server , you mean vCenter Server.

The vCenter Server works on different authentication. It can authenticate using its local accounts or AD or SSo.

But ESXi servers can be accessed only using root users. So accessing ESXi directly is totally different from accessing vCenter.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

Reply
0 Kudos
akblackwel
Contributor
Contributor
Jump to solution

OK,

How do I go about creating a non root user that can access the sdk via

https://localhost/sdk/vimService.wsdl

for each of the 3 esxi host I have?

Thanks again

Reply
0 Kudos
abhilashhb
VMware Employee
VMware Employee
Jump to solution

I'm really not sure about scripting and stuff but if you need to create local users in ESXi host, you need to login into the host directly then go to local users and groups tab and create the users.

maxresdefault.jpg

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

Reply
0 Kudos