It's too short to be a poem...sorry...it's just a combination lock. My Chinese isn't that great...well, it's actually really bad, but what I can
tell you is that this very typical of locks used in the 1800s in the San Francisco area by Chinese immigrants to ward off evil spirits.
A couple of the characters seem to be little more than "sun", "cloud", "head", etc...