Chapter 12 Configuring Call Home for the Cisco CSR 1000V

How to Configure Call Home

DETAILED STEPS

 

Command or Action

Purpose

 

 

 

Step 1 call-home send {cli command cli list} [email email

Executes the CLI or CLI list and sends output via email or

 

msg-format {long-text xml} http

HTTP.

 

{destination-email-address email}]

{cli command cli list}—Specifies the IOS command

 

[tac-service-request SR#]

 

or list of IOS commands (separated by ‘;’). It can be any

 

 

 

 

run command, including commands for all modules.

 

Example:

The commands must be contained in quotes (“”).

 

Router# call-home send “show version;show

email email msg-format {long-text xml}—If the

 

running-config;show inventory” email

email option is selected, the command output will be

 

support@example.com msg-format xml

 

sent to the specified email address in long-text or XML

 

 

 

 

format with the service request number in the subject.

 

 

The email address, the service request number, or both

 

 

must be specified. The service request number is

 

 

required if the email address is not specified (default is

 

 

attach@cisco.com for long-text format and

 

 

callhome@cisco.com for XML format).

 

 

http {destination-email-address email}—If the http

 

 

option is selected, the command output will be sent to

 

 

Smart Call Home backend server (URL specified in the

 

 

CiscoTAC-1 profile) in XML format.

 

 

destination-email-address email can be specified so

 

 

that the backend server can forward the message to the

 

 

email address. The email address, the service request

 

 

number, or both must be specified.

 

 

tac-service-requestSR#—Specifies the service

 

 

request number. The service request number is required

 

 

if the email address is not specified.

 

 

 

Example

The following example shows how to send the output of a command to a user-specified email address:

Router# call-home send “show diag” email support@example.com

The following example shows the command output sent in long-text format to attach@cisco.com, with the SR number specified:

Router# call-home send “show version; show run” tac-service-request 123456

The following example shows the command output sent in XML message format to callhome@cisco.com:

Router# call-home send “show version; show run” email callhome@cisco.com msg-format xml

 

 

Cisco CSR 1000V Series Cloud Services Router Software Configuration Guide

 

 

 

 

 

 

OL-27477-07

 

 

12-29

 

 

 

 

 

Page 161
Image 161
Cisco Systems CSR 1000V manual 12-29