Quantcast
Channel: VMware Communities : Popular Discussions - vSphere Management Assistant (vMA)
Viewing all articles
Browse latest Browse all 25377

vMA scripting wonders

$
0
0

Ok, so I have been working on scripting from the vMA.  I am pretty familiar with what you can and cannot do with it, but this is my first attempt at scripting a complete configuration.  One thing I am having an issue with seems like a simple concept, but is stalling.  For example, 2 hosts are already added to the vMA.  When I try something simple like:

 

#!/bin/bash

 

vifptarget -s esx1

esxcfg-vswitch -L vmnic1 vSwitch0

vifptarget -s esx2

esxcfg-vswitch -L vmnic1 vSwitch0

 

What happens is that I still get asked for username and password.  If I have already vifpassed to esx1 then the command runs (even though i get weird response about not being to find vifptarget), twice on esx1 I might add.

 

Is there something I don't know that is required when scripting with vifpass?  I thought it sounded simple to script with the changing of several hosts.


Viewing all articles
Browse latest Browse all 25377

Trending Articles