VMware Cloud Community
tdubb123
Expert
Expert
Jump to solution

setting snmp engineid powercli

any idea how to set the snmp engineid on a host?

$esxcli.system.snmp.set ?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
tdubb123
Expert
Expert
Jump to solution

Thanks Luc!

0 Kudos