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 da...
Why visualize the results
• Effective presentation of case-in-point scenarios.
• Gives visibility to the KPIs being impact...
A little something about Reflection &
Assemblies
• In essence Namespaces are just like containers.
• An assembly is a pack...
Quick Demo –Top 5 memory
consuming processes
Our Data will come from the below
snippet:
Get-Process | sort PrivateMemorySi...
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
...
Demo: Building Charts
from Perfmon Data
We will look at a couple of things here.
• Getting the headers from CSV files.
• G...
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...
OtherTools
• No discussion on visualization and charting is complete without mentioning
SeeShell.
• SeeSheel is the brainc...
Quick Demo: SeeShell
{Get-ChildItem -Path C:usershemanth
-Recurse | ?{($_.PSIsContainer -eq
$false) -and ($_.Length -gt 10...
Shout outs
• You guys. Especially the guys organizing the event.
• Denniver Reining (http://bytecookie.wordpress.com).The ...
Upcoming SlideShare
Loading in …5
×

Aug10 psbug charting_and_data_visualization_with_power_shell

1,502 views

Published on

Slides from this months PowerShell Bangalore User Group meet.

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,502
On SlideShare
0
From Embeds
0
Number of Embeds
1,026
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Aug10 psbug charting_and_data_visualization_with_power_shell

  1. 1. Charting and DataVisualization with PowerShell Hemanth C. Damecharla @sqlchow http://sqlchow.wordpress.com
  2. 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. 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. 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. 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. 6. Anatomy of a chart
  7. 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. 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. 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. 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. 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. 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.

×