[smartmontools-support] smartd commands on windows

Christian Franke Christian.Franke at t-online.de
Wed Aug 21 19:01:13 CEST 2019


Hi Philipp,

Schuhmann, Philipp (WIWI) wrote:
>
> Hello smartmonteam,
>
> First of all thanks for your nice software.
>

You're welcome.


> When i run smartd as a service on Windows 10 (installed with smartd 
> install like mentioned in the docu-pdf) i can not use the smartd 
> built-in commands.
>
> When i try to do any of the commands via Windows command line or the 
> smartctl admin cmd (e.g. smartd sigusr1 or whatever) it returns that 
> smartd is not running while its definitively running.
>

The builtin commands only work if smartd runs as a daemon. This is the 
case if smart is started from command line without debug mode (no '-d' 
or '-q onecheck').

If installed as a service, the windows commands 'net' or 'sc' could be 
used to control the service.

Some examples:
sc start smartd (start service)
sc stop smartd (stop service)
sc continue smartd (check disks now)
sc control smartd paramchange (reload smartd.conf)
sc query smartd (show status)
sc qc smartd (show configuration)
sc config smartd start= demand (disable auto start)
sc config smartd start= delayed-auto (re-enable auto start)

Regards,
Christian




More information about the Smartmontools-support mailing list