Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
vmware:vsan:vsanlab [2019/11/15 19:48] – [HW Clock] mschubivmware:vsan:vsanlab [2019/11/17 16:13] – [PowerShell/PowerCLI auf dem Raspi] mschubi
Line 188: Line 188:
 Get-PowerCLIConfiguration Get-PowerCLIConfiguration
 </code> </code>
 +
 +Die Powershell loggt wie Blöde in /var/log/messages. Dazu gibt es zwei Workarounds. Dokumentiert unter 
 +https://github.com/PowerShell/PowerShell/issues/6324
 +''Added a cron job to find/delete those files and added the following file (/etc/rsyslog.d/40-powershell.conf) to stop logging which seems to work okay.
 +
 +:syslogtag, contains, "powershell[" stop''
 +
 +bzw.
 +
 +''Lowering the log level from Powershell by doing the following fixes the verbose logging:
 +
 +Find out where $PSHOME is. My $PSHOME pointed to /opt/microsoft/powershell/6/. Take note that $PSHOME is a variable in PWSH, not in any other shell.
 +Create a file in $PSHOME named powershell.config.json.
 +Add the following JSON to the file:
 +{ "LogLevel": "error" }
 +Other log levels are found here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_non-windows?view=powershell-6#configuring-logging-on-non-windows-system''
 +
  
 ===== Raspi mit VLANs ===== ===== Raspi mit VLANs =====
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International