Discussion:
[smartmontools-support] How configure smartctl (not smartd)
fortaisur
2016-07-14 08:34:48 UTC
Permalink
One platform I am now working with occasionally has a RAID controller
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.

I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.

I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.

Is there some way to set arguments like this? I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.

I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller. Is there any
way to get smartctl to do the same?
fortaisur
2016-08-04 05:17:12 UTC
Permalink
Post by fortaisur
One platform I am now working with occasionally has a RAID controller
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.
I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.
I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.
Is there some way to set arguments like this? I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.
I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller. Is there any
way to get smartctl to do the same?
Hmm, no responses - so smartctl has no way to auto-detect, or set its options?



------------------------------------------------------------------------------
Andrew Reid
2016-08-04 12:11:40 UTC
Permalink
Use an alias in your shell config file ???
Post by fortaisur
Post by fortaisur
One platform I am now working with occasionally has a RAID controller
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.
I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.
I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.
Is there some way to set arguments like this? I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.
I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller. Is there any
way to get smartctl to do the same?
Hmm, no responses - so smartctl has no way to auto-detect, or set its options?
------------------------------------------------------------------------------
_______________________________________________
Smartmontools-support mailing list
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
------------------------------------------------------------------------------
fortaisur
2016-08-07 05:27:00 UTC
Permalink
Post by fortaisur
One platform I am now working with occasionally has a RAID controller
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.
I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.
I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.
Is there some way to set arguments like this? I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.
I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller. Is there any
way to get smartctl to do the same?
Hmm, no responses - so smartctl has no way to auto-detect, or set its options?



------------------------------------------------------------------------------
Orsiris de Jong
2016-08-07 09:44:06 UTC
Permalink
Why don't you use an alias ?



Orsiris de Jong

***@netpower.fr - http://www.netpower.fr <http://www.netpower.fr>



-----Message initial-----
De: fortaisur <glu2-***@dea.spamcon.org>
Envoyé: dimanche 7 août 2016 7:28
À: smartmontools-***@lists.sourceforge.net
Sujet: Re: [smartmontools-support] How configure smartctl (not smartd)
Post by fortaisur
One platform I am now working with occasionally has a RAID controller
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.
I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.
I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.
Is there some way to set arguments like this? I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.
I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller. Is there any
way to get smartctl to do the same?
Hmm, no responses - so smartctl has no way to auto-detect, or set its options?



------------------------------------------------------------------------------
_______________________________________________
Smartmontools-support mailing list
Smartmontools-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Tudor Holton
2016-08-08 02:07:06 UTC
Permalink
I second that. I have a number of machines with megaraid controllers.
I just put an alias (actually, a bunch of scripts) in /opt/megaraid and
then add it to the path ahead of smartctl.

I must admit it's a nuisance, tho, but that's the tradeoff for getting
so many devices on one motherboard. ;-)

Cheers,
Tudor.
RE: [smartmontools-support] How configure smartctl (not smartd)
Why don't you use an alias ?
Orsiris de Jong
-----Message initial-----
*Envoyé:* dimanche 7 août 2016 7:28
*Sujet:* Re: [smartmontools-support] How configure smartctl (not
smartd)
Post by fortaisur
One platform I am now working with occasionally has a RAID controller
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.
I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.
I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.
Is there some way to set arguments like this? I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.
I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller. Is there any
way to get smartctl to do the same?
Hmm, no responses - so smartctl has no way to auto-detect, or set its options?
------------------------------------------------------------------------------
_______________________________________________
Smartmontools-support mailing list
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
------------------------------------------------------------------------------
_______________________________________________
Smartmontools-support mailing list
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Christian Franke
2016-08-07 14:10:53 UTC
Permalink
Post by fortaisur
One platform I am now working with occasionally has a RAID controller
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.
I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.
I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.
Is there some way to set arguments like this?
There is no smartctl conf file or variable. There are no plans to add this.
Post by fortaisur
I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.
Fell free to create a ticket and provide your ideas how this may work:
https://www.smartmontools.org/newticket
Post by fortaisur
I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller.
This only works if DEVICESCAN is used. It includes also drives behind
MegaRAID controllers (but no other RAID controllers). For individual
entries, -d megaraid,N is still required.
Post by fortaisur
Is there any
way to get smartctl to do the same?
"smartctl --scan" uses the same functionality as the DEVICESCAN in
smartd.conf.

Thanks,
Christian


------------------------------------------------------------------------------
fortaisur
2016-08-11 17:39:16 UTC
Permalink
Post by Christian Franke
Post by fortaisur
One platform I am now working with occasionally has a RAID controller
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.
I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.
I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.
Is there some way to set arguments like this?
There is no smartctl conf file or variable. There are no plans to add this.
Post by fortaisur
I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.
https://www.smartmontools.org/newticket
Post by fortaisur
I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller.
This only works if DEVICESCAN is used. It includes also drives behind
MegaRAID controllers (but no other RAID controllers). For individual
entries, -d megaraid,N is still required.
Post by fortaisur
Is there any
way to get smartctl to do the same?
"smartctl --scan" uses the same functionality as the DEVICESCAN in
smartd.conf.
Thanks,
Christian
------------------------------------------------------------------------------
Thank you for all of the replies and info - I will just use an alias.
Loading...