[PATCH] Add support for realm command