Sending Command Output In Email - Cisco Nexus 9000 Series Configuration Manual

Nx-os fundamentals configuration guide
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Understanding the Command-Line Interface
--- 12,16 ----
Hardware
!

Sending Command Output in Email

You can use the CLI to send the output of a show command to an email address using the pipe operator (|).
The email configuration remains persistent for all show command output until it is reconfigured.
Note
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
bootflash: 0 blocks (block size 512b)
uptime is 0 days 1 hours 45 minute(s) 42 second(s)
Command or Action
configure terminal
Example:
switch# configure terminal
switch(config)#
email
Example:
switch(config)# email
switch(config-email)#
smtp-host ip-address smtp-port port
Example:
switch(config-email)# smtp-host
198.51.100.1 smtp-port 25
vrf management
Example:
switch(config-email)# vrf management
from email-address
Example:
switch(config-email)# from
admin@Mycompany.com
reply-to email-address
Example:
switch(config-email)# reply-to
admin@Mycompany.com
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x
Sending Command Output in Email
Purpose
Enters global configuration mode.
Enters email configuration mode.
Specifies the SMTP host IP address and
the SMTP port number.
Specifies a VRF for the email
transmission.
Specifies the sender's email address.
Specifies the recipient's email address.
73

Advertisement

Table of Contents
loading

Table of Contents