NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 8 9 10 11 12 … 56 Next »
get drive temps from all computers on network

 
  • 0 Vote(s) - 0 Average
get drive temps from all computers on network
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#1
2010-04-07, 11:24 AM (This post was last modified: 2010-04-07, 01:46 PM by pBS.)
High drive temps are a frequent cause of data loss and rising temps can warn of potential failure before it happens.
So, here's a little util i made to get drive temperatures from the drive's temperature probe smart data..

Also works over your network!..Big Grin
Many features still to add, but it works great so far..a bit slow if you have lots of empty usb mem card slots..
I've made it semi-scriptable, so you could make it a early warning system..

Limitations: can't get usb drive smart data nor raid nor removables..only ata/ide/scsi/sata drives..
S.M.A.R.T. must be working and enabled on the drive..it gets all drive's data using wmi..not all drives give out good smart data in same place..
that said, it works on every smart drive i have..

to use:
smart.exe [shows local drives temps + dialog]
smart.exe . n [shows local drives temp without poppping up dialog, for scripts]
smart.exe computer n [shows "computer"'s drive's temps]
smart.exe /? shows help and usage for batch files.
for batch files:
for /f ""usebackq"" %%f in (`smart.exe . n`) do if %%f GTR 48 echo WARNING! drive is over 48 degrees!

i'll be adding more features like email warnings, audible/voice warnings, constant monitoring option..etc.. maybe even a plugin for status screens..Smile [maybe even a cpu temp too]

don't check too often, it does add a little bit of drive access, tho curiously, mostly to get list of drives and pnpid's..so i'll be caching those in future..
so then it'll be easy on the drive and able to check more often without worry..[for always on checking with alarms]
for now use at least a minute delay between attempts and it should be fine..
well, it's rough but it works...let me know if any problems..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Dave72
Offline

Member

Posts: 186
Threads: 23
Joined: Jul 2005
#2
2010-04-08, 01:02 AM
I just get a blank dialog box popup where I can click OK

From cmd, I tried a bunch of
smart . c:
smart . c
etc
Usually get an error popup about missing bracket or something..

SMART is enabled on my drive(s)
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2010-04-08, 03:29 PM (This post was last modified: 2010-04-08, 03:51 PM by pBS.)
try it with no params...
the right bracket is somethign to do with wmi...i only got it when trying it over internet..
tho i have had security issues as it works from one machine to another, but reversed it doesn't..[maybe firewall or rights,etc]
even tho it works on both locally..

do the drives provide smart info to other tools?
i can find you a couple links..

i made a couple changes to the code and will upload later...
wmi can be really finicky...really easy to stuff up..
i do have some scripts to repair it if need be tho..
it's still pretty rough but this seems to be only error i've encountered so far..
[probably just wmi request formatting]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#4
2010-04-08, 04:19 PM (This post was last modified: 2010-04-08, 09:54 PM by pBS.)
seems to be a RPC error [remote procedure call] so yea it's security issues..
i have my pvr open with no firewall etc so that's probably why it works for me..
my win7 machine won't allow it thru..
still, it works locally on all my machines from xp thru win7.

there is a fix for it tho..Smile i'll see if i can't find it..
otherwise it should work fine locally or you have windows RPC errors..check the service,etc..

seems you must have admin privledges on remote computer for it to work over net..
[and locally too..i believe]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Dave72
Offline

Member

Posts: 186
Threads: 23
Joined: Jul 2005
#5
2010-04-09, 03:34 AM
Even locally, if I just punch in (in cmd window) 'smart' , I only get a blank popup with OK in it.

I checked out some Smart info in Everest or Aida last night.. so it seems to be working..

You mention RPC tho.. I do have some deep problem here with RPCSS
My DCOM Server Proc Launcher is always stuck on 'starting'.. so it prevents me from ie using most vers of Win Installer. (I have to manually start it each use).
I had a hd failure a while back, cloned the drive but lost a small chunk.. I suspect something related to win registry and/or authorities. Big problems at first,
but Ive whittled it down to just a long delay in RPCSS starting at boot, and DCOM SP Launcher not starting up (and every depend on the dcom needs a workaround..)

So, could be something in my funky setup thats in the way.

My WMI state is started, but the 'WMI driver interface' was on manual.. i did a start, and get the same popup window with Smart.exe
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#6
2010-04-09, 04:50 AM (This post was last modified: 2010-04-09, 04:56 AM by pBS.)
yea, if rpc isn't working that's why...it will also cause other errors with com programs..
i do have some dcom and wmi repair scripts..
[basically just scripts to re-install dcom and repair wmi]
tho i think you only need dcom fixed..
usually rpcss is damaged when you get msblaster worm...usually one of those fixers repairs it..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#7
2010-04-09, 11:06 PM
i did find out how to use a different user credential for other computers on the net so i'll be incorporating that into it next..
so if your wmi is working then it'll get info from any system and i 'll be adding a cache of drives and user names for each server.
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Hotswap your sata drive like a usb drive pBS 2 3,142 2011-05-07, 04:28 AM
Last Post: pBS
  fix for network access + Interact w/desktop pBS 6 6,069 2009-08-04, 03:49 AM
Last Post: mvallevand
  Showing thanks - annual Christmas donation drive wtg 35 9,200 2006-12-26, 04:17 AM
Last Post: spyork
  Setting Up SSH to protect your network psycik 6 3,691 2006-04-12, 09:16 PM
Last Post: groover km
  GPVR PVR-150 / Dish Network Guide rampy 1 2,096 2005-06-02, 03:04 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode