Skip to content

Commit

Permalink
Update "GET SERVERCONFIG" command and "GET SERVERPREFS" command due t…
Browse files Browse the repository at this point in the history
…o increasing the maximum number of hosted database files per FileMaker Server instance (#34)
  • Loading branch information
matsuo committed Jan 7, 2024
1 parent 101e2f4 commit 9e4fbf0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions fmcsadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] ")
Expand Down
2 changes: 1 addition & 1 deletion fmcsadmin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions release-notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9e4fbf0

Please sign in to comment.