E Commands

email-contact (Call Home)

To configure the e-mail address for the primary person responsible for the switch, use the email-contact command. To remove an email contact, use the no form of this command.

email-contact email-address

no email-contact

Syntax Description

email-address

E-mail address. The address can be a maximum of 255 alphanumeric characters in e-mail address format and cannot contain spaces.

Command Default

None

Command Modes

Callhome configuration mode

Command History

Release

Modification

This command was introduced.

Examples

This example shows how to configure an e-mail address:


switch(config-callhome)# email-contact abc@xyz.com
 
switch(config-callhome)# 

enable (Call Home)

To enable the Cisco Smart Call Home service after you have configured the contact information, use the enable command. To disable the Smart Call Home service, use the no form of this command.

enable

no enable

Syntax Description

This command has no arguments or keywords.

Command Default

Disabled

Command Modes

Callhome configuration mode

Command History

Release

Modification

This command was introduced.

Usage Guidelines

You must configure an e-mail server. Your switch must have IP connectivity to an e-mail server. You must configure the contact name (SNMP server contact), phone, and street address information before you enable Call Home.

Examples

This example shows how to enable the Cisco Smart Call Home service:


switch(config-callhome)# enable
 
contact email address is not configured
callhome can not be enabled on the switch, because necessary configuration has not been done
Please check if all of following configuration is done
contact person name(sysContact)
contact person's email
contact person's phone number
street addr
To configure sysContact, please use snmp-server command
switch(config-callhome)# 

This example shows how to disable the Cisco Smart Call Home service:


switch(config-callhome)# no enable
 
switch(config-callhome)# 

erspan-id

To configure the flow ID for an Encapsulated Remote Switched Port Analyzer (ERSPAN) session, use the erspan-id command. To remove the flow ID, use the no form of this command.

erspan-id flow_id

Syntax Description

flow_id

ERSPAN flow ID. The range is from 1 to 1023.

Command Default

None

Command Modes

ERSPAN source session configuration mode (config-erspan-src)

ERSPAN destination session configuration mode (config-erspan-dst)

SPAN-on-Drop ERSPAN session configuration mode (config-span-on-drop-erspan)

SPAN-on-Latency ERSPAN session configuration mode (config-span-on-latency-erspan)

Command History

Release

Modification

7.0(0)N1(1)

This command was modified. This command was implemented in the following modes: ERSPAN destination session configuration mode, SPAN-on-Drop ERSPAN session configuration mode, and SPAN-on-Drop ERSPAN session configuration mode.

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to configure the flow ID for an ERSPAN source session:


switch# configure terminal
switch(config)# monitor session 1 type erspan-source
switch(config-erspan-src)# erspan-id 100
switch(config-erspan-src)#

This example shows how to configure the flow ID for an ERSPAN destination session:


switch# configure terminal
switch(config)# monitor session 1 type erspan-destination
switch(config-erspan-dst)# erspan-id 100
switch(config-erspan-dst)#

This example shows how to configure the flow ID for a SPAN-on-Drop ERSPAN session:


switch# configure terminal
switch(config)# monitor session 1 type span-on-drop-erspan
switch(config-span-on-drop-erspan)# erspan-id 100
switch(config-span-on-drop-erspan)#

This example shows how to configure the flow ID for a SPAN-on-Latency ERSPAN session:


switch# configure terminal
switch(config)# monitor session 1 type span-on-latency-erspan
switch(config-span-on-latency-erspan)# erspan-id 100
switch(config-span-on-latency-erspan)#

exporter

To specify a NetFlow exporter to use for a NetFlow monitor, use the exporter command. To remove a NetFlow exporter, use the no form of this command.

exporter name

no exporter name

Syntax Description

name

Name of the exporter.

Command Default

None

Command Modes

NetFlow monitor configuration (config-flow-monitor)

Command History

Release

Modification

7.0(0)N1(1)

This command was introduced.

Usage Guidelines

This command does not require a license.

Examples

This example shows how to configure a NetFlow exporter for a NetFlow monitor:


switch(config)# flow monitor Custom-Flow-Monitor-1
switch(config-flow-monitor)# exporter Custom-Flow-Exporter-1
switch(config-flow-monitor)#

This example shows how to remove a NetFlow exporter:


switch(config-flow-monitor)# no exporter