if you look in the /help section on hash tables, it documents how you can do a hget that will tell you the number of keys in a table. Also there is a way to search through the 'data' associated with a key, and once you found it you could display its key, its all in /help.

Pay particular attention to the .item etc. information in help for hash tables, i think all that you want is there.