...
If management VRF is enabled, and you want to find the next-hop route in management VRF when running the commands traceroute/SCP/ping/apt get/SSH/ldapsearch at Linux prompt, that is, using Eth0/1 management interface as the route interface, you have to add ip vrf exec mgmt-vrf before the commands.
...
sudo ip vrf exec <mgmt-vrf|vrf-name> telnet {<ip-address>|<host-name>} [<port-number>]
sudo ip vrf exec <mgmt-vrf|vrf-name> ldapsearch -x -b dc=example,dc=com -D "cn=root,dc=example,dc=com" -H ldap://10.10.50.20 -W
ip vrf exec <mgmt-vrf|vrf-name> is added to specify which VRF to run the command in. If not specified, find the next hop routing information from the default VRF.
...