diff --git a/fmcsadmin.go b/fmcsadmin.go index cdf72cd..8a2c209 100644 --- a/fmcsadmin.go +++ b/fmcsadmin.go @@ -3768,13 +3768,21 @@ func getServerGeneralConfigurations(urlString string, token string, printOptions fmt.Println("MaxGuests = " + strconv.Itoa(maxProConnections) + " [default: 250, range: 0-2000] ") } if option == "maxfiles" { - fmt.Println("MaxFiles = " + strconv.Itoa(maxFiles) + " [default: 125, range: 1-125] ") + if version >= 20.1 { + fmt.Println("MaxFiles = " + strconv.Itoa(maxFiles) + " [default: 125, range: 1-256] ") + } else { + fmt.Println("MaxFiles = " + strconv.Itoa(maxFiles) + " [default: 125, range: 1-125] ") + } } if option == "cachesize" { fmt.Println("CacheSize = " + strconv.Itoa(cacheSize) + " [default: 512, range: 64-1048576] ") } if option == "hostedfiles" { - fmt.Println("HostedFiles = " + strconv.Itoa(maxFiles) + " [default: 125, range: 1-125] ") + if version >= 20.1 { + fmt.Println("HostedFiles = " + strconv.Itoa(maxFiles) + " [default: 125, range: 1-256] ") + } else { + fmt.Println("HostedFiles = " + strconv.Itoa(maxFiles) + " [default: 125, range: 1-125] ") + } } if option == "proconnections" { fmt.Println("ProConnections = " + strconv.Itoa(maxProConnections) + " [default: 250, range: 0-2000] ") diff --git a/fmcsadmin_test.go b/fmcsadmin_test.go index 2c9f18c..c6bc446 100644 --- a/fmcsadmin_test.go +++ b/fmcsadmin_test.go @@ -1623,7 +1623,7 @@ func TestGetFlags(t *testing.T) { * fmcsadmin --fqdn example.jp set cwpconfig enablephp=true usefmphp=true * fmcsadmin --fqdn example.jp -u USERNAME set cwpconfig enablephp=true usefmphp=true * fmcsadmin --fqdn example.jp -u USERNAME -p PASSWORD set cwpconfig enablephp=true usefmphp=true - * fmcsadmin set serverprefs maxguests=125 maxfiles=125 + * fmcsadmin set serverprefs maxguests=125 maxfiles=256 * fmcsadmin set serverprefs AuthenticatedStream=1 * fmcsadmin set serverprefs AuthenticatedStream=2 * fmcsadmin set serverprefs ParallelBackupEnabled=false diff --git a/release-notes.txt b/release-notes.txt index dec1b49..e84d7ab 100644 --- a/release-notes.txt +++ b/release-notes.txt @@ -8,6 +8,7 @@ Version: 2.2.0 (in development) - Add support for Ubuntu 22.04 LTS on arm64 architecture. - Update "GET SERVERPREFS" command to get persistent cache setting for Claris FileMaker Server 2023 (20.1). (Usage: "fmcsadmin get serverprefs PersistCacheEnabled") - Update "GET SERVERPREFS" command to get persistent cache sync setting for Claris FileMaker Server 2023 (20.1). (Usage: "fmcsadmin get serverprefs SyncPersistCache") +- Update "GET SERVERCONFIG" command and "GET SERVERPREFS" command due to increasing the maximum number of hosted database files per FileMaker Server instance. - Modify behavior of outputting error messages for invalid parameters when using "GET SERVERPREFS" and "SET SERVERPREFS" command. - Add support for Windows Server 2019 and Windows Server 2022. - Tested with Claris FileMaker Server 20.3.