Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoLog option for megacli util #996

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

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.

None yet

2 participants