Automation

 View Only
  • 1.  content of PhysicalNicIpHint Subnet

    Posted Jun 26, 2008 02:27 PM

    Hello,

    I am trying to obtain all Vlan seen by physical NIC on my ESX.

    I tried this for one of my server and for one physical card : vmnic4

    $view=get-view -moref (get-vmhost 10.179.100.100).id

    $net=get-view -moref $view.configmanager.networksystem

    $pnhi=$net.QueryNetworkHint("vmnic4")

    After that... I see this result :

    Device : vmnic4

    Subnet : {151, 150, 511, 703...}

    Network :

    ConnectedSwitchPort :

    DynamicType :

    DynamicProperty :

    Impossible to access to the content of Subnet field... It's frustrating !

    If you have any Id how to see all Subnets I am interested



  • 2.  RE: content of PhysicalNicIpHint Subnet

    Broadcom Employee
    Posted Jun 26, 2008 04:34 PM

    Hi,

    Did you try

    $pnhi[0].subnet  
    

    Note that QueryNetworkHint method returns array and in your case its array with 1 element that powershell outputs as result.

    Regards,

    Yasen



  • 3.  RE: content of PhysicalNicIpHint Subnet

    Posted Jun 26, 2008 04:39 PM

    I dit it but as I lost my session I couldn't have the result...

    Shame on me !

    Thks for your help

    ben