Chris Gamble, 27, was so drunk that he was struggling to stand still when police found him in Stow Lane.
He was back before Peterborough Magistrates’ Court on Monday to be sentenced, having pleaded guilty at an earlier hearing to having a knife blade in a public place on March 25.
Prosecutor Giles Beaumont said Gamble, who had injuries, told officers he just wanted to be left alone.
He was shouting and swearing in close proximity to schoolchildren, the court was told.
Damian Willatt, mitigating, said there had been some difficulties in his client’s life immediately prior to the incident and Gamble had taken the steak knife from a house after a fight there with a relative.
“It’s quite clear that there was no suggestion that he was offering any aggression in terms of brandishing the weapon or anything of that sort,” added Mr Willatt.
Gamble, of Prince’s Walk, March was given a 12-month community order with 40 hours’ unpaid work and 20 days of rehabilitation activity requirement. He was told to pay £85 costs and £95 victim surcharge.