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]+)/) {