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");