A thug who went to hospital for treatment and then threatened to 'stab people up' was found with a seven inch knife.
Ainsley France, 24, abused staff at Fairfield hospital in Bury, and made 'racist' and 'sexual' comments.
He was told to leave but continued being abusive, so the police were called.
READ MORE : Two men accused of involvement in 'Longhaired Luke' drugs gang that promised 'the fattest and best stuff'
When he was arrested, officers discovered he had a seven inch blade.
Weeks earlier, he had waved a 10 inch knife towards two men after being asked to leave a pub.
France, who has regularly smoked cannabis since the age of 14, said: "Shut up or I'll cut you up."
He was hauled before a judge and admitted two offences of possessing a knife in public.
"You simply cannot go into settings like hospitals behaving in the way that you did, while in possession of a seven inch knife," said the judge, Recorder Neil Usher.
"This court takes a very serious view of those who carry knives in public."
Minshull Street Crown Court heard that France had turned up at the hospital previously and had been a 'nuisance'.
Then on November 22 last year he was 'abusive' to staff, made 'sexual references' and a 'racially aggravated comment'.
He made 'threats to stab people up' before being seen by a psychiatric doctor, prosecutor Simon Barrett said.
France didn't leave the hospital after being seen, and continued to be abusive.
Police were called and they discovered he was in possession of a seven inch knife. He didn't produce the blade inside the hospital.

"I accept that you were keen to seek medical attention but your behaviour on that occasion was completely unacceptable," the judge said.
A few weeks earlier, on October 24, France turned up at the Victoria pub in Radcliffe asking to speak to a regular at the boozer.
He was not present, but his father was there.
Having 'concerns' about his behaviour, the landlady asked France to leave.
The father and another drinker followed him out of the pub.
France, who was about five feet away from the men, then pulled out a 10 inch knife, 'waved it' in their direction and said 'shut up it I'll cut you up'.
His barrister David Morton claimed the men were acting in an 'extremely provocative' way by following him out of the pub.
But the judge disagreed and said it must have been an 'extremely frightening' situation for them.
"They were simply asking you to leave a public house, and they had every right to do that," the judge told France.
Mr Morton said France, of Lever Street, Radcliffe, was in 'crisis' at the time, suffering from mental health problems.
He said the knives were more likely to be used for self harm rather than to injure anyone.
The judge said France's mental health difficulties had been 'brought upon in very large measure' by his abuse of cannabis from an early age.
France, who had been on remand in prison since his arrest in November, was handed a 12 month community order, to include a six month drug rehabilitation programme and 35 rehabilitation activity requirement days.