2013-04-25 9 views
6

मैं कुछ प्रदर्शन काउंटर के लिए मूल्य वापस करने के लिए पावरहेल का उपयोग कर रहा हूं, और मैं देख रहा हूं कि यह जानकारी प्रस्तुत करते समय "कुकलेवल्यू" का जिक्र कर रहा है। मैं प्रत्येक काउंटर हिट की खुद की रिपोर्ट करने की तलाश में हूं, इसलिए मैं 90 वें प्रतिशत मूल्य या अधिकतम/मिनट को देखने जैसे विश्लेषण कर सकता हूं, इसलिए मुझे यह जानना होगा कि यह पकाए गए मूल्य पर कैसे पहुंच रहा है।पावरहेल के गेट-काउंटर cmdlet में "पकाया गया मूल्य" लौटने वाला क्या है?

$computer   = $ENV:Computername 
$instance   = "_total" 

@("\\$Computer\PhysicalDisk(*)\Current Disk Queue Length", 
    "\\$Computer\PhysicalDisk(*)\% Disk Time", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk Queue Length", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk Read Queue Length", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk Write Queue Length", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk sec/Transfer" 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk sec/Read", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk sec/Write") |% { 
    (Get-Counter $_.replace("*",$instance)).CounterSamples } | 
    Select-Object Path,CookedValue | 
    Format-Table -AutoSize 


# Retrieve the current Processor performance counter information. 
$computer   = $ENV:Computername 
$instance   = "_total" 
@("\\$Computer\Processor(*)\% Processor Time", 
    "\\$Computer\Processor(*)\% User Time", 
    "\\$Computer\Processor(*)\% Privileged Time", 
    "\\$Computer\Processor(*)\Interrupts/sec", 
    "\\$Computer\Processor(*)\% DPC Time", 
    "\\$Computer\Processor(*)\DPCs Queued/sec" 
    "\\$Computer\Processor(*)\% Idle Time", 
    "\\$Computer\Processor(*)\% Interrupt Time") |% { 
    (Get-Counter $_.replace("*",$instance)).CounterSamples } | 
    Select-Object Path,CookedValue | 
    Format-Table -AutoSize 

# Retreive the current Memory counter information 
$computer   = $ENV:Computername 
$instance   = "_total" 
@("\\$Computer\Memory\Page Faults/sec", 
    "\\$Computer\Memory\Available Bytes", 
    "\\$Computer\Memory\Committed Bytes", 
    "\\$Computer\Memory\Commit Limit", 
    "\\$Computer\Memory\Pages/sec", 
    "\\$Computer\Memory\Free System Page Table Entries" 
    "\\$Computer\Memory\Pool Paged Resident Bytes", 
    "\\$Computer\Memory\Available MBytes") |% { 
    (Get-Counter $_.replace("*",$instance)).CounterSamples } | 
    Select-Object Path,CookedValue | 
    Format-Table -AutoSize 

उत्तर

6

https://blogs.technet.com/b/nexthop/archive/2011/06/02/gpsperfcounters.aspx के अनुसार, एक "CookedValue" है::

प्रदर्शन काउंटरों आम तौर पर कच्चे मूल्यों, दूसरी मूल्यों, और पकाया मान हो यहाँ कोड मैं वर्तमान के साथ काम कर रहा हूँ है। कच्चे मूल्य और दूसरे मूल्य प्रदर्शन काउंटर द्वारा उपयोग किए जाने वाले कच्चे तत्व होते हैं, और "पकाया मूल्य" उन उपभोगों को मानव उपभोग के लिए कुछ "खाना पकाने" का परिणाम होता है।

तो जाहिर है कि कुकडवेल्यू एक उपयोगी मूल्य प्राप्त करने के लिए काउंटर के कच्चे डेटा को संयोजित करने का परिणाम है जिसे आप समझ सकते हैं और साथ काम कर सकते हैं।

+0

यह समझ में आता है। एक गैर-तनावग्रस्त प्रणाली पर फिर से मूल्यों को देखते हुए, वे प्रतिनिधित्व करने वाले काउंटर के संदर्भ में समझ में आते हैं। मैं अभी भी चाहता हूं कि मुझे पता चले कि वे मूल्य पर पहुंचने के लिए क्या कर रहे हैं, लेकिन यह मुझे वह प्राप्त करता है जो मुझे अभी चाहिए। धन्यवाद! –

संबंधित मुद्दे