FortiClient
FortiClient proactively defends against advanced attacks. Its tight integration with the Security Fabric enables policy-based automation to contain threats and control outbreaks. FortiClient is compatible with Fabric-Ready partners to further strengthen enterprises’ security posture.
jie
Staff
Staff
Article Id 293523
Description This article provides the command to check the remote SQL database connection from the Primary/Secondary EMS
Scope FortiClient EMS
Solution

The below error can sometimes appear during upgrading EMS in the HA environment:

 

ERROR: FCEMSSetup: MSI_UpgradeDatabases, failed to launch '-U "******" -P "******" -S tcp:x.x.x.x,1811 -t 5 -Q "use master"' or exit was abnormal, retval=2, exitcode=0

 

At this stage, it is necessary to check the current admin that the user is using has full permission to access the remote EMS SQL database.

 

This can be achieved by using the below command:

 

sqlcmd -U "******" -P "******" -S tcp:x.x.x.x(ip address of remote DB server),1811(the default port number) -t 5 -Q "use master"

 

If the connection is OK, the output should appear as below:

 

Primary.PNG

 

Secondary.PNG

 

The above command can help to exclude the database connection issue from the EMS upgrade process.

 

Contributors