restart all 3CX services from cmd?

Status
Not open for further replies.

giorgiobusoni

Joined
Apr 6, 2011
Messages
32
Reaction score
1
Hi all,
my 3CX lately after a while that is running stops working, inbound and outbound calls don't work anymore. TRhe only solution I found so far is to restart all 3CX services. Is there a way to automatise this with a script?
 
Great idea and quite doable. All you need is to make a batch file or a windows script file. Services can be restarted with:

net stop [service name] && net start [service name].

Just add a line for each of the 3CX services.
 
yes, but what are the names of the services? is there any dependence on each other, that implies that I have to call them in some specific order?
 
It sounds like yo may only need to restart the SIP server. But in case you want to restart everything, this should do it:

net stop "3CX PhoneSystem Media Server"
net stop "3CX PhoneSystem Nginx Server"
net stop "3CX PhoneSystem 01 SIP/RTP Tunneling Proxy"
net stop "3CX PhoneSystem 01 Management Console"
net stop "3CX PhoneSystem 01 FAX Server"
net stop "3CX PhoneSystem 01 IVR Server"
net stop "3CX PhoneSystem 01 Queue Manager Server"
net stop "3CX PhoneSystem 01 SIP Server"
net stop "3CX PhoneSystem 01 System Server"
net stop "3CX PhoneSystem 01 Configuration Server"
net stop "3CX Event Notification Manager"
net stop "3CX PhoneSystem Database Server"

(you may need to adjust the names of the services on your server but this list will give you a good idea of an acceptable order)

The services can be restarted by starting them in pretty much the reverse order:

net start "3CX PhoneSystem Database Server"
net start "3CX Event Notification Manager"
net start "3CX PhoneSystem 01 Configuration Server"
net start "3CX PhoneSystem 01 System Server"
net start "3CX PhoneSystem 01 SIP Server"
net start "3CX PhoneSystem 01 Queue Manager Server"
net start "3CX PhoneSystem 01 IVR Server"
net start "3CX PhoneSystem 01 FAX Server"
net start "3CX PhoneSystem 01 Management Console"
net start "3CX PhoneSystem 01 SIP/RTP Tunneling Proxy"
net start "3CX PhoneSystem Nginx Server"
net start "3CX PhoneSystem Media Server"
 
thanks a lot! that's what I needed!
 
I see that starting Management Console will also start Configuration and Database dependant services. Perhaps it should also start nginx?
 
Status
Not open for further replies.

Forum statistics

Threads
111,856
Messages
589,404
Members
164,693
Latest member
FLCC