Seeing Sugriva indulge in worldly pleasures, forgetting totally about his word to Rama, Hanuman advises Sugriva to honour his words to Rama and their friendship. He reminds that it's imperative that Sugriva preempts before the soft spoken and well-mannered Rama confronts him and reminds his obligation -- at which point Sugriva would be considered to have failed in his duty.
To Sugriva's credit, he realises his folly and immediately orders all his army to be assembled by Neela. He even decrees that capital punishment will be handed over to any of his soldiers that fail to reach his capital within 15 days.
This happens before an enraged Lakshmana arrives at Sugriva's court.
"He fulfilled an exceptional cherish of yours without much doubting for the forfeiture of his own life, hence we search for his wife Vaidehi anywhere on earth or even on skies. [4-29-23]
"Therefore command us, oh, merited one, as you have more than ten million unchallengeable monkeys under your command, as to who should start from where and for which purpose, and as to how one should exert himself." Thus Hanuma appealed to Sugreeva. [4-29-27]
And the noble minded Sugreeva directed Nila, one of the commanders of vanara army, and who always strives to foregather vanara army, to foregather all of the monkey-forces available in all the directions. [4-29-29]
"You have to have organise that way as to how my army in its entirety and from all over, together with corps commanders, is to be marshalled to stay in the cutting edge of army. [4-29-30]
"Those that are the quickstepped, venturesome fly-jumpers who are the defenders on the perimeter of army, they shall be fetched quickly and speedily at my order, and oh, Niila, you on your own have to personally and closely monitor the military establishment without any heterogeneity. [4-29-31]
"And, the monkey who arrives here after fifteen nights, to him termination of life is the punishment, there is no business for further adjudication. [4-29-32]
"Associated with Angada you shall approach elderly monkeys like Jambavanta and others, according to my decision and authorised by my order." Thus, Sugreeva, the king of best monkeys on assigning the set-up, and ordering Niila, the Commander of Vanara Forces, that glorious Sugreeva re-entered his palace-chambers. [4-29-33]