any idea how to set the snmp engineid on a host?
$esxcli.system.snmp.set ?
With the new V2 switch it became a lot easier.
$esxName = 'MyEsx'
$esxcli = Get-EsxCli -VMHost $esxName -V2
# Current settings
$esxcli.system.snmp.get.Invoke()
# Find available parameters
$arguments = $esxcli.system.snmp.set.CreateArgs()
# Set EngineId
$arguments.engineid = '00000000000000aaaaaa1000'
$esxcli.system.snmp.set.Invoke($arguments)
# Current settings
$esxcli.system.snmp.get.Invoke()
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
With the new V2 switch it became a lot easier.
$esxName = 'MyEsx'
$esxcli = Get-EsxCli -VMHost $esxName -V2
# Current settings
$esxcli.system.snmp.get.Invoke()
# Find available parameters
$arguments = $esxcli.system.snmp.set.CreateArgs()
# Set EngineId
$arguments.engineid = '00000000000000aaaaaa1000'
$esxcli.system.snmp.set.Invoke($arguments)
# Current settings
$esxcli.system.snmp.get.Invoke()
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks Luc!