命令:
ovsdb-client monitor Interface name,ofport,external_ids --format=json
运行效果:
[root@ostack1 ~]# ovsdb-client monitor Interface name,ofport,external_ids --format=json {"data":[["df11b1d5-e204-4c59-b32a-b281e3628a91","initial","int-br-eth1",1,["map",[]]],["36a51535-33b3-4627-adc0-e5280a7a17be","initial","tap1ee2bfb4-ae",5,["map",[["attached-mac","fa:16:3e:95:62:eb"],["iface-id","1ee2bfb4-ae1e-4f32-bea1-a7d66854c0d5"],["iface-status","active"],["vm-id","324bc38b-df6c-4ecc-a6db-310ea67c4314"]]]],["e9ac47b2-8136-4fa2-a0eb-d01d1c5275d1","initial","br-eth1",65534,["map",[]]],["e66ba2db-0e71-40ea-af9c-141085d1ee91","initial","vnet1",3,["map",[["attached-mac","52:54:00:61:9c:cf"],["iface-id","0128c675-0d9b-45d0-b11d-61e0da25b698"],["iface-status","active"],["vm-id","e591838d-f9cb-4858-801d-56af4e5eae51"]]]],["32994660-bfd7-43c4-8d75-6400f0ad16a1","initial","tap26e1a0f5-64",2,["map",[["attached-mac","fa:16:3e:55:0e:db"],["iface-id","26e1a0f5-6431-4bd8-b3f6-e643537eb8d7"],["iface-status","active"]]]],["1af8aa2c-176c-42fa-be20-f1245c85dd7d","initial","br-int",65534,["map",[]]],["c827276e-b3b4-4226-84ff-fe5f45b945b2","initial","phy-br-eth1",2,["map",[]]],["c8850ab7-d083-47bb-96aa-51505734d56e","initial","ens224",1,["map",[]]]],"headings":["row","action","name","ofport","external_ids"]}