VMware Cloud Community
Almero
Enthusiast
Enthusiast
Jump to solution

Problems Starting SNMPd

Good morning guys , I need help starting SNMPd using PowerCLI 5.5 on ESX 5.5 .

I can GET perfectly , but cannot do the GET | SET to run without errors.

This Works

Get-VmHostService -VMHost $ESXi | Where-Object {$_.key -eq "snmpd"}

But when I then try and GET | SET , if get errors >

PS C:\PS\ELMOHostBuilder> Get-VmHostService -VMHost $ESXi | Where-Object {$_.key -eq "snmpd"} | Start-VMHostService

Start-VMHostService : 2016/02/09 11:28:37 AM Start-VMHostService An error occurred during host configuration. 

At line:1 char:71

+ Get-VmHostService -VMHost $ESXi | Where-Object {$_.key -eq "snmpd"} | Start-VMHo ...

+ ~~~~~~~~~~

  + CategoryInfo : NotSpecified: (:) [Start-VMHostService], PlatformConfigFault

  + FullyQualifiedErrorId : Client20_SystemManagementServiceImpl_SetVMHostService_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.StartVMHostService

Reply
0 Kudos
1 Solution

Accepted Solutions
Almero
Enthusiast
Enthusiast
Jump to solution

Ok I used Update manager to patch to our 55.u2 Baseline ESXi Build 2718055 , and it looks like its working now . VERY strange . Will have to try write a sh script to alter the tons of esx5.5u1 Hosts or something .

Will do some more testing , Thank you Very much for all the help . Was lost , still is a bit ..... :smileyconfused:

View solution in original post

6 Replies
LucD
Leadership
Leadership
Jump to solution

Looks like you might be running a free ESXi license.

Is that correct ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Almero
Enthusiast
Enthusiast
Jump to solution

Hi There , no I am running Ent Plus .

Also I tested the same code , but pointing to TSM-SSH and that works .

A Bug perhaps ?

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

You might be right.

Just tested this with PowerCLI 6R3, and I get the same error.

For other services it seems to work alright.

Could it be the issue described in KB2056832 ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Almero
Enthusiast
Enthusiast
Jump to solution

I will test this condition ASAP , just updating my ESXi version to latest , just wanted to test if that has an effect .

I must mention this was a clean /fresh install , so not sure how my xml could be bust

I suppose could try and get around this by some sort of hack Get-ESXCLI and run something like /etc/init.d/snmpd start .

Thank you for helping , I thought I was losing my mind .

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

I agree, with a fresh ESXi install, it would be highly unlikely that the config file got corrupted.

Not sure if you can use esxcli to stop/start the service.

And for /etc/init.d/snmpd you will need something like plink.exe


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Almero
Enthusiast
Enthusiast
Jump to solution

Ok I used Update manager to patch to our 55.u2 Baseline ESXi Build 2718055 , and it looks like its working now . VERY strange . Will have to try write a sh script to alter the tons of esx5.5u1 Hosts or something .

Will do some more testing , Thank you Very much for all the help . Was lost , still is a bit ..... :smileyconfused: