注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

itoedr的it学苑

记录从IT文盲学到专家的历程

 
 
 

日志

 
 

OVS-vsctl中文版帮助说明  

2014-09-06 21:16:25|  分类: 虚拟网络 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Open vSwitch 命令
init                        如果尚未初始化,则初始化数据库
show                        显示数据库的概述内容
emer-reset                  重置状态

Bridge 命令

add-br BRIDGE                                    创建一个名为BRIDGE的网桥
add-br BRIDGE PARENT VLAN                        通过VLAN在PARENT上创建一个伪桥
del-br BRIDGE                                    删除BRIDGE和其上所有的端口
list-br                                          显示所有bridge的名字
br-exists BRIDGE                                 exit2 if BRIDGE does not exist
br-to-vlan BRIDGE                                显示存在于VLAN上的BRIDGE
br-to-parent BRIDGE                              显示BRIDGE的父桥
br-set-external-id BRIDGE KEY VALUE              setKEY on BRIDGE to VALUE
br-set-external-id BRIDGE KEY                    unsetKEY on BRIDGE
br-get-external-id BRIDGE KEY                    printvalue of KEY on BRIDGE
br-get-external-id BRIDGE                        listkey-value pairs on BRIDGE

 
Port 命令

一个接口就是一个port
list-ports BRIDGE                             显示在BRIDGE上的所有的port的名称
add-port BRIDGE PORT                          在BRIDGE上添加网络设备的PORT
add-bond BRIDGE PORT IFACE...                 从IFACE上添加在BRIDGE上的结合端口PORT
del-port [BRIDGE] PORT                        从BRIDGE上删除PORT (有可能被结合的)
port-to-br PORT                               显示包含PORT的网桥的名称

 接口命令

一个bond是多接口的
list-ifaces BRIDGE          显示所有在BRIDGE上接口的名称
iface-to-br IFACE           显示所有包含IFACE的桥的名称
 
控制器命令

get-controller BRIDGE                        显示BRIDGE的控制器名称
del-controller BRIDGE                        删除BRIDGE的控制器
set-controller BRIDGE TARGET...              给BRIDGE设置控制器
get-fail-mode BRIDGE                             显示失败模式的BRIDGE
del-fail-mode BRIDGE                             删除失败模式的BRIDGE
set-fail-mode BRIDGE MODE                        设置失败模式的BRIDGE为MODE
 
管理命令

get-manager                                      显示管理者
del-manager                                      删除管理者
set-manager TARGET...                            设置管理者列表为TARGET...
 
SSL 命令

get-ssl                                         显示SSL的配置
del-ssl                                         删除SSL的配置
set-ssl PRIV-KEY CERT CA-CERT           设置SSL的配置
 
开关命令

emer-reset                                      复位开关到好的状态
 
数据库命令

list TBL [REC]                                                   列出TBL中的记录(或者所有记录)
find TBL CONDITION...                                      列出TBL中满足CONDITION条件的记录
  getTBL REC COL[:KEY]                                  printvalues of COLumns in RECord in TBL
  setTBL REC COL[:KEY]=VALUE                    setCOLumn values in RECord in TBL
  addTBL REC COL [KEY=]VALUE                    add(KEY=)VALUE to COLumn in RECord in TBL
remove TBL REC COL [KEY=]VALUE                  remove(KEY=)VALUE from COLumn
  clearTBL REC COL                                                  clearvalues from COLumn in RECord in TBL
create TBL COL[:KEY]=VALUE                               createand initialize new record
destroy TBL REC                                                       deleteRECord from TBL
wait-until TBL REC [COL[:KEY]=VALUE]              waituntil condition is true

Potentially unsafe database commandsrequire --force option.

 选项
 --db=DATABASE                          连接数据库DATABASE
                                                       (默认为:unix:/var/run/openvswitch/db.sock)
 --no-wait                                        不要等待ovs-vswitched重置
  -t,--timeout=SECS                      等待ovs-vswitchd最多SECS秒
 --dry-run                                          不对数据库提交修改
 --oneline                                        准确的输出一行命令
 
日志记录选项
  -v,--verbose=[SPEC]                   设置日志记录的等级
  -v,--verbose                                  设置最大冗长等级
 --log-file[=FILE]                            启用日志记录到指定的文件FILE
                                                      (默认:/var/log/openvswitch/ovs-vsctl.log)
 --no-syslog                                    相当于--verbose=vsctl:syslog:warn

 
主动的数据库连接方法

 tcp:IP:PORT                           PORT在远程的IP
 ssl:IP:PORT                             SSLPORT在远程IP
  unix:FILE                               Unix域套接字命名的文件

被动的数据库连接方法:
ptcp:PORT[:IP]                          在IP上监听TCP的PORT
pssl:PORT[:IP]                          在IP上监听SSL的PORT
punix:FILE                                  监听在Unix域套接字文件

PKI设置
要求使用SSL
  -p,--private-key=FILE                私钥的文件FILE
  -c,--certificate=FILE                证书的私钥的文件FILE
  -C,--ca-cert=FILE                    CA证书的文件FILE

 其他选项

  -h,--help                                            显示帮助文件
  -V, --version                                      显示版本信息

