Thanks a lot John Willis for your post.
I am installing HP Server with Scripts and the SNMP didn't work until i read that we have to configure the Windows snmp Service.
Thanks Again!
In order to set the snmp parameter per script, we can use the registry.
Here is an example :
servermanagercmd -install SNMP-Services
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters" /v EnableAuthenticationTraps /t REG_DWORD /d 0 /f
REM disable traps
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\PermittedManagers" /v 1 /t REG_SZ /d localhost /f
REM localhost needed for HP webconsole
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\PermittedManagers" /v 2 /t REG_SZ /d monitoracao.abc.com /f
REM your monitoring system
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters\ValidCommunities" /v public /t REG_DWORD /d 4 /f
REM Add public commnunity read-ony
cp019271.exe" /s
REM installs the web agents