Jump to content
Software FX Community

refresh not working


jeffg

Recommended Posts

I cannot get my refresh to work properly in the script below. I pull the data ok but it never refreshes. I have tried putting the refresh a couple places with no luck. anythoughts? 

$computer = "."

$namespace

= "root\CIMV2"

$val1

=Get-WmiObject win32_Processor -computername $computer|%{$_.loadpercentage}$val2=Get-WmiObject -class Win32_PerfFormattedData_Tcpip_NetworkInterface -computername $computer -namespace $namespace -filter "name='Broadcom NetXtreme 57xx Gigabit Controller'" |%{$_.BytesTotalPersec /125000}

out-gauge

Link to comment
Share on other sites

  • 2 weeks later...

Check out my blog postings to see how you need to implement a script to get a refresh value:

http://community.softwarefx.com/blogs/powergadgets_guest_blog/archive/tags/guest+blogger/default.aspx

Now, you're looking at trying to read 2 values into out-gauge, so you'll actually need to create a more complicated object with your .ps1 script.

Let me know if you're still interested.  Sorry for the delay in replying...

Marco 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...