receiving cmd for getting mac and sending it back