0% found this document useful (0 votes)
159 views16 pages

Brksan-2883 - 2018-91-106

Uploaded by

Pavan Nav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
159 views16 pages

Brksan-2883 - 2018-91-106

Uploaded by

Pavan Nav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

SAN Analytics

Pull Query format


• show analytics query ‘query syntax’
• Query Syntax
• select all | column1[,column2…]
• from analytics_type.view_type
• [where filter_list1 [[and | or ] filter_list2 …]]
• [sort column]
• [limit number]

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
SAN Analytics
Pull Query Examples
MDS9710-1# show analytics query 'select all from fc-scsi.scsi_initiator'
{ "values": {
"1": {
"port": "fc9/16",
"vsan": "1",
"initiator_id": "0xc0100",
... 50 metrics total!
"read_io_timeouts": "129",
"write_io_timeouts": "0"
},
"2": {
"port": "fc9/32",
"vsan": "1",
"initiator_id": "0xc00e0",
...
"read_io_timeouts": "2",
"write_io_timeouts": "4"
}
}} #CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
SAN Analytics
Pull Query Examples – Query with “where” key filter
MDS9710-1# show analytics query 'select all from fc-scsi.scsi_initiator where port=fc9/16'
{ "values": {
"1": {
"port": "fc9/16",
"vsan": "1",
"initiator_id": "0xc0100",

"write_io_initiation_time_max": "1277985",
"read_io_inter_gap_time_min": "26",
"read_io_inter_gap_time_max": "33834735",
"write_io_inter_gap_time_min": "26",
"write_io_inter_gap_time_max": "56612131",
"read_io_aborts": "0",
"write_io_aborts": "0",
"read_io_failures": "0",
"write_io_failures": "0",
"read_io_timeouts": "43346",
"write_io_timeouts": "4237"
#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
SAN Analytics
showanalytics Overlay CLI - Syntax
MDS9710-1# showanalytics --help
usage: analytics [-h] [--version] [--info] [--errors] [--initiator-itl]
[--target-itl] [--interface INTERFACE] [--vsan VSAN]
[--target TARGET] [--initiator INITIATOR] [--lun LUN]

optional arguments:
-h, --help show this help message and exit
--version version
--info --info | --errors mandatory
--errors --info | --errors mandatory
--initiator-itl --initiator-itl | --target-itl mandatory
--target-itl --initiator-itl | --target-itl mandatory
--interface INTERFACE fc interface
--vsan VSAN vsan
--target TARGET target FCID
--initiator INITIATOR initiator FCID
--lun LUN lun

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
SAN Analytics
showanalytics - Overlay CLI – Example - Info
MDS9710-1# showanalytics --initiator-itl --info

Interface fc9/32
+----------------------------------------+------------+-----------------+----------------+
| VSAN|I|T|L | Avg IOPS | Avg Thput (B/s) | Avg ECT (usec) |
+----------------------------------------+------------+-----------------+----------------+
| | Read|Write | Read|Write | Read|Write |
| | | | |
| 1|0xc00e0|0x560020|0000-0000-0000-0000 | 0|0 | 0|0 | 10208|6032 |
+----------------------------------------+------------+-----------------+----------------+

Interface fc9/16
+----------------------------------------+------------+--------------------+----------------+
| VSAN|I|T|L | Avg IOPS | Avg Thput (B/s) | Avg ECT (usec) |
+----------------------------------------+------------+--------------------+----------------+
| | Read|Write | Read|Write | Read|Write |
| | | | |
| 1|0xc0100|0x560001|0000-0000-0000-0000 | 2311|1199 | 302940160|39305216 | 1936|2300 |
| 1|0xc0100|0x560020|0000-0000-0000-0000 | 2409|3661 | 78946304|119980032 | 219|5238 |
+----------------------------------------+------------+--------------------+----------------+

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
SAN Analytics
showanalytics - Overlay CLI - Example - Errors
MDS9710-1# showanalytics --interface fc9/16 --initiator-itl --errors

Interface fc9/16
+----------------------------------------+---------------------+-----------------+
| VSAN|I|T|L | Total SCSI Failures | Total FC Aborts |
+----------------------------------------+---------------------+-----------------+
| | Read|Write | Read|Write |
| | | |
| 1|0xc0100|0x560001|0000-0000-0000-0000 | 0|0 | 0|0 |
| 1|0xc0100|0x560020|0000-0000-0000-0000 | 0|0 | 0|2 |
+----------------------------------------+---------------------+-----------------+

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
SAN Analytics
showanalytics - Overlay CLI – python source
• “source copy-sys” command copies all scripts to bootflash:scripts

MDS9710-1# show file bootflash:/scripts/analytics.py


#!/usr/bin/env python

##############################################################
# Copyright (c) 2017 by Cisco Systems, Inc. #
##############################################################

import sys
import argparse
import json
from prettytable import *

import cli

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
SAN Analytics
Analytics congestion-drops
MDS9706-2# show analytics type fc-scsi flow congestion-drops
|=====================================================================================|
| | | Source |Destination| Congestion | Timestamp |
| INTF | VSAN | FCID | FCID | Drops(delta) | |
|=====================================================================================|
| fc6/1 | 0001 | 0xFFFC56 | 0xFFFC99 | 00000002 | 1. 02/08/18 15:27:18.051 |
| fc6/1 | 0237 | 0x350040 | 0xCC0060 | 00000192 | 2. 02/08/18 15:27:08.053 |
| fc6/1 | 0237 | 0xFFFC35 | 0xFFFCB1 | 00000002 | 3. 02/08/18 15:27:03.050 |
| fc6/1 | 0001 | 0xFFFC56 | 0xFFFC99 | 00000002 | 4. 02/08/18 15:27:03.050 |
| fc6/1 | 0001 | 0xFFFC56 | 0xFFFC99 | 00000002 | 5. 02/08/18 15:26:48.039 |
| fc6/1 | 0237 | 0x350040 | 0xCC0060 | 00000116 | 6. 02/08/18 15:26:48.039 |
| fc6/1 | 0237 | 0x350040 | 0xCC0060 | 00000103 | 7. 02/08/18 15:26:33.031 |
| fc6/1 | 0237 | 0x350040 | 0xCC0060 | 00000170 | 8. 02/08/18 15:26:28.028 |
| fc6/1 | 0001 | 0xFFFC56 | 0xFFFC99 | 00000002 | 9. 02/08/18 15:26:18.019 |
| fc6/1 | 0237 | 0xFFFC35 | 0xFFFCB1 | 00000002 |10. 02/08/18 15:26:08.012 |
| fc6/1 | 0237 | 0xFFFC35 | 0xFFFCED | 00000001 |11. 02/08/18 15:26:08.012 |
| fc6/1 | 0001 | 0xFFFC56 | 0xFFFC0C | 00000001 |12. 02/08/18 15:26:08.012 |
| fc6/1 | 0001 | 0xFFFC56 | 0xFFFC99 | 00000001 |13. 02/08/18 15:26:08.012 |
| fc6/1 | 0237 | 0xFFFC35 | 0xFFFCB1 | 00000002 |14. 02/08/18 15:26:03.009 |
|=====================================================================================|

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
SAN Analytics
Clearing metrics
Metrics can be cleared to reset totals, min, max, etc.

Clear all statistics in view fc-scsi.scsi_initiator


• clear analytics 'select all from fc-scsi.scsi_initiator’

Clear all statistics in view fc-scsi.scsi_initiator only for port fc9/16


• clear analytics 'select all from fc-scsi.scsi_initiator where port=fc9/16'

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
SAN Analytics
Documentation
• Cisco MDS 9000 Series NX-OS SAN Telemetry Streaming
Configuration Guide

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 102
Summary
• New features are being introduced frequently
• Understand and implement the many features provided
• MDS release notes have information on new features

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
Additional Relevant Sessions
Storage Networking – Cisco Live Orlando 2018
• BRKDCN-1008 - Managing Data Center Networks using Cisco Data Center Network Manager(DCNM)
Art Scrimo Monday, Jun 11, 08:30 a.m. - 10:00 a.m.

• BRKDCN-2494 - NVMe, and NVMe over Fabrics Deep Dive


J Metz Tuesday, Jun 12, 01:30 p.m. - 03:30 p.m.

• CTHDCN-2598 - Cisco SAN Insights: Knowledge is power!


Art Scrimo Wednesday, Jun 13, 08:30 a.m. - 9:00 a.m.

• BRKDCN-1121 - Fiber Channel Networking for the IP Network Engineer and SAN Core Edge Design
Chad Hintz Wednesday, Jun 13, 10:30 a.m. - 12:00 p.m.

• PSODCN-1130 - Cisco Storage Networking: Linking Technology and Innovation to Solve Business Pr
Adarsh Viswanathan Wednesday, Jun 13, 03:30 p.m. - 04:30 p.m.

• BRKDCN-2010 - Designing Storage Networks for next decade in an All Flash Data Center
Mark Allen Thursday, Jun 14, 10:30 a.m. - 12:00 p.m.

• BRKNMS-2002 - Management, Monitoring, and Automation of Data Center Deployments with DCNM 11
Ahmed Abeer Thursday, Jun 14, 10:30 a.m. - 12:00 p.m.

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
Complete your online session evaluation

Give us your feedback to be entered


into a Daily Survey Drawing.
Complete your session surveys through
the Cisco Live mobile app or on
www.CiscoLive.com/us.
Don’t forget: Cisco Live sessions will be available for viewing
on demand after the event at www.CiscoLive.com/Online.

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Continue
your Demos in
the Cisco
Walk-in
self-paced
Meet the
engineer
Related
sessions
education campus labs 1:1
meetings

#CLUS BRKSAN-2883 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
Thank you

#CLUS
#CLUS

You might also like