FreePBX commercial module cleanup



  • On a new install of FreePBX 14, one of the first things I do after it is up and installed is to remove all of the commercial modules that are not going to be used.

    Why? Because if they are not going to be used, I don't want to be spammed about updates to them.

    Here is an example from a client system.

    fwconsole ma listonline | grep Commercial
    
    Module Name Version Status License
    areminder Not Installed (Available online: 14.0.4.2) Commercial
    broadcast Not Installed (Available online: 14.0.1.10) Commercial
    callerid Not Installed (Available online: 13.0.8.13) Commercial
    calllimit Not Installed (Available online: 13.0.5.5) Commercial
    conferencespro Not Installed (Available online: 14.0.2.5) Commercial
    cos Not Installed (Available online: 13.0.12.2) Commercial
    endpoint 14.0.2.155 Enabled and up to date Commercial
    extensionroutes Not Installed (Available online: 13.0.10.7) Commercial
    faxpro Not Installed (Available online: 14.0.4) Commercial
    freepbx_ha Not Installed (Available online: 13.0.11) Commercial
    pagingpro Not Installed (Available online: 14.0.2.2) Commercial
    parkpro Not Installed (Available online: 13.0.30.3) Commercial
    pinsetspro Not Installed (Available online: 13.0.9.13) Commercial
    pms Not Installed (Available online: 14.0.2.25) Commercial
    queuestats Not Installed (Available online: 14.0.1.19) Commercial
    qxact_reports Not Installed (Available online: 14.0.7.8) Commercial
    recording_report Not Installed (Available online: 14.0.1.16) Commercial
    restapps 13.0.92.23 Enabled and up to date Commercial
    sangomacrm Not Installed (Available online: 14.0.1.14) Commercial
    sipstation Not Installed (Available online: 14.0.1.8) Commercial
    sms 14.0.4.6 Enabled and up to date Commercial
    sysadmin 14.0.22 Enabled and up to date Commercial
    vega Not Installed (Available online: 14.0.3.10) Commercial+
    vmnotify Not Installed (Available online: 14.0.1.1) Commercial
    voicemail_report Not Installed (Available online: 13.0.13.3) Commercial
    vqplus Not Installed (Available online: 14.0.1.18) Commercial
    webcallback Not Installed (Available online: 13.0.11.2) Commercial
    zulu 14.0.4.6 Enabled and up to date Commercial

    This is how I remove everything.
    I should really turn this into a script, but it is fast enough manually, and I don't do it like every day or anything.

    1. Disable all the modules to be removed.
    fwconsole ma disable areminder
    ...
    fwconsole ma disable webcallback
    
    1. Reload everything.
    fwconsole reload
    
    1. Uninstall and delete the modules
    fwconsole ma uninstall areminder
    ...
    fwconsole ma uninstall webcallback
    fwconsole ma delete areminder
    ...
    fwconsole ma delete webcallback
    
    1. Reload everything.
    fwconsole reload
    


  • I do the same thing.



  • You can do all of this in the GUI also.



  • @JaredBusch do you just disable every module and just go back in and install the ones used?

    That seems like the most logical approach, just looking into how you operate.



  • @DustinB3403 said in FreePBX commercial module cleanup:

    @JaredBusch do you just disable every module and just go back in and install the ones used?

    That seems like the most logical approach, just looking into how you operate.

    I could, but no. I know before it is ever installed what the design is going to be. That is part of discovery.



  • I'm getting the below result for every single module I try to uninstall but if I do fwconsole ma listonline again it's showing Not Installed (Locally available) for the module it just gave me the error for, is this normal?

    [[email protected] ~]# fwconsole ma uninstall calllimit
    dropping table calllimit..done<br>
    dropping table calllimit_usage..done<br>
    The following error(s) occured:
     - Failed to run un-installation scripts
    


  • @bnrstnr said in FreePBX commercial module cleanup:

    I'm getting the below result for every single module I try to uninstall but if I do fwconsole ma listonline again it's showing Not Installed (Locally available) for the module it just gave me the error for, is this normal?

    [[email protected] ~]# fwconsole ma uninstall calllimit
    dropping table calllimit..done<br>
    dropping table calllimit_usage..done<br>
    The following error(s) occured:
     - Failed to run un-installation scripts
    

    Did you reload after disable?



  • @JaredBusch Yes, I did.



  • @bnrstnr said in FreePBX commercial module cleanup:

    @JaredBusch Yes, I did.

    I've seen the error before, but not everytime like you say.

    I verify it is no installed as you did, and then delete it



  • @JaredBusch said in FreePBX commercial module cleanup:

    @bnrstnr said in FreePBX commercial module cleanup:

    @JaredBusch Yes, I did.

    I've seen the error before, but not everytime like you say.

    I verify it is no installed as you did, and then delete it

    Ok, it looks like it's working, I was just curious about the error. No problems deleting them. Thanks



  • New FrePBX 14 system installed this morning.

    Here is what I removed.

    Don't use sudo if you are logged in as root.

    sudo fwconsole ma disable areminder
    sudo fwconsole ma disable broadcast
    sudo fwconsole ma disable callerid
    sudo fwconsole ma disable calllimit
    sudo fwconsole ma disable conferencespro
    sudo fwconsole ma disable extensionroutes
    sudo fwconsole ma disable faxpro
    sudo fwconsole ma disable freepbx_ha
    sudo fwconsole ma disable pagingpro
    sudo fwconsole ma disable parkpro
    sudo fwconsole ma disable pinsetspro
    sudo fwconsole ma disable pms
    sudo fwconsole ma disable queuestats
    sudo fwconsole ma disable qxact_reports
    sudo fwconsole ma disable recording_report
    sudo fwconsole ma disable sangomacrm
    sudo fwconsole ma disable sipstation
    sudo fwconsole ma disable vega
    sudo fwconsole ma disable vmnotify
    sudo fwconsole ma disable voicemail_report
    sudo fwconsole ma disable vqplus
    sudo fwconsole ma disable webcallback
    
    sudo fwconsole ma uninstall areminder
    sudo fwconsole ma uninstall broadcast
    sudo fwconsole ma uninstall callerid
    sudo fwconsole ma uninstall calllimit
    sudo fwconsole ma uninstall conferencespro
    sudo fwconsole ma uninstall extensionroutes
    sudo fwconsole ma uninstall faxpro
    sudo fwconsole ma uninstall freepbx_ha
    sudo fwconsole ma uninstall pagingpro
    sudo fwconsole ma uninstall parkpro
    sudo fwconsole ma uninstall pinsetspro
    sudo fwconsole ma uninstall pms
    sudo fwconsole ma uninstall queuestats
    sudo fwconsole ma uninstall qxact_reports
    sudo fwconsole ma uninstall recording_report
    sudo fwconsole ma uninstall sangomacrm
    sudo fwconsole ma uninstall sipstation
    sudo fwconsole ma uninstall vega
    sudo fwconsole ma uninstall vmnotify
    sudo fwconsole ma uninstall voicemail_report
    sudo fwconsole ma uninstall vqplus
    sudo fwconsole ma uninstall webcallback
    
    sudo fwconsole ma delete areminder
    sudo fwconsole ma delete broadcast
    sudo fwconsole ma delete callerid
    sudo fwconsole ma delete calllimit
    sudo fwconsole ma delete conferencespro
    sudo fwconsole ma delete extensionroutes
    sudo fwconsole ma delete faxpro
    sudo fwconsole ma delete freepbx_ha
    sudo fwconsole ma delete pagingpro
    sudo fwconsole ma delete parkpro
    sudo fwconsole ma delete pinsetspro
    sudo fwconsole ma delete pms
    sudo fwconsole ma delete queuestats
    sudo fwconsole ma delete qxact_reports
    sudo fwconsole ma delete recording_report
    sudo fwconsole ma delete sangomacrm
    sudo fwconsole ma delete sipstation
    sudo fwconsole ma delete vega
    sudo fwconsole ma delete vmnotify
    sudo fwconsole ma delete voicemail_report
    sudo fwconsole ma delete vqplus
    sudo fwconsole ma delete webcallback
    

    followed by

    sudo fwconsole reload
    


  • @JaredBusch that's a handy list, thanks.



  • @scottalanmiller said in FreePBX commercial module cleanup:

    @JaredBusch that's a handy list, thanks.

    Well the instruction on how to do it was in the first post.

    As this can change overtime, that is important.

    Also , I choose to leave things like EPM and Zulu even if not currently being used.