WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Script: ghettoVCB Email Support (Experimental Support)

Script: ghettoVCB Email Support (Experimental Support)

07.28.2010 by William Lam // 14 Comments

Check out the latest update to ghettoVCB which now support backup logs to be emailed upon competition. This feature is in experimental support and require the availability of nc (netcat) utility which is included in ESX(i) 4.0+. One can utilize netcat for variety of networking tasks, including communicating to an email server. The reason this feature is in experimental support is it may not be compatible with all email servers. The email functionality has been tested against a default installation of Postfix and is provided as-is.

For more details, please take a look at the ghettoVCB documentation.

More from my site

  • Programmatically accessing the Broadcom Compatibility Guide (BCG)
  • Enhancements to VMware Cloud Foundation (VCF) & vSphere Automated Lab Deployment Scripts
  • Frequently asked scenarios about Subscription & Entitlement for vSphere+, vSAN+ and VCF+
  • Frequently asked scenarios about Global Inventory for vSphere+, vSAN+ and VCF+
  • Frequently asked scenarios about Cloud Consumption Interface (CCI) for vSphere+, vSAN+ and VCF+

Categories // Uncategorized Tags // ghettoVCB, vSphere

Comments

  1. *protectedMario Grunert says

    07/28/2010 at 7:36 am

    Netcat is available as optional package beginning with ESX 3.0, with 4.0 it was already installed per default.

    I used it many many times for troubleshooting purposes or for rescuing data per piped dd over netcat in very critical situations. The windows build of this tool (google for netcat hobbit) is a MUST for every troubleshooter - unfortunatly it is blacklisted by many Antivirus scanners. Check the "netcat cheat sheet" for getting handy with it - it saved my ass many times.

    Reply
  2. *protectedWilliam says

    07/29/2010 at 1:36 am

    Mario,

    Thanks for the info, I was not aware nc was included in previous releases. I guess I never noticed. I do know that in the What's new in vSphere 4.1, one of the marketing slides did state nc as being a new feature, perhaps it was for ESXi?

    I did check on classic ESX 4.0 and 4.0u2 that nc was included, so I'll need to update the script to just check to see if nc is available and if a user would like to send the logs.

    I'll post an update once I get a chance to update the script.

    Thanks again

    --William

    Reply
  3. *protectedAndrea Manzati says

    08/03/2010 at 8:35 am

    I've found lot of problems with windows 's exchange. The problem is related to CR-LF which netcat don't use it (instead telnet which it uses)
    For example, if I type:
    #nc myserver 25
    #HELO mydomain.com
    I get no response.

    But if I type:
    #nc myserver 25
    #HELO mydomain.com(CTRL-V)(enter)(enter)
    I get reply from server.

    This problem is related only to windows mail servers, do you have some hint?

    Thanks
    Andrea

    Reply
  4. *protectedWilliam says

    08/04/2010 at 3:55 am

    @Andrea,

    I may have a workaround that is still being tested, but it still may not resolve the problem you are seeing. This is a feature that is provided as and is limited in support. Keep an eye out for a future release

    Thanks

    Reply
  5. *protectedAnonymous says

    08/11/2010 at 8:42 am

    i'm also having an issue against an exchange 2007 server..

    Problem is the ghettoVCB-email-log file is not always created in /tmp which makes it hard to troubleshoot.

    Use ESX4i (free) BTW

    Reply
  6. *protectedGerard says

    12/01/2010 at 11:14 am

    Please note that a few of the stray newlines on the email_log output leads to qmail rejecting the smtp nc session. Just wipe a few unnecessary \n.

    Reply
  7. *protectedWilliam says

    12/01/2010 at 2:44 pm

    @Gerard,

    This is actually needed for windows based mail servers, else they run into issues. As mentioned this feature is experimental and since there is no real mail client, the format may need to be tweaked for different mail servers.

    Reply
  8. *protecteddisciple3d says

    12/16/2010 at 3:43 pm

    Yes, the same problems for me with qmail.

    Andrew, the problem seems to be that because of the extra \n bits on some of the lines calling the logger function, they are creating two end of lines, without the corresponding \r. This means qmail finds the odd line ending which is incorrect (START LOG and END LOG messages and the lines stating whether the backup is successful or not) and rejects the message.

    I removed the additional \n line endings to fix this...

    Reply
  9. *protectedWilliam says

    12/18/2010 at 5:10 pm

    @disciple3d,

    Thanks for the info, I'll go ahead and remove these \n from the mentioned lines in a future release of ghettoVCB. You're right, in this sense, you would get additional \n without the matching \r.

    Let me know if there are other lines having the same issue.

    Reply
  10. *protectedPaul de Goede says

    12/24/2010 at 12:26 pm

    The links to GhettoVCB on vmware's communiy site seems to have been removed

    Reply
  11. *protectedWilliam says

    12/24/2010 at 8:14 pm

    @Paul de Goede,

    It looks like during the upgrade of the VMware VMTN forums software, the document conversion was not successful on this particular document 🙁 I've already reported this bug and there are actual several threads on VMTN regarding the issue. Until VMware returns from their holiday shutdown, I'm afraid it will be down until then.

    You should still be able to access the latest version via Google cache

    Reply
  12. *protectedadmin.sas says

    03/08/2011 at 11:38 am

    Hello,
    I currently use :
    VMWare ESXi 4.0.0 Releasebuild-171294

    And it seems that there is no netcat installed
    (I did not found any "nc" file)

    Is there anything additionnal to be installed?

    Thanks
    Regards

    Reply
  13. *protectedOphelia Woodson says

    07/02/2013 at 2:44 pm

    This experimental email support that will help users who experience technical difficulties with their email servers. Great job and keep up the good work guys

    Reply
  14. *protectedMArk A. says

    04/09/2014 at 5:39 pm

    I have 4 ESX 5.5 boxes, 2 of which emailing the logs works, and 2 do not send logs out, complaining about the firewall rule set. I have checked and rechecked the firewall rule set and they're in place and listed. Even reloading the ruleset and refreshing the firewall rules has been done and they still fail out on sending the logs. Any ideas? I'm running Exchange 2010.

    Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025