Automation

 View Only
  • 1.  Problems Starting SNMPd

    Posted Feb 09, 2016 09:31 AM

    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



  • 2.  RE: Problems Starting SNMPd

    Posted Feb 09, 2016 09:34 AM

    Looks like you might be running a free ESXi license.

    Is that correct ?



  • 3.  RE: Problems Starting SNMPd

    Posted Feb 09, 2016 10:42 AM

    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 ?



  • 4.  RE: Problems Starting SNMPd

    Posted Feb 09, 2016 10:55 AM

    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 ?



  • 5.  RE: Problems Starting SNMPd

    Posted Feb 09, 2016 11:01 AM

    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 .



  • 6.  RE: Problems Starting SNMPd

    Posted Feb 09, 2016 11:10 AM

    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



  • 7.  RE: Problems Starting SNMPd
    Best Answer

    Posted Feb 09, 2016 11:19 AM

    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: