VMware Cloud Community
MikeErter
Enthusiast
Enthusiast
Jump to solution

Running commands in vMA

I have vMA up and have added a test host to it using vifp addserver. 

How does one then run esxcli and vim-cmd type commands against hosts using the vMA?


Thanks!

Tags (3)
Reply
0 Kudos
1 Solution

Accepted Solutions
dsohayda
Enthusiast
Enthusiast
Jump to solution

you should be able to use the vifptarget command to set the host as your target so you won't have to type in the credentials each time.

vifptarget -set hostname

Then you can issue commands directly to that host.

in which case this poster will be helpful

http://blogs.vmware.com/vsphere/files/2012/09/esxi51-poster.png

otherwise you would just issue the command and specify the host after the command;

http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vma.doc_50%2Fvima_ref.5.4.html

obviously it's a lot easier if you add it as a target and run commands to it that way.

View solution in original post

Reply
0 Kudos
2 Replies
dsohayda
Enthusiast
Enthusiast
Jump to solution

you should be able to use the vifptarget command to set the host as your target so you won't have to type in the credentials each time.

vifptarget -set hostname

Then you can issue commands directly to that host.

in which case this poster will be helpful

http://blogs.vmware.com/vsphere/files/2012/09/esxi51-poster.png

otherwise you would just issue the command and specify the host after the command;

http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vma.doc_50%2Fvima_ref.5.4.html

obviously it's a lot easier if you add it as a target and run commands to it that way.

Reply
0 Kudos
MikeErter
Enthusiast
Enthusiast
Jump to solution

Thanks a lot!

Reply
0 Kudos