fixes in cli and added a sanity command

Signed-off-by: sanoj <sunnikrishnan@stec-inc.com>