SlideShare une entreprise Scribd logo
1  sur  12
Charting and DataVisualization with PowerShell
Hemanth C. Damecharla
@sqlchow
http://sqlchow.wordpress.com
Why Should I Automate?
The job of an administrator entails various administrative duties that do not
change from day to day and can be tedious chores. By automating recurring
administrative tasks and responses to server events, you can free time to
perform tasks that require creativity and lack predictable or programmable
responses.
Why visualize the results
• Effective presentation of case-in-point scenarios.
• Gives visibility to the KPIs being impacted by the work you are doing.
• Create impact.
A little something about Reflection &
Assemblies
• In essence Namespaces are just like containers.
• An assembly is a packaged chunk of functionality.
• Reflection is the namespace that tells Windows PowerShell exactly which
assembly class to use.
[AppDomain]::CurrentDomain.GetAssemblies() | Sort-Object -Property FullName | Format-Table -Property FullName
Quick Demo –Top 5 memory
consuming processes
Our Data will come from the below
snippet:
Get-Process | sort PrivateMemorySize -
Descending | Select-Object -First 5
Anatomy of a chart
What’s in my chart?
• The Chart object is the first object you create.
All other elements get attached to this object. It
has a lot of properties which are only useful
when you want to display your chart in a GUI.
But it also determines the size of your chart(s).
• The ChartArea object defines how the chart
grid looks like, it also holds the axis titles and
some overall design options.
• The data Series makes your chart a chart. It not
only defines the displayed values (data points),
but it also sets the style (“type”) your data is
displayed in.
Demo: Building Charts
from Perfmon Data
We will look at a couple of things here.
• Getting the headers from CSV files.
• Getting the data in a way that
makes it easy to bind it to an axis.
Are we limited in the kind
of data we can plot
Not that I know off.
Let’s check out the data from the NIKE
app in an apple device and see if we can
plot the data.
OtherTools
• No discussion on visualization and charting is complete without mentioning
SeeShell.
• SeeSheel is the brainchild of Jim Christopher, aWindows PowerShell MVP
and a founder of Code Owls LLC
• SeeShell is a toolkit to visualize the data from various sources such asWMI
objects, performance counters, event logs, files, databases, system
events, etc.
• It has the ability to render graphs asynchronously as well.
Quick Demo: SeeShell
{Get-ChildItem -Path C:usershemanth
-Recurse | ?{($_.PSIsContainer -eq
$false) -and ($_.Length -gt 1024)}} |
Out-Chart -Name 'Files gt than 1KB' -
TypeColumn -Plot Length -by Name
Shout outs
• You guys. Especially the guys organizing the event.
• Denniver Reining (http://bytecookie.wordpress.com).The awesome chart
diagrams he has on this blog are the inspiration for the anatomy of a chart
slides.
• Richard MacDonald’s blog post on PowerShell Charting.
• Jim Christopher (@beefarino) for creating SeeShell.

Contenu connexe

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

En vedette

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

En vedette (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Aug10 psbug charting_and_data_visualization_with_power_shell

  • 1. Charting and DataVisualization with PowerShell Hemanth C. Damecharla @sqlchow http://sqlchow.wordpress.com
  • 2. Why Should I Automate? The job of an administrator entails various administrative duties that do not change from day to day and can be tedious chores. By automating recurring administrative tasks and responses to server events, you can free time to perform tasks that require creativity and lack predictable or programmable responses.
  • 3. Why visualize the results • Effective presentation of case-in-point scenarios. • Gives visibility to the KPIs being impacted by the work you are doing. • Create impact.
  • 4. A little something about Reflection & Assemblies • In essence Namespaces are just like containers. • An assembly is a packaged chunk of functionality. • Reflection is the namespace that tells Windows PowerShell exactly which assembly class to use. [AppDomain]::CurrentDomain.GetAssemblies() | Sort-Object -Property FullName | Format-Table -Property FullName
  • 5. Quick Demo –Top 5 memory consuming processes Our Data will come from the below snippet: Get-Process | sort PrivateMemorySize - Descending | Select-Object -First 5
  • 6. Anatomy of a chart
  • 7. What’s in my chart? • The Chart object is the first object you create. All other elements get attached to this object. It has a lot of properties which are only useful when you want to display your chart in a GUI. But it also determines the size of your chart(s). • The ChartArea object defines how the chart grid looks like, it also holds the axis titles and some overall design options. • The data Series makes your chart a chart. It not only defines the displayed values (data points), but it also sets the style (“type”) your data is displayed in.
  • 8. Demo: Building Charts from Perfmon Data We will look at a couple of things here. • Getting the headers from CSV files. • Getting the data in a way that makes it easy to bind it to an axis.
  • 9. Are we limited in the kind of data we can plot Not that I know off. Let’s check out the data from the NIKE app in an apple device and see if we can plot the data.
  • 10. OtherTools • No discussion on visualization and charting is complete without mentioning SeeShell. • SeeSheel is the brainchild of Jim Christopher, aWindows PowerShell MVP and a founder of Code Owls LLC • SeeShell is a toolkit to visualize the data from various sources such asWMI objects, performance counters, event logs, files, databases, system events, etc. • It has the ability to render graphs asynchronously as well.
  • 11. Quick Demo: SeeShell {Get-ChildItem -Path C:usershemanth -Recurse | ?{($_.PSIsContainer -eq $false) -and ($_.Length -gt 1024)}} | Out-Chart -Name 'Files gt than 1KB' - TypeColumn -Plot Length -by Name
  • 12. Shout outs • You guys. Especially the guys organizing the event. • Denniver Reining (http://bytecookie.wordpress.com).The awesome chart diagrams he has on this blog are the inspiration for the anatomy of a chart slides. • Richard MacDonald’s blog post on PowerShell Charting. • Jim Christopher (@beefarino) for creating SeeShell.