Editing SNMP trap frequency in ESXi 5.0

Hi, we're currently getting a lot of these messages from our ESXi hosts since turning on SNMP traps -


I've scoured the vmware forums and it looks like we need to edit the file /etc/sfcb/sfcb.cfg. However I'm unable to get to that file through SSH. It tells me access is denied. So I tried installing the vCLI but i can't work out how to connect to the ESXi host in order to edit the file.

Is there anyone that's able to help?

Many thanks in advance.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Are you using the FREE or Licensed version for ESXi?

see here you can also change, Filter out the trap

afl_itAuthor Commented:
We're using the licensed version.
I found that page earlier but can't work out how you connect to a server in order to run the edit command at the bottom. Any ideas?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
vicfg-snmp --notrap

VMware KB: Configuring SNMP Traps for ESXi/ESX 3.5, 4.x, and 5.0

you can download and install the vSphere CLI from:


vicfg-snmp.pl --server hostname --username username --password password --show
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

afl_itAuthor Commented:
Everything has been setup as per the link you sent but i was wondering if there's a way to change the frequency of the traps.

I found the below but can't work out where to enter the command in the first place!

Edit /etc/sfcb/sfcb.cfg
heartbeatInterval: <seconds>
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you need to login to the server via the console or ssh (remotely).

and use vi


vi /etc/sfcb/sfcb.cfg

if you do not know of to use vi, you can use WinSCP from Windows.
afl_itAuthor Commented:
Ok, I've entered that line into the sfcb.cfg file using vi through SSH but it doesn't seem to make any difference.

To test I set the interval time to 30 seconds but they still come every 5 minutes. I've disabled and reenabled the SNMP agent too.

Is there another setting somewhere?

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
did you restart the host?
afl_itAuthor Commented:
No. I did this -

vicfg-snmp.pl --server <hostname> --username <username> --password <password> --disable
Enabling agent...

vicfg-snmp.pl --server <hostname> --username <username> --password <password> --enable
Enabling agent...

Is that not enough? Does the heartbeatInterval line need to be put anywhere in particular within the sfcb file? That's all i can think it'd be.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
other than editing the file is not supported, as long as it's in the file.
afl_itAuthor Commented:
It's strange because no matter what value i put into the line it seems to ignore it. Do you think i need to restart the whole host in order for it to take effect? Seems a bit drastic!

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
At a convenient time, I would certainly try restarting the host.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
afl_itAuthor Commented:
Unfortunately finding a convenient time to restart the host is going to be pretty hard to do. Are there any other suggestions out there?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.