Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

vyatta-op-cmd-wrapper not returning results for a specific command

$
0
0

I try to execute the command "show interfaces ethernet physical" by php using shell_exec, bypassing the original show command to /opt/vyatta/bin/vyatta-op-cmd-wrapper. Aim is to retrieve the current link speed (1000,100,duplex) and link state (up/down).

 

However, this particular show command does not return any result by php. Other similar commands like show interfaces ethernet poe do work. So, what am I doing wrong?

 

Does NOT work:

shell_exec("/opt/vyatta/bin/vyatta-op-cmd-wrapper show interfaces ethernet physical");

 

Does work:

shell_exec("/opt/vyatta/bin/vyatta-op-cmd-wrapper show interfaces ethernet poe");

 


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>