fusioninventory-agent icon indicating copy to clipboard operation
fusioninventory-agent copied to clipboard

NoLog option for megacli util

Open xo4yecTb opened this issue 3 years ago • 4 comments

MegaSAS.log issue #995

xo4yecTb avatar Feb 12 '22 18:02 xo4yecTb

Hi @xo4yecTb

is the -NoLog option necessary on the megacli -adpCount execution ?

g-bougard avatar Feb 21 '22 16:02 g-bougard

@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} 

xo4yecTb avatar Feb 24 '22 20:02 xo4yecTb

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

g-bougard avatar Feb 25 '22 09:02 g-bougard

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

xo4yecTb avatar Mar 07 '22 14:03 xo4yecTb