All hands on deck is a well-known 成語. It means "everybody get to work".
The deck is a level of a boat (艇甲板) . "Hands" refers to "people" (sailors)
if there is a storm at night, and all the sailors are sleeping, but the ship is in danger, the captain may wake them all up and say 'all hands on deck!' meaning everyone must wake up and work now, because the ship is in trouble
As for "pipe", I'm not sure. But "pipe" in some rare cases can mean to speak, such as in the 成語 "Pipe down!" which means to stop talking or be quiet. So this may mean "Tell everyone all hands on deck".
sailors have their own special language, like port and starboard versus left and right, as just one example.