Performance and event monitoring on Nano Server

Posted: December 13, 2016 in Windows Server

Capturing performance counter data

For example,to query memory events we need to locate it first:

typeperf -q | select-string 'memory'

1a.PNG

For example,to collect Free Memory 3 times every 4 second type:

typeperf "\Memory\Available MBytes" -si 4 -sc 3

1a

Trace record

We use Windows Performance Recorder to find out event providers

wpr.exe -providers

Create trace:

New-EtwTraceSession -Name "ExampleTrace" -LocalFilePath c:\etrace.etl

5

Find ETW (Event Trace for Windows):

wpr.exe -providers | select-string "Kernel-MRemove-EtwTraceSession -Name "ExampleTrace"emory"

6

Start trace:

Add-EtwTraceProvider -Guid '{d1d93ef7-e1f2-4f45-9943-03d245fe6c00}' -SessionName "exampletrace"

7

Remove trace:

Remove-EtwTraceSession -Name "ExampleTrace"

8

Copy trace file to Windows Server (shared folder):

net use z: \\dc.test.com\nano /user:test\administrator Password01
Copy-Item .\etrace.etl z:\

Open trace file in Event Viewer:

12

 

13

 

Adding Nano Server to Server Manager

In Server Manager click Local Server-Manage-Add Server

1

 

1.PNG

After clicking OK we get Access Denied:

9.PNG

 

Right click Nano server-Manage As

10.png

Enter domain admin username/password

1

 

11.PNG

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s