adding esx hosts to vDS

240 views
Skip to first unread message

cisco SJ

unread,
Jan 23, 2012, 1:20:49 PM1/23/12
to pysphere
does pysphere support adding esx hosts to vDS and removing them.

i'm planning to use pysphere in my work and evaluating it.

Seba

unread,
Jan 24, 2012, 11:03:35 AM1/24/12
to pysp...@googlegroups.com, cisco SJ
Hi,

  Virtually pysphere supports anything you can do from the vSphere Client, some operations might be difficult to implement though.

  Generally, when I want to implement in pysphere a complex method that is hard to understand from the vsphere sdk documentation, I run the VIClient with logging enabled, perform the operation manually, and analyze the requests and responses traffic generated, so as to replicate that behavior from pysphere.

  As the VIClient is constantly generating lot of traffic I remove the log files right before perfoming the manual operation I wish to analyze, and copy the generated log file to a separete file right after it finishes. That way I can narrow down the traffic to the part I'm insterested in.

  Sadly I don't have a virtual center test environment where I can test vDS operations. But if it is ok with you I can use your help and implement that together. In that case I would need you to send me that traffic log.

This is how it is done:

1) Run the VMWare vSphere client with these paremeters:

VpxClient.exe -log +n

2) From the vSphere Client complete the wizard of the operation you wish to implement with pysphere (e.g. add/remove a host to a virtual distributed switch), but do not finish the wizard (i.e. don't click the last 'OK' or 'Finish' button)

3) Go to: C:\Users\[username]\AppData\Local\VMware\vpx and remove all the .log files

4) Finish the wizard from step 2

5) As soon as the operation finishes, Copy the new .log file created to a separate file.

If you wish, edit that log file and remove any confidencial information you don't want to reveal before sending it to me.

Thanks!

Sebastian.

2012/1/23 cisco SJ

Max

unread,
Apr 12, 2012, 2:56:02 AM4/12/12
to pysp...@googlegroups.com
Hi, Seba:
first, thanks for all your hard work and bring pysphere to us.

I'm new to pysphere and also looking for automating vDS feature, more specifically in VMware + cisco Nexus 1000v.
as I understand that N1K will push port profile to vCenter and represented as port group which can be assigned to VM.
can we just use it as a normal port group to create the new VM using pysphere?

Thanks.

Max

Seba

unread,
Apr 13, 2012, 8:57:33 PM4/13/12
to pysp...@googlegroups.com, Max
Hi Max!

    To be honest, I've got no idea if you can use it as normal port group. As a matter of fact, I'm not expert an expert at VMWare at all. I'm just a QA guy and I came up with pysphere when I needed to automate tests using our virtual infrastructure.

   I'm really learning a lot from the questions being post in this group. Generally when someone asks something I don´t know, I go through forums and documentation until I figure out how to implement it.

  Sadly, I lack a test environment with vCenter (I can't play with the production servers at the company I work for), and AFAIK vDS is only available for vCenter (not esx).

  What I'm pretty sure about is that if you manage to configure it from the VI Client, then we can replicate the same using pysphere.
  
  Have you been able to get it working using the VI Client?

Kind regards,

Sebastian

2012/4/12 Max <fly...@gmail.com>

zhaoyang li

unread,
Apr 18, 2012, 2:10:02 AM4/18/12
to Seba, pysp...@googlegroups.com
hi, Seba:
I guess we can use this object for vDS port group assignment.
I'm planning to setup vCenter + Nexus 1000v Env. we can take a closer look then.

Cheers.
Max

Managed Object - DistributedVirtualSwitch

Reply all
Reply to author
Forward
0 new messages