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

Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 

Dernier (20)

Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptx
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 

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.