????2013?1?8??????????
????????????
Tagging VMkernel Traffic Types Using ESXCLI 5.1
http://blogs.vmware.com/vsphere/2012/12/tagging-vmkernel-traffic-types-using-esxcli-5-1.html
????esxcli ????? VMkernel ???(vmk0, vmk1...)?
?vMotion ???FT ??... ?????????????????
?Tag?????? vSphere5.1 ? vCenter ???????????????????????
??? ESXi ???VMKernel ???? Tag ???
vSphere Client ? API ?????????????????
ESXi 5.1 ????esxcli ??????????????????????
(esxcli ??version 5.1 ???)
?????vMotion ? FT ???????????
?????????????? vMA ????
vCenter ?????ESXi (IP ?????192.168.5.61)????????????
ESXi ????????????????????????????????????
vi-admin@localhost:~> export VI_USERNAME=root
vi-admin@localhost:~> export VI_PASSWORD=******
vi-admin@localhost:~> esxcli --server 192.168.5.61 system version get
Product: VMware ESXi
Version: 5.1.0 ?ESXi ??????? 5.1 ???
Build: Releasebuild-838463
Update: 0
??????????????
vi-admin@localhost:~> esxcli --server 192.168.5.61 network ip interface tag get -i vmk0
Tags: Management ??????????????????????
vi-admin@localhost:~> esxcli --server 192.168.5.61 network ip interface tag get -i vmk1
Tags: Management
1??????????1?????????????
vmk1 ???vMotion????Fault Tolerance ????(FT)?????????
vi-admin@localhost:~> esxcli --server 192.168.5.61 network ip interface tag add -i vmk1 -t VMotion
vi-admin@localhost:~> esxcli --server 192.168.5.61 network ip interface tag get -i vmk1
Tags: Management, VMotion ?vMotion???????vi-admin@localhost:~> esxcli --server 192.168.5.61 network ip interface tag add -i vmk1 -t faultToleranceLogging
vi-admin@localhost:~> esxcli --server 192.168.5.61 network ip interface tag get -i vmk1
Tags: Management, VMotion, faultToleranceLogging ?FT???????
?????GUI(vSphere Client)? vmk1 ??????????
esxcli ????????????????????????????
????remove ??????1??????????
FT ???????????
vi-admin@localhost:~> esxcli --server 192.168.5.61 network ip interface tag remove -i vmk1 -t faultToleranceLogging
vi-admin@localhost:~> esxcli --server 192.168.5.61 network ip interface tag get -i vmk1
Tags: Management, VMotion
???VMkernel ??????????????