Loading

×Sorry to interrupt
CSS Error

Refresh

My Subscriptions

Loading

Knowledge Base

Special characters in the community string for SNMP traps are not retained (1023998)

Last Updated: 3/20/2024Categories: TroubleshootingTotal Views: 8154Language:
Chinese (Simplified)English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

When configuring an ESX 4.0 or 4.1 host for SNMP traps with a community string containing special characters, such as a hyphen or an ampersand, the string is truncated.

Characters including and beyond the special characters are deleted.

The command appears to complete successfully.

You are using vSphere Management Assistant (vMA) 4.0.0 or vSphere CLI 4.0.

If you try to edit the snmp.conf file manually, you see the error:

Failed : A general system error occurred: Load persistent store failed

Resolution

The issue with hyphen (-) character is resolved in vMA 4.1 and vCLI 4.1. To download the latest version of vMA and vCLI, see the VMware Download Center.

To workaround this issue when you do not want to upgrade or if the issue is related to the ampersand (&) or at sign (@) character, try modifying the perl script or use a community string without special characters.

To modify the perl script:

Search for the line similar to:

if ($item =~ /(\w[\w\.-]*)(@(\d+)){0,1}\/(\w+)/) {

Note: This is usually line 156 or 157, depending on the version.

Replace this line with:

if ($item =~ /(\w[\w\d\.:-]*)(@(\d+)){0,1}\/([\x21-\x7e]+)/) {

Related Information

To be alerted when this document is updated, click the Subscribe to Article link in the Actions box
SNMP 陷阱的团体字符串中的特殊字符不会保留

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
vSphere Client を Windows 7、Windows 2003 または Windows 2008 R2 にインストールした後、起動できない (1011329)

KB
•
无法在 Windows 7、Windows 2003 或 Windows 2008 R2 中启动 vSphere Client (1011329)

KB
•
Download and Install VMware Fusion (2014097)

Results 1-4 of 4

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere Management Assistant

VMware vSphere ESXi

VMware vSphere CLI

VMware vSphere

VMware ESX Server

Related Versions:

VMware vSphere Management Assistant 4.0.x

VMware vSphere CLI 4.0

VMware ESXi 4.1.x Installable

VMware ESXi 4.1.x Embedded

VMware ESXi 4.0.x Installable

VMware ESXi 4.0.x Embedded

VMware ESX 4.1.x

VMware ESX 4.0.x

Take Our Survey

Cookie Preference Center

General Information on cookies

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Please confirm your settings by refreshing the page.

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Please confirm your settings by refreshing the page.

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Support Assistant