As mentioned in the ovs-appctl man page, you have to look at the man page for 
the daemon:

       Open  vSwitch  daemons  accept  certain  commands at runtime to control
       their behavior and query their settings.  Every daemon accepts a common
       set  of  commands documented under COMMON COMMANDS below.  Some daemons
       support  additional  commands  documented  in   their   own   manpages.
       ovs-vswitchd in particular accepts a number of additional commands doc‐
       umented in ovs-vswitchd(8).

Here's the relevant section from the ovs-vswitchd man page:

       dpif/show
              Prints  a  summary of configured datapaths, including statistics
              and a list of connected ports.  The  port  information  includes
              the  OpenFlow  port  number, datapath port number, and the type.
              (The local port is identified as OpenFlow port 65534.)

--Justin


> On Jun 30, 2015, at 11:22 AM, Xuemei Liu <lxuemei3...@gmail.com> wrote:
> 
> Hi, Justin,
> 
> Thanks for providing these commands, and "ovs-appctl dpif/show" works perfect 
> for me. However, I cannot find that command on 
> http://openvswitch.org/support/dist-docs/ovs-appctl.8.txt or 
> http://manpages.ubuntu.com/manpages/precise/man8/ovs-appctl.8.html. Thus, how 
> do you know the command? any manual?
> 
> Thanks,
> Xuemei
> 
> On Tue, Jun 30, 2015 at 9:53 AM, Justin Pettit <jpet...@nicira.com> wrote:
> It's in quite a few places.  The way people usually get it is from the 
> "ofport" column of the Interface table in the database.  You can see it by 
> running "ovs-vsctl list interface".  You can also run "ovs-appctl dpif/show" 
> which will show you both the OpenFlow port number as well as the datapath 
> one.  Another option is with "ovs-ofctl dump-ports br-int".
> 
> --Justin
> 
> 
> > On Jun 30, 2015, at 9:48 AM, Xuemei Liu <lxuemei3...@gmail.com> wrote:
> >
> > Hi,
> >
> > I want to generate forwarding rules for ovs, and need to get the port id 
> > (0, 1, ...) at the ovs from the port name (eth0, ...).  I tried ovs-vsctl 
> > show, ovs-dpctl show, but they don't show the port id. Could anyone tell me 
> > the commands to implement this task?
> >
> > Thanks,
> > Xuemei Liu
> > _______________________________________________
> > discuss mailing list
> > discuss@openvswitch.org
> > http://openvswitch.org/mailman/listinfo/discuss
> 
> 

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to