Você está na página 1de 28

SmartOperations

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-1
• Overview
- Upon completion of this module, you will be able to describe Cisco IOS EEM
and how it can be used for automating tasks and troubleshooting. You will be
able to explain the fault management tools and how to use them for
troubleshooting with emphasis on GOLD and the benefits of IP SLA.
• Lesson objectives:
- Upon completing this lesson and given a specific customer scenario, you will
be able to meet the following objectives:
• Explain EEM
• Describe GOLD
• Describe IP SLA
• Describe best practices
• Lab objectives:
- Implement SmartOperations features including EEM, GOLD, and IP SLA

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-3
Smart Install
Flexible NetFlow
Auto Smartports
IP SLAs
Auto-QoS

Cisco Catalyst
SmartOperations
Mediatrace
ERSPAN Flexible NetFlow

Smart Call Home IP SLAs

Protocol Analyzer EEM

TDR, GOLD

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-4
EEM Overview

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-5
• EEM is a Cisco IOS Software HA
Syslog SNMP Watchdog
enhancement that is available Daemon Subsystem Sysmon Redundancy
Facility
on the Catalyst Series Switch
platforms
Timer
• A combination of processes SNMP
Services
Counters

designed to monitor key system Interface IOS


Redundancy
Syslog Counters & Process
parameters such as the Status Watchdog Facility

following:
- CPU utilization Event Detectors

- interface counters Application EEM Server


Specific
- SNMP Event Detector

- Syslog events
- and many more IOS Subsystems TCL Shell

• Acts on specific events or  Subscribes to receive


application events EEM Policy
 Publishes application
thresholds/counters that are events using
 Subscribes to receive
events
exceeded application-specific
event detector
 Implements policy
actions

• http://www.cisco.com/go/eem Event Subscribers

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-7
• Basic EEM architecture building blocks.

Cisco IOS EEM Applet Policy Cisco IOS EEM Tcl Policy
Subscribes to receive events and Subscribes to receive events and
implement policy actions implement policy actions

Policy Director

Cisco IOS EEM Server

SNMP-Notification
IOSWDSYSMON

WDSYSMON
Interface

Process
Counter
Syslog

SNMP

GOLD

APPL
Timer

Track
None

RPC
OIR
CLI

RF

Event Detectors

SNMP Agent Cisco IOS Interface Counters Cisco IOS CLI OIR Syslog HA
CPU Descriptor Blocks (IDBs) Memory Diagnostics Cisco IOS Processes
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-8
Policy Director

Applets Tcl Scripts

• Applets are created using a set • Tcl Scripts cannot be built from
of CLI commands the switch CLI
• The applet becomes part of the • This form of script offers a more
IOS configuration file and is flexible and powerful option for
persistent across system network administrators to apply
reboots actions on a given event
• Use a single “event” statement occurrence
following by a number of “action” • Like the applet, a registered Tcl
statements script is persistent across
system reboots
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-11
Multiple actions can be initiated from within a script
• Policy actions
- Execute an IOS command
- Send a CNS event
Applets - Send an email
- Send a page alert
- Request system information
- Increment/decrement a counter
Policy
- Run another policy
Director - Reload the switch
- Failover the supervisor
- Generate custom syslog
Tcl Scripts - Generate SMNP trap

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-12
• Few of the many uses of EEM

Bring a backup link up Send a page message


when a packet drop to operations if any
threshold has been unauthorized hardware
exceeded in installed/removed

Send an email alert Run specific


when a configuration commands at set time
change is made in intervals to assist in
production hours capacity planning

Generate custom Generate custom login


syslog on scheduled message based on
GOLD diagnostic run user-id that logs in
highlighting hardware
issue
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-13
• Challenge: Without Link State • Solution: Use EEM to monitor
Tracking on the Catalyst 6500, if the state of links A-C and A-D
links A-C and A-D go down, the with Syslog Event Detector. If
server will continue to stay both links go down, shut down
connected to A instead of server port on A to force the
bringing up the link to B. server to use good path through
B.
C D C D
Si Si Si Si

A B A B
Si Si Si Si
We just gave the
Catalyst 6500 a
new feature.
Server Server

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-14
• Define the applet
HTA6503# configure terminal
HTA6503(config)# event manager applet BACKUP-MY-CONFIG

Name the Applet Define the Event Detector

• Define the desired event and action


HTA6503(config-applet)# event cli pattern "write memory" sync yes
HTA6503(config-applet)# action 1.0 cli command "enable"
HTA6503(config-applet)# action 2.0 cli command ”configure terminal”
HTA6503(config-applet)# action 3.0 cli command ”file prompt quiet”
HTA6503(config-applet)# action 4.0 cli command ”end”
HTA6503(config-applet)# action 5.0 cli command ”copy running disk0:running-config”
HTA6503(config-applet)# action 6.0 cli command ”configure terminal”
HTA6503(config-applet)# action 7.0 cli command ”no file prompt quiet”
HTA6503(config-applet)# action 8.0 cli command ”end”

Take Actions
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-16
• EEM policies developed and shared by different developers

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-17
Reports Faults and Takes Action
Call Home, syslogs, SNMP

EEM
Automates actions based on events that
have occurred. TCL-based configurable
fault policy.

GOLD Soft High Availability Troubleshooting


