HyperV - WMI - root/virtualization - Where can I find the status of the Virtual NIC
hi,
in powershell script, i'm using wmiobject cmdlet find status of virtual nic (like enabled, disabled, failed etc) in "root\virtualization" namespace. tried following objects
* msvm_switchlanendpoint
* msvm_vlanendpoint
* msvm_switchport
non of object's show status of virtual nic. either "status" field has empty value or has predefined constants values (which never not changed @ all) being filled "2" etc.
ex :
creationclassname : msvm_switchlanendpoint
description : microsoft virtual lan endpoint
enableddefault : 2
enabledstate : 5
groupaddresses :
healthstate : 5
installdate :
lanid :
lantype :
macaddress : 020340506020
maxdatasize : 0
name : /device/{3f604d91-5e77-4f14-9a4c-3f3abdabdd1b}
nameformat : microsoft virtual device id
operationalstatus : {2}
otherenabledstate :
otherlantype :
othertypedescription : virtual ethernet
protocoliftype : 1
protocoltype :
requestedstate : 12
status :
statusdescriptions : {ok}
systemcreationclassname : msvm_computersystem
systemname : c
please let me know wmi object shows exact status of virtual nic.
in advance help.
regards,
prabu
in powershell script, i'm using wmiobject cmdlet find status of virtual nic (like enabled, disabled, failed etc) in "root\virtualization" namespace. tried following objects
* msvm_switchlanendpoint
* msvm_vlanendpoint
* msvm_switchport
non of object's show status of virtual nic. either "status" field has empty value or has predefined constants values (which never not changed @ all) being filled "2" etc.
ex :
creationclassname : msvm_switchlanendpoint
description : microsoft virtual lan endpoint
enableddefault : 2
enabledstate : 5
groupaddresses :
healthstate : 5
installdate :
lanid :
lantype :
macaddress : 020340506020
maxdatasize : 0
name : /device/{3f604d91-5e77-4f14-9a4c-3f3abdabdd1b}
nameformat : microsoft virtual device id
operationalstatus : {2}
otherenabledstate :
otherlantype :
othertypedescription : virtual ethernet
protocoliftype : 1
protocoltype :
requestedstate : 12
status :
statusdescriptions : {ok}
systemcreationclassname : msvm_computersystem
systemname : c
please let me know wmi object shows exact status of virtual nic.
in advance help.
regards,
prabu
the actual item looking still not clear.
you looking status of virtual nic.
however statement "please consider nic in external virtual network type of virtual machine" leads me believe looking different.
the "external virtual network" type of virtual switch , belongs hypervisor.
where nic descriptor port of virtual switch particular vm attached (the connection actually).
if query vm, find port attached query switch. not sure associations because have not attempted traverse all.
if attempting determine status of management interface of host - not under \virtualization (as these hypervisor entities) under \system (as parent partition / management os)
(if have associations straight off top of head)
sorry don't have entire namespace on top of head.
i discovered might helpful:
http://blogs.technet.com/howardhao/archive/2008/08/22/hyper-v-wmi-introduction.aspx
brian ehlert (hopefully have found useful)
you looking status of virtual nic.
however statement "please consider nic in external virtual network type of virtual machine" leads me believe looking different.
the "external virtual network" type of virtual switch , belongs hypervisor.
where nic descriptor port of virtual switch particular vm attached (the connection actually).
if query vm, find port attached query switch. not sure associations because have not attempted traverse all.
if attempting determine status of management interface of host - not under \virtualization (as these hypervisor entities) under \system (as parent partition / management os)
(if have associations straight off top of head)
sorry don't have entire namespace on top of head.
i discovered might helpful:
http://blogs.technet.com/howardhao/archive/2008/08/22/hyper-v-wmi-introduction.aspx
brian ehlert (hopefully have found useful)
Windows Server > Hyper-V
Comments
Post a Comment