配置本地 SMTP 通知 - Amazon Snowball Edge 开发者指南
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

配置本地 SMTP 通知

您可以使用简单邮件传输协议(SMTP)为 Snowball Edge 设备设置本地通知。当服务状态(活动、降级、非活动)发生变化或在您超出 80%、90% 或 100% 的容量利用率阈值时,本地通知会向已配置的服务器发送电子邮件。

先决条件

开始之前,请确保:

  • 您可以访问最新的 Snowball Edge 客户端。

  • 您的设备已解锁,可供使用。

  • 您的设备可以连接到互联网(如果使用 Amazon Simple Email Service 或外部 SMTP 服务器)或本地 SMTP 服务器。

配置设备

将您的设备设置为向您发送电子邮件通知。

为设备配置 SMTP 通知
  1. 运行以下命令来为设备添加 SMTP 配置:

    # If you don't specify a port, port 587 is the default. SMTP_ENDPOINT=your-local-smtp-server-endpoint:port # For multiple email recepients, separate with commas RECIPIENTS_LIST=your-email-address snowballEdge put-notification-configuration \ --service-id local-monitoring \ --enabled true \ --type smtp \ --broker-endpoint "$SMTP_ENDPOINT" \ --sender example-sender@domain.com \ --recipients "$RECIPIENTS_LIST"

    如果成功,您将收到一封来自 example-sender@domain.com 的测试电子邮件。

  2. 通过运行以下 get-notification-configuration 命令来测试配置:

    snowballEdge get-notification-configuration \ --service-id local-monitoring

    响应不包含密码或证书,即使您提供了密码或证书也是如此。