//logging into the switch
login as: admin
admin@192.168.10.20's password: ******
//enabling the switch
(sanswitch01) >enable
Password:******
//entering the global configuration mode
(sanswitch01) #configure
//viewing current mail server configuration
(sanswitch01) (Config)#show mail-server all config
//Output
Mail Servers Configuration:
No of mail servers configured.................. 1
Email Alert Mail Server Address................ old_server_address
Email Alert Mail Server Port................... 25
Email Alert SecurityProtocol................... none
Email Alert Username........................... admin
Email Alert Password........................... *******
//removing the existing mail server
(sanswitch01) (Config)#no mail-server old_server_address
//defining the new mail server
(sanswitch01) (Config)#mail-server mail.platterone.net
//existing from the mode
(sanswitch01) (Mail-Server)#exit
//enabling email logging
(sanswitch01) (Config)#logging email
//enabling urgent e-mail logging for the desired severity level.
(sanswitch01) (Config)#logging email urgent 4
//enabling urgent e-mail logging for the desired severity level.
(sanswitch01) (Config)#logging email 4
0 - emergency
1 - alert
2 - critical
3 - error
4 - warning
5 - notice
6 - info
7 - debug
//configuring recipient email address for both urgent and non-urgent
(sanswitch01) (Config)#logging email message-type both to-addr support@platterone.com
//configuring the from email address
(sanswitch01) (Config)#logging email from-addr sanswitch01@netapp.com
//defining the subject of the alering email
(sanswitch01) (Config)#logging email message-type both subject Netapp_Cluster_Switch_Alerts_sanswitch01
//viewing current mail server configuration
(sanswitch01) (Config)#show mail-server all config
//Output
Mail Servers Configuration:
No of mail servers configured.................. 1
Email Alert Mail Server Address................ mail.platterone.net
Email Alert Mail Server Port................... 25
Email Alert SecurityProtocol................... none
Email Alert Username........................... admin
Email Alert Password........................... admin
//view all email configurations
(sanswitch01) (Config)#show logging email config
//Output
Email Alert Logging............................ enabled
Email Alert From Address....................... sanswitch01@netapp.com
Email Alert Urgent Severity Level.............. error
Email Alert Non Urgent Severity Level.......... warning
Email Alert Trap Severity Level................ info
Email Alert Notification Period................ 30 min
Email Alert To Address Table:
For Msg Type ................................ urgent
Address1 ...................................... support@platterone.com
For Msg Type ................................ non-urgent
Address1 ...................................... support@platterone.com
Email Alert Subject Table:
For Msg Type urgent, subject is.............. Netapp_Cluster_Switch_Alerts_sanswitch01
For Msg Type non-urgent, subject is.......... Netapp_Cluster_Switch_Alerts_sanswitch01
//test email alert checking
(sanswitch01) (Config)#logging email test message-type both message-body Testing Email. This alert for the testing purposes.
Resource : NetApp Knowledgebase
No comments:
Post a Comment