executes redis command obtaining master from sentinel