****附英文帮助说明****
root@ubuntu1410:/home/lzdzhy# ovs-vsctl --help
ovs-vsctl: ovs-vswitchd management utility
usage: ovs-vsctl [OPTIONS] COMMAND [ARG...]

Open vSwitch commands:
  init                        initialize database, if not yet initialized
  show                        print overview of database contents
  emer-reset                  reset configuration to clean state

Bridge commands:
  add-br BRIDGE               create a new bridge named BRIDGE
  add-br BRIDGE PARENT VLAN   create new fake BRIDGE in PARENT on VLAN
  del-br BRIDGE               delete BRIDGE and all of its ports
  list-br                     print the names of all the bridges
  br-exists BRIDGE            exit 2 if BRIDGE does not exist
  br-to-vlan BRIDGE           print the VLAN which BRIDGE is on
  br-to-parent BRIDGE         print the parent of BRIDGE
  br-set-external-id BRIDGE KEY VALUE  set KEY on BRIDGE to VALUE
  br-set-external-id BRIDGE KEY  unset KEY on BRIDGE
  br-get-external-id BRIDGE KEY  print value of KEY on BRIDGE
  br-get-external-id BRIDGE  list key-value pairs on BRIDGE

Port commands (a bond is considered to be a single port):
  list-ports BRIDGE           print the names of all the ports on BRIDGE
  add-port BRIDGE PORT        add network device PORT to BRIDGE
  add-bond BRIDGE PORT IFACE...  add bonded port PORT in BRIDGE from IFACES
  del-port [BRIDGE] PORT      delete PORT (which may be bonded) from BRIDGE
  port-to-br PORT             print name of bridge that contains PORT

Interface commands (a bond consists of multiple interfaces):
  list-ifaces BRIDGE          print the names of all interfaces on BRIDGE
  iface-to-br IFACE           print name of bridge that contains IFACE

Controller commands:
  get-controller BRIDGE      print the controllers for BRIDGE
  del-controller BRIDGE      delete the controllers for BRIDGE
  set-controller BRIDGE TARGET...  set the controllers for BRIDGE
  get-fail-mode BRIDGE       print the fail-mode for BRIDGE
  del-fail-mode BRIDGE       delete the fail-mode for BRIDGE
  set-fail-mode BRIDGE MODE  set the fail-mode for BRIDGE to MODE

Manager commands:
  get-manager                print the managers
  del-manager                delete the managers
  set-manager TARGET...      set the list of managers to TARGET...

SSL commands:
  get-ssl                     print the SSL configuration
  del-ssl                     delete the SSL configuration
  set-ssl PRIV-KEY CERT CA-CERT  set the SSL configuration

Switch commands:
  emer-reset                  reset switch to known good state

Database commands:
  list TBL [REC]              list RECord (or all records) in TBL
  find TBL CONDITION...       list records satisfying CONDITION in TBL
  get TBL REC COL[:KEY]       print values of COLumns in RECord in TBL
  set TBL REC COL[:KEY]=VALUE set COLumn values in RECord in TBL
  add TBL REC COL [KEY=]VALUE add (KEY=)VALUE to COLumn in RECord in TBL
  remove TBL REC COL [KEY=]VALUE  remove (KEY=)VALUE from COLumn
  clear TBL REC COL           clear values from COLumn in RECord in TBL
  create TBL COL[:KEY]=VALUE  create and initialize new record
  destroy TBL REC             delete RECord from TBL
  wait-until TBL REC [COL[:KEY]=VALUE]  wait until condition is true
Potentially unsafe database commands require --force option.

Options:
  --db=DATABASE               connect to DATABASE
                              (default: unix:/var/run/openvswitch/db.sock)
  --no-wait                   do not wait for ovs-vswitchd to reconfigure
  --retry                     keep trying to connect to server forever
  -t, --timeout=SECS          wait at most SECS seconds for ovs-vswitchd
  --dry-run                   do not commit changes to database
  --oneline                   print exactly one line of output per command

Logging options:
  -vSPEC, --verbose=SPEC   set logging levels
  -v, --verbose            set maximum verbosity level
  --log-file[=FILE]        enable logging to specified FILE
                           (default: /var/log/openvswitch/ovs-vsctl.log)
  --syslog-target=HOST:PORT  also send syslog msgs to HOST:PORT via UDP
  --no-syslog             equivalent to --verbose=vsctl:syslog:warn

Active database connection methods:
  tcp:IP:PORT             PORT at remote IP
  ssl:IP:PORT             SSL PORT at remote IP
  unix:FILE               Unix domain socket named FILE
Passive database connection methods:
  ptcp:PORT[:IP]          listen to TCP PORT on IP
  pssl:PORT[:IP]          listen for SSL on PORT on IP
  punix:FILE              listen on Unix domain socket FILE
PKI configuration (required to use SSL):
  -p, --private-key=FILE  file with private key
  -c, --certificate=FILE  file with certificate for private key
  -C, --ca-cert=FILE      file with peer CA certificate

Other options:
  -h, --help                  display this help message
  -V, --version               display version information
  评论这张
 
阅读(151)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017