Storage information reported through SNMP does not refresh periodically on VMware vCenter Server Appliance 6.0
search cancel

Storage information reported through SNMP does not refresh periodically on VMware vCenter Server Appliance 6.0

book

Article ID: 324843

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Data retrieved from tables in HOST-RESOURCES-MIB is out of date.
  • Data retrieved from hrStorageUsed may not match the data reported by the df command in the vCenter Server Appliance.
  • Restarting the snmpd service resolves the issue temporarily.


Environment

VMware vCenter Server Appliance 6.0.x

Resolution

This is a known issue affecting the vCenter Server Appliance 6.0.

This issue is resolved in VMware vCenter Server 6.0 Update 2, available at VMware Downloads.

To work around this issue, restart the snmpd service:
  • From the vCenter Server Appliance Shell:

    1. Connect to the vCenter Server Appliance with SSH using root credentials.
    2. Run this command to stop the snmpd service:

      snmp.disable

    3. Run this command to start the snmpd service:

      snmp.enable

  • From the vCenter Server Appliance Bash Shell:
    1. Connect to the vCenter Server Appliance with SSH using root credentials.
    2. Run this command to enable the shell:

      shell.set --enabled true

    3. Run this command to launch the shell:

      shell

    4. Run this command to restart the service:

      service snmpd stop;service snmpd start
To automate the process, create a cron job to restart the service periodically:
  1. Connect to the vCenter Server Appliance with SSH using root credentials.
  2. Run this command to enable the shell:

    shell.set --enabled true

  3. Run this command to launch the shell:

    shell

  4. Run this command to open crontab:

    crontab -e

  5. Add this line:

    */5 * * * * /etc/init.d/snmpd stop && /etc/init.d/snmpd start

  6. Save and exit the file by typing :x.

    You see output similar to:

    no crontab for root - using an empty one
    crontab: installing new crontab


  7. Run crontab -l to confirm the entry is added successfully. You should see output similar to:

    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (/tmp/crontab.XXXXoox20I installed on Wed Nov 11 16:25:52 2015)
    # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
    */5 * * * * /etc/init.d/snmpd stop && /etc/init.d/snmpd start


Additional Information

To be alerted when this document is updated, click the Subscribe to Article link in the Actions box..通过 SNMP 报告的存储信息在 VMware vCenter Server Appliance 6.0 上未定期刷新
SNMP で報告されるストレージ情報が VMware vCenter Server Appliance 6.0 で定期的に更新されない