Detects system Detects and corrects Provides intelligent
problems soft failures troubleshooting
proactively and debugging
mechanisms

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-23
Cisco GOLD Overview

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-24
• GOLD implements a number of health checks both at system startup
and while the system is running.
• GOLD complements existing high availability features like NSF/SSO
running in the background, and alerting high availability features when
disruption occurs.
Bootup Diagnostics Diagnostic Results
Check operational status of syslog Message
components
%DIAG-SP-3-MAJOR: Module
Run Time Diagnostics 2: Online Diagnostics detected
a Major Error. Please use
On-demand diagnostics diagnostic Module 2' to see
statically triggered by an test results.
administrator
Scheduled diagnostics to run at Diagnostic Action
a specific time
Invoke action to resolve issue,
Nondisruptive health diagnostics that is reset component, invoke
running in the background high availability action,
CallHome, and so on

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-25
• Distributed GOLD environment
• Local GOLD is active on both supervisors
• Centrally managed by the active supervisor

VS state: Active VS State: Standby


Local GOLD: Active Local GOLD: Active

Virtual Switch Link


(VSL)

Virtual Switch Domain


Distributed
GOLD
Manager

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-27
Interactive
Technical Services

Customer

 Customer Notification TAC


 Device and Message Reports
Internet  Exceptions/Fault Analysis

Contracts
DB
Service Request
Tracking System
Automated
Entitlement
Call Home Check
Diagnosis
Secure Transport Capability
Messages Received:
 Diagnostics
Catalyst 6500 - 12.2(33)SXH Call  Environmental
Catalyst 4500 – 12.2(52)SG Home DB  Syslog
 Inventory and
Configuration

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-30
• Detect a potential problem
• Failover and send an alert

GOLD
EEM

EEM

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-31
• Quick and easy Layer 1 troubleshooting
tool
• TDR helps you determine the following
- Length of cable
- Whether cable is correctly terminated
- Whether cable is improperly cabled (incorrect
pinout)
- Whether cable contains a short (wires
touching each other through damaged or
missing insulation)
- Whether cable contains an “open”
(disconnected or severed wire)
• Not a “Fluke” replacement
P P
O O
R R
T T
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-32
Understanding IP SLA Benefits

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-33
IOS embedded and active measurement solution to assure network service levels and proactively monitor
Enterprise and Small Medium Business Service Providers
end-to-end network health and performance.

Understand Network
Performance and Verify Service Levels Measure and provide
Ease Deployment Verify Outsourced SLAs SLAs

Access Enterprise Backbone Enterprise Service Provider


Service Provider Core
Premise Edge Aggregation Edge

Solution Features and Product Support


Description Benefits
IOS embedded and active Ubiquitous network Applications: Both Cisco
measurement solution to performance and behavior Ubiquitous
internal network
Applications: performance
Both Cisco
and external
assure network service levels visibility and behavior
internal
performance and visibility
external
management
and proactively monitor end- performance
applications
Enable management
operational simplicity
Enable operational simplicity
to-end network health and applications
and excellence
and excellence
performance. Platforms: Cat 3K, Cat4K,
Scalable and lower TCO Scalable andCat
Platforms:
Cat6K lower
3K,TCO
Cat4K,
Cat6K
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-34
On the surface Performance
Management
Order of Operations
Application
1. The IP SLA Source sends a
generated packet to the
destination device.
Any IP
Device
2. Depending on type of IP SLA
SNMP operation, the destination
IP
Network devices responds with
timestamped information.

3. The IP SLA Source calculates


IP SLA IP SLA round-trip time based on
Responder Source difference in timestamp from
send to receive.

Deeper Details (Response Time Calculation)


T2
T1 = packet generated
T1
T4 T3
T2 = packet arrives at responder
IP T3 = responder processes packet
IP SLA Network IP SLA T4 = packet arrives at source
Source Responder

Round Trip Time (RTT) = T4 – T1 – (T3-T2)


© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-37
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-38
CHALLENGE: Customer wants to bring up a SOLUTION: EEM with IP SLA ED monitors IP SLA ICMP
backup link to a secondary remote host if they lose Echo operation. Failure indicates connectivity loss to Primary
connectivity to a primary remote host. Remote Host, causing the switch to shut down the link to the
primary path and bring up link to the secondary path.
Primary Secondary Primary Secondary
Remote Remote Remote Remote
Host Host Host Host
LAN LAN LAN LAN

SP1 SP2 SP1 SP2


Network Network Network Network

Data Packet
IP SLA Source Packet
Si Si
IP SLA Response Packet
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-39
• EEM – Powerful Scripting Tools with a large
community continuing to develop and share scripts
with one another
- They have been doing SDN long before it was cool 
• GOLD – Proactive and On Demand HW Specific
platform testing and fault detection
• Smart Call Home – Allows the device to talk directly
to TAC

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-41
• These are best practice guidelines for customers to follow when using the
features discussed in this module:
1. When using EEM, send an alert (email, syslog, SNMP trap) to notify
network operations staff of the change being made by EEM.
2. Make sure that EEM directories are in the same location for systems
using multiple Supervisor modules.
3. When creating Tcl scripts for EEM, be wary of Microsoft editors as they
add carriage return characters that may cause the script to fail.
4. When using TDR, ensure that the port is up and running.
5. When using TDR, be aware that the 10/100 port tests are disruptive while
the 1G ports tests are not.
6. When using GOLD, make sure you check the details of the test in the
documentation as some tests are extremely disruptive.
7. GOLD tests are run locally in each switch of a VSS.
8. Do not run the Automated System Health Check on a production system.
9. Remember that not all IP SLA operations require the responder on the
target.
10. Use the IP SLA Event Detector with EEM to automate notifications or
other responses to network events.
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-42
• GOLD – We will be initiating a disruptive test and
then examining the results.
• IP SLA and an EEM Script – We will set up an SLA
and then use an EEM Applet to monitor the SLA
and take action based on the results.

© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-43
© 2013 Cisco and/or its affiliates. All rights reserved. CONFIDENTIAL SmartOperations UASEBC v1.0—7-49

Você também pode gostar