addvSwitchWSecurityPolicy.pl

Version 1

    Adding a vSwitch with Security Policy such as (allowPromiscuous,forgedTransmits,macChanges) along with other vSwitch parameters (not available by default with esxcfg-vswitch -A vSwitchX)

     

    Sample Execution:

     

    [vi-admin@simplejack.primp-industries.com]$ ./addvSwitchWSecurityPolicy.pl --server simplejack.primp-industries.com --username root --ap 1 --ft 0 --mc 1 --ports 256 --vswitch_name vSwitch2003
    Enter password: 
    
    Adding new vSwitch: "vSwitch2003" with the following conf: 
         [allowPromiscuous 1]
         [forgedTransmits 0]
         [macChanges 1]
         [ports 256]