We know agentinfo command is used to validate the Agent's Live status on any given server. It may be good idea if we can add one more field in the output, to show the agent's enrollment status in BSA Console.
APPSERVER_NSH# agentinfo <target_server>
Agent Release : 8.7.00.280
Hostname : `hostname`
Operating System: WindowsNT 6.1 (x86_64)
User Permissions: BladeLogicRSCD@hostname->Anonymous:PrivilegeMapped (Identity via trust)
Security : Protocol=5, Encryption=TLS1
Host ID : ACCFC4FC
# of Processors : 2
License Status : Licensed for NSH/CM
Enrolled As : NAME property in BSA Console <<target_server.domain.name or IP_Address>>
I know, agentinfo is something establishing connection with the target's agent and fetching the required values. And, Enrollment status is something in BSA OM/Database value.
To correlate both of them, I am actually placing a config file bsaenrolled,with an entry like NSHRUN_CMD_HOST, under RSC config directory everyday. If BMC can consider it, I am sure there will be more options to implement.
1. No out of box scripts or portals to validate the enrollment status
2. Avoid duplicate entries in BSA Console