To walk around in a random manner, whilst conducting a reconnaissance.
Andrew was knotting around the golf course when he stumbled across a work colleague.
The military patrol was knotting around southern district when they were engaged by an enemy patrol.