Hello Andrew!
Since I was unable to solve the access to my database of HP SIM for command line. Only had to use the user "hpsmdb" which is accessing the postgresql database.
Now I have another question more, and it comes to how to set up a system for monitoring HP SIM with Windows OS, since I have two machines with Windows Server 2008 R2. As you can see in the screenshot, I have installed and ran the HP services that monitor the status of the machine. In my HP SIM I can see machines with Windows OS, but it puts me they are Machine "Unmanaged".
Would fail me to change and configure the SNMP service to also point to my HP SIM CMS!?
thanks very much