使用 mapsconfig --testmail 从 Brocade 交换机触发测试电子邮件后无法接收测试电子邮件
适用于
- Brocade 交换机
- SNMP
问题描述
- 使用"
mapsconfig --testmail
"从 Brocade 交换机触发测试电子邮件后,无法接收测试电子邮件。
- 从 Brocade 交换机"
mapsconfig --testmail
"触发测试电子邮件时,ping SMTP 中继服务器成功。 但在触发测试电子邮件期间未捕获数据包。 - 以下
raslog
消息记录在交换机下errdump
-
Alert msg:"2024/09/11-19:40:01, [MAPS-1206], 3127, CHASSIS, INFO, switch, A MAPS email notification sent from the switch could not be delivered to Email server."
- 从
errdump
中可以看出,由于无法访问电子邮件服务器,无法发送 MAPS 电子邮件。
2024/08/27-08:00:00, [MAPS-1207], 3095, CHASSIS, INFO, switch, There were 2 email delivery errors in the last hour.
2024/08/28-18:42:01, [MAPS-1206], 3096, CHASSIS, INFO, switch, A MAPS email notification sent from the switch could not be delivered to Email server.
2024/08/28-19:00:00, [MAPS-1207], 3097, CHASSIS, INFO, switch, There were 4 email delivery errors in the last hour.
2024/08/31-18:38:00, [MAPS-1206], 3098, CHASSIS, INFO, switch A MAPS email notification sent from the switch could not be delivered to Email server.
- 使用
mapsconfig --show
验证 MAPS 的配置,并确保Mail Recipient
和Mail from Address
正确列出。
switch:FID128:root> mapsconfig --show
Configured Notifications: EMAIL,SW_CRITICAL,SW_MARGINAL,SFP_MARGINAL
Mail Recipient: xxxx@xyz.com
Mail From Address: abd@efg.com
Raslog Mode: Default
Decom Action Config: With Disable
Global Quiet Time: Not Configured
Paused members :
================
PORT :
CIRCUIT :
SFP :
SWITCH :
- "
relayconfig --show
"输出表示中继域名为"snmp"。确保所设置的中继域名有效且正确。
switch:FID128:root> relayconfig --show
Relay Host: 10.72.217.36
Relay Domain Name: snmp
- "
dnscongig --show
"输出表示domain name
和name server IP address
未设置。
CHASSISCMD /fabos/cliexec/dnsconfig --show:
Tue Sep 17 08:28:46 GMT 2024
********************************************************
/fabos/cliexec/dnsconfig --show:
Domain Name Server Configuration Information
____________________________________________
- 在登录为"
root
"的交换机上,echo "test email from switch"
给出以下输出-
Switch:FID128:root> echo "test email from switch" | sendmail -v xxxx@xyz.com
Who are you?: Permission denied
tatacommunications.com: Name server timeout
xxxx@xyz.com... Transient parse error -- message queued for future delivery
xxxx@xyz.com... queued