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