fusioninventory-agent
fusioninventory-agent copied to clipboard
NoLog option for megacli util
MegaSAS.log issue #995
Hi @xo4yecTb
is the -NoLog
option necessary on the megacli -adpCount
execution ?
@g-bougard Hi
Not necessary, also we can use -NoLog
option with -adpCount
NOTE: The following options may be given at the end of any command below:
[-Silent] [-AppLogFile filename] [-NoLog] [-page[N]]
[-] is optional.
N - Number of lines per page.
MegaCli -v
MegaCli -help|-h|?
MegaCli -adpCount
MegaCli -AdpSetProp {CacheFlushInterval -val} | { RebuildRate -val}
Hi @xo4yecTb
yes, I guess "-NoLog" option can be used with "-adpCount", but as there was "necessary" in my question, you should have understood: does megacli -adpCount
also create the /MegaSAS.log
file ? If yes, this would make "-NoLog" option also necessary for this case as the agent always runs the command with this option before the other 2 cases ;-)
Then can you verify if this is the case for you ? My guess is you made tests and you don't see anymore the log with your update. So I still suppose the log is not created with "-adpCount". But supposition is not always enough and I just request you a confirmation so we are sure your update is sufficient.
Thank you in advance
Hi, @g-bougard
As I see megacli -adpCount
not create the /MegaSAS.log
root@myhost:~# megacli -adpCount ; date +%s
Controller Count: 1.
Exit Code: 0x01
1646663607
root@myhost:~# ls /MegaSAS.log ; date +%s
ls: cannot access '/MegaSAS.log': No such file or directory
1646663630