How can I start session mdc?

Using le_mdc_StartSession I get the following ping return

root@fx30s:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network is unreachable

I changed one implementation per system (“cm data connect”); disabling the sandbox, but the cm command was not recognized:

Feb 23 08:35:05 fx30s user.err Legato: =ERR= | mqttPublisher[2788] | cm: not found

But it worked out using the full path to the cm.

system("/legato/systems/current/bin/cm data connect");

Thank you for your help!