Ask Your Question

ovs-ofctl error: failed to open socket (Permission denied)

asked 2015-03-18 10:15:28 -0700

anonymous user


Hi. I created a Mininet topology with three hosts, an OpenFlow switch and a remote controller (following an OpenFlow tutorial over from ), like this:

sudo mn --topo single,3 --mac --switch ovsk --controller remote

I need to check the flow table of the switch (s1), even though i know its empty, so I type in the command:

ovs-ofctl show s1

but I get the error:

ovs-ofctl: /var/run/openvswitch/s1.mgmt: faile to open socket (Permission denied)

How do I resolve this? I am following this tutorial:

Thanks in advance!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-03-18 10:39:19 -0700

Vishal Thapar gravatar image

All ovs-xxx require sudo access. Try sudo ovs-ofctl show s1, should work.

edit flag offensive delete publish link more

answered 2015-03-18 21:37:30 -0700

Ashwini_Mhatre gravatar image

updated 2015-03-18 21:37:52 -0700

Also try sh ovs-ofctl dump-flows s1

Regards, Ashwini

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-03-18 10:15:28 -0700

Seen: 662 times

Last updated: Mar 18 '15