在 Snowball Edge 上設定本機 SMTP 通知 - AWS Snowball 邊緣 開發人員指南

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

在 Snowball Edge 上設定本機 SMTP 通知

您可以使用 Simple Mail Transfer Protocol (SMTP) 為您的 Snowball Edge 裝置設定本機通知。本機通知會在服務狀態 (作用中、降級、非作用中) 變更時,或跨容量使用率閾值 80%、90% 或 100% 時,傳送電子郵件至已設定的伺服器。

開始之前,請確認:

  • 您可以存取最新的 Snowball Edge 用戶端。

  • 您的裝置已解除鎖定並可供使用。

  • 您的裝置可以連線至網際網路 (如果使用 Amazon Simple Email Service 或外部 SMTP 伺服器) 或本機 SMTP 伺服器。

為本機通知設定 Snowball Edge

設定 Snowball Edge 以傳送電子郵件通知。

設定裝置以取得 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 recipients, 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

    即使您提供密碼或憑證,回應也不會包含密碼或憑證。