Cmdlets for DB2

Build 23.0.8839

MaxLogFileCount Parameter (Connect-DB2 Cmdlet)

A string specifying the maximum file count of log files.


Connect-DB2 -MaxLogFileCount int

Data Type


Default Value



When the limit is hit, a new log is created in the same folder with the date and time appended to the end and the oldest log file will be deleted.

The minimum supported value is 2. A value of 0 or a negative value indicates no limit on the count.

Adjust the maximum size of the logfiles generated with MaxLogFileSize.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839