Skip to content

Conversation

@xo4yecTb
Copy link

MegaSAS.log issue #995

g-bougard added a commit to glpi-project/glpi-agent that referenced this pull request Feb 21, 2022
@g-bougard
Copy link
Contributor

Hi @xo4yecTb

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

@xo4yecTb
Copy link
Author

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

@g-bougard
Copy link
Contributor

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

@xo4yecTb
Copy link
Author

xo4yecTb commented Mar 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants