Professional Documents
Culture Documents
BRKNMS 2035
BRKNMS 2035
BRKNMS 2035
Your Network
BRKNMS-2035
Joe Clarke Distinguished Support Engineer
Jason Davis Distinguished Services Engineer
BRKNMS-2035
Cisco Public
Non-Information
Silence your phone, PDA, pager, MP3 player
At CiscoLive! your evaluation is extremely important
Please remember to wear your badge at all times
Please visit the World of Solutions
You can ask questions any time
BRKNMS-2035
Cisco Public
BRKNMS-2035
Cisco Public
Session Abstract
For
Your
Reference
Cisco Prime LAN Management Solution is a very powerful tool for managing
virtually all aspects of your network. With all of its capabilities, it may be
easy to overlook some of LMS's features that can make configuring,
monitoring and understanding your network easier.
In this session, we will start with a brief overview of LMS, then jump into ten
tips and tricks using various LMS features to help you get the most out of
your network management platform. Some of the examples discussed will
be configuration baseline essentials, simplified software management, and
customizable performance monitoring.
This session is relevant to network management administrators, engineers,
and system integrators using Cisco Prime LMS in their enterprise.
Attendees should already be familiar with the basics of LMS.
BRKNMS-2035
Cisco Public
Release Highlights
W Faster Installation
W Intuitive Getting Started
Wizard
W Revamped GUI
W Modern Standardized
Style
W Pragmatic
W Intuitive
W MegaMenu
W Consistent Navigation
W Actionable Global Search
W Quick Access to all the tools
BRKNMS-2035
W Standards-based
compliance and auditing
W Graphical configuration
template builder
W Simplified device discovery
W Medianet Work Center
W Smart Interactions
W Open a TAC case
W Search Cisco Support
Community
Cisco Public
Easier Installation
Single DVD installation
Installation down to 45 mins from 2 hours
Installation includes database as well as the application
New hardware options for Installation
Cisco UCS B and C Series Chassis
Variety of OS supported for Installation
Windows 2008 (64-bit only), 2008 R2
Turnkey virtual appliance
Solaris 10
Virtualization
VMWare vSphere 3.x, 4.x, 5.0
Hyper V
Solaris Zones
BRKNMS-2035
Cisco Public
BRKNMS-2035
Cisco Public
Actionable
Mouse-Overs for More
Contextual Tools!
BRKNMS-2035
Cisco Public
10
Consistent
Global
Menu
Legacy
Navigation
MegaMenu
BRKNMS-2035
Cisco Public
11
Steps:
1. Log in to vSphere Client (pointed
to either ESX Host or vCenter).
2. Choose File > Deploy OVF
Template.
1.
2.
Option 1
Option 2
BRKNMS-2035
Cisco Public
12
2
1
2
1
BRKNMS-2035
Cisco Public
13
Easy Workflow
W Import
W Manage
W Deploy
BRKNMS-2035
Cisco Public
14
BRKNMS-2035
Cisco Public
15
Compliance Reports
PCI DSS
Compliance
Report
Compliance
Reports
:
Provide
informaon
about
regulatory
compliance
state
like
HIPPA,
SoX
,
PCI
DSS
etc.
and
network
specic
compliant
requirement
BRKNMS-2035
Cisco Public
16
Neatly
Organized
BRKNMS-2035
Easy to Find
Cisco Public
17
Tip 1
Tips for a Better Device Discovery
BRKNMS-2035
Cisco Public
19
20
Cisco Public
21
hps://suppororums.cisco.com/docs/DOC-9005
22
Tip 2
Dynamic Device Groups
Solution
Use the Group Selector versus the Device Selector to define the jobs
target devices.
BRKNMS-2035
Cisco Public
24
BRKNMS-2035
Cisco Public
25
BRKNMS-2035
Cisco Public
26
BRKNMS-2035
Cisco Public
27
BRKNMS-2035
Cisco Public
28
BRKNMS-2035
Cisco Public
29
Tip 3
Syslog Automated Actions
Solution
Set up the device with an IOS Resource Manager configuration monitoring the CPU
[can be deployed with NetConfig]
Use the Syslog event message %SYS-4-CPURERISING to be an automated action
trigger that kicks off a script that runs a cwcli netshow to get show process cpu
sorted 1min and sends an email alert with the results
BRKNMS-2035
Cisco Public
31
Cisco Public
32
Script Prep
Create a script in this directory:
Windows
<install_dir>\files\scripts\syslog
Solaris
/var/adm/CSCOpx/files/scripts/syslog
For Windows LMS can trigger a batch file. Create the following .bat file
which calls another Perl script (.pl)
For Solaris LMS can trigger a shell script
BRKNMS-2035
Cisco Public
33
Solaris - AutoNetshowProcs.sh
#!/bin/sh
#
# AutoNetshowProcs.sh
Jason Davis (jadavis@cisco.com)
#
Initiated by Cisco Prime LMS Syslog Automated Action event from %SYS-4-CPURESRISING
#
messages; script then invokes cwcli netshow to get top processes on the device
LMSBIN=/opt/CSCOpx/bin
EMAILTO=jadavis@cisco.com
DEVICE=$1
SYSLOGMSG=$2
CWCLIFILE=/opt/CSCOpx/scripts/cwlmscreds
export CWCLIFILE
CWCLIOUTPUT=`$LMSBIN/cwcli netshow createjob -u lmsautoadmin -device $DEVICE -customcmd "show proc cpu sorted
1min" -description "AUTOMATED CWCLI: Get $DEVICE CPU Processes`
JOBNUM=`echo $CWCLIOUTPUT | perl -ne 'm/(\d+)/; print "$1"`
sleep 60
CWCLIOUTPUT2=`$LMSBIN/cwcli netshow jobresults -u lmsautoadmin -id $JOBNUM`
echo "Device $DEVICE reported the following:\n$SYSLOGMSG\n\nCisco Prime LMS retrieved this:\n$CWCLIOUTPUT2\n" |
mailx -s "AUTOMATED LMS Job $JOBNUM Results" $EMAILTO
BRKNMS-2035
Cisco Public
34
Windows AutoNetshowProcs.bat
@echo off
rem Windows batch file to call AutoNetshowProcs.pl Perl script
set NMSROOT="C:\Program Files (x86)\CSCOpx
set Device=%1
set Message=
rem throw the first parameter away and put all others into one parameter list
:loop
shift
if [%1]==[] goto afterloop
set Message=%Message% %1
goto loop
:afterloop
cd %NMSROOT%\files\scripts\syslog
%NMSROOT%\bin\perl AutoNetshowProcs.pl -d %Device% -m %Message%
BRKNMS-2035
Cisco Public
35
= "From: $from\n;
.= "To: $to\n;
.= "Subject: $subject\n;
.= "\n;
2012 Cisco and/or its affiliates. All rights reserved.
Cisco Public
36
return $rc;
BRKNMS-2035
Cisco Public
37
Cisco Public
38
Go
to
Monitor
>
Fault
Sengs
/
Syslog
>
Automated
Acons
Create
a
New
Syslog
Automated
Acon
BRKNMS-2035
Cisco Public
39
BRKNMS-2035
Cisco Public
40
Cisco Public
41
Cisco Public
42
BRKNMS-2035
Cisco Public
43
Cisco Public
44
BRKNMS-2035
Cisco Public
45
Tip 4
Database Access
Solution
Open Database Support for LMS
47
BRKNMS-2035
Cisco Public
48
dbaccess
The system prompts for passwords for the lmsdatafeed and lmssecuredatafeed
users
BRKNMS-2035
Cisco Public
49
BRKNMS-2035
DSN
Port
cmfDb
43441
aniDb
43443
rmengdb
43455
dfmFhDb
43445
Cisco Public
50
BRKNMS-2035
Cisco Public
51
BRKNMS-2035
Cisco Public
52
BRKNMS-2035
Cisco Public
53
BRKNMS-2035
Cisco Public
54
BRKNMS-2035
Cisco Public
55
BRKNMS-2035
Cisco Public
56
Tip 5
Using cwcli to Customize Reporting
Solution
Were going to use the LMS API, cwcli, to access the inventory and produce a
CSV report that gives our administrators exactly what they need
Update Apache allow_files.conf
<install_dir>/MDC/Apache/conf/allow_files.conf
Add a new line with DIR=/USER
BRKNMS-2035
Cisco Public
58
This allows us to use cwcli without providing the user password at the
command-line, enhancing security.
Set environment variable, CWCLIFILE, equal to the path and filename,
e.g.
Windows:
C:\Program Files\CSCOpx>set CWCLIFILE=C:\Program Files\CSCOpx\scripts\cwlmscreds
Solaris
lmsuser@lms42$ CWCLIFILE=/opt/CSCOpx/scripts/cwlmscreds
lmsuser@lms42$ export CWCLIFILE
BRKNMS-2035
Cisco Public
59
BRKNMS-2035
Cisco Public
60
BRKNMS-2035
Cisco Public
61
Review Output
lmsadmin@lms42:/opt/CSCOpx/bin$ cat /opt/CSCOpx/htdocs/USER/rtpnml-inv.csv
Name,Model,Serial Number,MAC,IP
SER206-48.ciscolive.local,WS-C3750X-24P-S,FDO1547K125,28:94:0f:9e:d4:41,10.127.6.49
SER208-24.ciscolive.local,WS-C3750X-24P-S,FDO1547P14A,28:94:0f:bc:76:c1,10.127.8.25
SER207-48.ciscolive.local,WS-C3750X-24P-S,FDO1547P145,28:94:0f:bc:6b:41,10.127.7.49
SER212-08.ciscolive.local,WS-C3560CG-8PC-S,FOC1544W1BV,d4:d7:48:57:4b:41,10.127.12.9
SER210-09.ciscolive.local,WS-C3560CG-8PC-S,FOC1544W1C6,d4:d7:48:56:ac:c1,10.127.10.10
SER210-00.ciscolive.local,WS-C3750X-24P-S,FDO1447P1FJ,e0:5f:b9:6f:db:56,10.127.10.1
SER210-24.ciscolive.local,WS-C3750X-24P-S,FDO1546P1D3,28:94:0f:82:7f:c1,10.127.10.25
SER213-00.ciscolive.local,WS-C3750X-24P-S,FDO1547R09N,28:94:0f:a1:a4:d6,10.127.13.1
SER203-00.ciscolive.local,WS-C3750X-24P-S,FDO1415P0PB,54:75:d0:82:a4:56,10.127.3.1
SER210-11.ciscolive.local,WS-C3750X-24P-S,FDO1547P14G,28:94:0f:bc:80:c1,10.127.10.12
SER209-24.ciscolive.local,WS-C3750X-24P-S,FDO1547K11W,28:94:0f:a1:ac:c1,10.127.9.25
SER210-10.ciscolive.local,WS-C3750X-24P-S,FDO1547R05B,28:94:0f:a3:c1:41,10.127.10.11
SER204-00.ciscolive.local,WS-C3750X-24P-S,FDO1415P0P2,54:75:d0:82:a0:56,10.127.4.1
SER211-00.ciscolive.local,WS-C3750X-24P-S,FDO1526P04M,30:e4:db:e2:51:d6,10.127.11.1
SER205-00.ciscolive.local,WS-C3750X-24P-S,FDO1415P0R4,54:75:d0:96:12:56,10.127.5.1
SER214-00.ciscolive.local,WS-C3750X-24P-S,FDO1526P04V,30:e4:db:d8:8b:56,10.127.14.1
SER206-00.ciscolive.local,WS-C6506-E,SAL1123QPE8,00:1c:57:04:ec:80,10.127.6.1
SER212-00.ciscolive.local,WS-C3750X-24P-S,FDO1447P1FG,e0:5f:b9:6f:dc:56,10.127.12.1
SER208-00.ciscolive.local,WS-C3750X-24P-S,FDO1415P0NN,54:75:d0:82:80:d6,10.127.8.1
SER210-12.ciscolive.local,WS-C3750X-24P-S,FDO1547K14H,28:94:0f:bc:77:41,10.127.10.13
BRKNMS-2035
Cisco Public
62
Review Output
lmsadmin@lms42:/opt/CSCOpx/bin$ cat /opt/lms_scripts/bin/getinv.pl
#!/opt/CSCOpx/bin/perl
use strict;
use XML::DOM;
my $parser = new XML::DOM::Parser;
my $doc = $parser->parsefile($ARGV[0]);
my $nodes = $doc->getElementsByTagName("RMEPlatform");
my $n = $nodes->getLength;
unless (open (OUTFILE, ">" . $ARGV[1])) {
die "Error opening $ARGV[1] for writing: $!";
}
print OUTFILE "Name,Model,Serial Number,MAC,IP\n";
for (my $i = 0; $i < $n; $i++) {
my $node = $nodes->item($i);
my $chassis = $node->getElementsByTagName("Cisco_Chassis")->item(0);
my $ne = $node->getElementsByTagName("Cisco_NetworkElement")->item(0);
my $serial = '';
my $model = '';
Cisco Public
BRKNMS-2035
2012 Cisco and/or its affiliates. All rights reserved.
if ($chassis) {
63
BRKNMS-2035
Cisco Public
64
Tip 6
Importing Existing IPSLA Collectors
Solution
Use the LMS CLI utility for importing existing IPSLA collectors
BRKNMS-2035
Cisco Public
66
: It imports the collectors whose details are present in the specified file or from the specified source devices.
Usage
argumentFile]
: ipm importcollector -u userid -p password [-m email] {-file filename | -source (sourceDisplayNames|All) [-oper OperationRttTypeName|All]} [-input
-u
-m
-p
-file
-source
-oper
for
"-oper" option
Echo
UDPEcho
PathEcho
TCPConnect
UDPJitter
DLSW
DHCP
FTP
VOIP
RTP
ICMPJitter
EthernetPing
EthernetPingAutoIPSLA
EthernetJitter
EthernetJitterAutoIPSLA
HTTP
DNS
Video
-input
Copyright (C) 1998 - 2012 Cisco Systems, Inc. All rights reserved.
BRKNMS-2035
The importcollector
Argument Will Allow Us to Import
Some or All of the Configured
Collectors on the Device
Cisco Public
67
: 2
: 2
: 0
SUMMARY
========
Cisco Public
68
Cisco Public
69
BRKNMS-2035
Cisco Public
70
Tip 7
Creating Custom Config Templates
Cisco Public
72
Cisco Public
73
BRKNMS-2035
Cisco Public
74
BRKNMS-2035
Cisco Public
75
BRKNMS-2035
Cisco Public
76
BRKNMS-2035
Cisco Public
77
BRKNMS-2035
Cisco Public
78
BRKNMS-2035
Cisco Public
79
BRKNMS-2035
Cisco Public
80
BRKNMS-2035
Cisco Public
81
BRKNMS-2035
Cisco Public
82
BRKNMS-2035
Cisco Public
83
no ip http server
!
logging $RSYSLOG
logging syslog-corp
!
BRKNMS-2035
Cisco Public
84
BRKNMS-2035
Cisco Public
85
BRKNMS-2035
Cisco Public
86
BRKNMS-2035
Cisco Public
87
Note:
Administrator-level
users
get
ALL
available
template
assigned
by
default.
You
only
need
this
funcon
for
non-admin
users.
BRKNMS-2035
Cisco Public
88
BRKNMS-2035
Cisco Public
89
BRKNMS-2035
Cisco Public
90
BRKNMS-2035
Cisco Public
91
BRKNMS-2035
Cisco Public
92
BRKNMS-2035
Cisco Public
93
BRKNMS-2035
Cisco Public
94
BRKNMS-2035
Cisco Public
95
BRKNMS-2035
Cisco Public
96
BRKNMS-2035
Cisco Public
97
Tip 8
Advanced Baseline Templates
Solution
Use LMS Configuration Baseline Compliance to match ports that are
configured for switchport mode access and then configure
no logging event link-status
BRKNMS-2035
Cisco Public
99
Conguraon
>
Compliance
/
Compliance
Templates
>
Templates
Create
an
Advanced
Mode
Template,
Provide
a
Name
and
Select
Appropriate
Device
Type(s)
BRKNMS-2035
Cisco Public
100
Cisco Public
101
Cisco Public
102
BRKNMS-2035
Cisco Public
103
Tip 9
Using Smart Interactions
Solution
Use the Smart Interactions capabilities within LMS
Real-time access to Cisco Support Community contextual access for
discussion forum with networking experts
Integrated Cisco Service Request
management automates the service request process, attaches key info
needed for faster case resolution
BRKNMS-2035
Cisco Public
105
Cisco Public
106
BRKNMS-2035
Cisco Public
107
BRKNMS-2035
Cisco Public
108
BRKNMS-2035
Cisco Public
109
Tip 10
Using Performance Management for Custom
MIB Objects
Solution
Use the LMS 4.2 performance management feature; it has pre-built capabilities for
CPU, Memory, Interface and Errors
Well extend it to monitor OSPF SPF runs
Load the OSPF-MIB into LMS, then define a custom template for monitoring the
ospfSpfRuns object. Define a custom poller to monitor this object for all routers
across all OSPF areas. The results can be graphed and reports can be run to see
where network stability issues may exist.
BRKNMS-2035
Cisco Public
111
BRKNMS-2035
Cisco Public
112
Cisco Public
113
Cisco Public
114
Building a Template
BRKNMS-2035
Cisco Public
115
Cisco Public
116
Cisco Public
117
Cisco Public
118
BRKNMS-2035
Cisco Public
119
BRKNMS-2035
Cisco Public
120
Cisco Public
121
In Conclusion
LMS has gone through many UI and functional changes
We hope youve enjoyed these LMS Tips
Realize that LMS is a diverse product suite with many features
Use these to spur other ideas for monitoring in your unique environment
Come by the NOC or request a Meet The Engineer session with either of
us for additional 1-on-1 time
BRKNMS-2035
Cisco Public
122
Monday
Tuesday
Monday
Session
Title
BRKNMS-2515
BRKNMS-2658
BRKNMS-3043
BRKNMS-1037
BRKNMS-3021
CCSNMS-1903
PSONMS-1038
BRKNMS-1032
BRKNMS-3132
Advanced NetFlow
BRKNMS-2035
BRKNMS-2035
Cisco Public
123
Monday
Thursday
Wednesday
Session
Title
BRKNMS-2512
Moving Cloud from hype to realty: Delivering Cloud using management architecture
BRKNMS-2031
PSONMS-1038
BRKNMS-2514
BRKNMS-2513
Best practices for cloud automation with Cisco Intelligent Automation software
BRKNMS-2202
BRKNMS-2030
BRKNMS-1036
Simplify Network Management and Reduce Operational Costs with Cisco Prime
BRKNMS-2511
BRKNMS-2031
BRKNMS-1035
BRKNMS-2035
Cisco Public
124
BRKNMS-2035
Cisco Public
Bonus Tip 1
Dynamic User Tracking
Solution
Enable Dynamic User Tracking to provide the most up-to-date information for
network administrators and help desk users
Relies on CISCO-MAC-NOTIFICATION-MIB
Device/Image
Support:
hp://tools.cisco.com/ITDIT/MIBS/AdvancedSearch?MibSel=250091
BRKNMS-2035
Cisco Public
127
Campus Manager
LMS UT Processes
cmnMacChangedNotification
Traps
Dynamic Updates Are Written to
the UT Database in Real-Time
Switch
Sends
a
cmnMacChangedNocaon
Trap
User
Connects
BRKNMS-2035
Cisco Public
128
Cisco Public
129
BRKNMS-2035
Cisco Public
130
Bonus Tip 2
Cisco Public
132
Cisco Public
133
BRKNMS-2035
Cisco Public
134
BRKNMS-2035
Cisco Public
135
BRKNMS-2035
Cisco Public
136
BRKNMS-2035
Cisco Public
137
BRKNMS-2035
Cisco Public
138
Cisco Public
139
BRKNMS-2035
Cisco Public
140
Collapse
the
<device-ltering-details>
Level
to
See
More
Specic
Informaon
BRKNMS-2035
Cisco Public
141
Custom Defined
Parameters Go Here
BRKNMS-2035
Cisco Public
142
BRKNMS-2035
Cisco Public
143
Cisco Public
144
Cisco Public
145
BRKNMS-2035
Cisco Public
146
BRKNMS-2035
Cisco Public
147
BRKNMS-2035
Cisco Public
148
Cisco Public
149
Cisco Public
150
BRKNMS-2035
Cisco Public
151
BRKNMS-2035
Cisco Public
152
BRKNMS-2035
Cisco Public
153
BRKNMS-2035
Cisco Public
154
BRKNMS-2035
Cisco Public
155
BRKNMS-2035
Cisco Public
156
Bonus Tip 3
Software Image Management Automation
BRKNMS-2035
Cisco Public
158
The selected image and storage media is validated and verified for
dependencies and requirements based on the device information that you
have provided at the time of adding devices to the Device and Credential
Repository and the device data that is collected by the inventory.
The images that you want to distribute must be available in the Software
repository.
You can use this method to upgrade the System software on all Software
Management supported devices. You can also upgrade module software
on those modules which have a management IP address.
The modules/interfaces that do not have a management IP address
cannot be upgraded using this method.
BRKNMS-2035
Cisco Public
159
An input file that contains the details of the device and image must be available
in this directory:
On Solaris:
/var/adm/CSCOpx/files/rme/swim/advdistinput
On Windows:
<NMSROOT>/files/rme/swim/advdistinput
The input file must contain the information in CSV format and all the fields are
mandatory:
device_display_name,image_in_repository,flash_destination,module_identifier
For example:
Rtr1750,c1700-sy56i-mz.121-24.bin,flash:1,0
BRKNMS-2035
Cisco Public
160
BRKNMS-2035
Cisco Public
161
Navigate
to
Conguraon
>
Tools
/
Soware
Image
Management
>
Soware
D
istribuon
Cisco Public
BRKNMS-2035
2012 Cisco and/or its affiliates. All rights reserved.
162
BRKNMS-2035
Cisco Public
163
BRKNMS-2035
Cisco Public
164
BRKNMS-2035
Cisco Public
165
Select Verify
BRKNMS-2035
Cisco Public
166
BRKNMS-2035
Cisco Public
167
Cisco Public
168
BRKNMS-2035
Cisco Public
169
Final Thoughts
Get hands-on experience with the Walk-in Labs located in World of
Solutions, booth 1042
Come see demos of many key solutions and products in the main Cisco
booth 2924
Visit www.ciscoLive365.com after the event for updated PDFs, ondemand session videos, networking, and more!
Follow Cisco Live! using social media:
Facebook: https://www.facebook.com/ciscoliveus
Twitter: https://twitter.com/#!/CiscoLive
LinkedIn Group: http://linkd.in/CiscoLI
BRKNMS-2035
Cisco Public
170
BRKNMS-2035
Cisco Public