ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    FreePBX commercial module cleanup

    IT Discussion
    freepbx commercial modules modules cleanup
    6
    16
    5.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch
      last edited by JaredBusch

      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
      callaccounting Not Installed (Available online: 14.0.5) 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
      
      1 Reply Last reply Reply Quote 5
      • scottalanmillerS
        scottalanmiller
        last edited by

        I do the same thing.

        1 Reply Last reply Reply Quote 1
        • JaredBuschJ
          JaredBusch
          last edited by

          You can do all of this in the GUI also.

          DustinB3403D 1 Reply Last reply Reply Quote 1
          • DustinB3403D
            DustinB3403 @JaredBusch
            last edited by

            @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.

            JaredBuschJ 1 Reply Last reply Reply Quote 1
            • JaredBuschJ
              JaredBusch @DustinB3403
              last edited by

              @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.

              1 Reply Last reply Reply Quote 1
              • B
                bnrstnr
                last edited by

                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?

                [root@freepbx ~]# 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
                
                JaredBuschJ 1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @bnrstnr
                  last edited by

                  @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?

                  [root@freepbx ~]# 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?

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    bnrstnr @JaredBusch
                    last edited by

                    @JaredBusch Yes, I did.

                    JaredBuschJ 1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch @bnrstnr
                      last edited by

                      @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

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        bnrstnr @JaredBusch
                        last edited by

                        @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

                        1 Reply Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch
                          last edited by JaredBusch

                          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 callaccounting
                          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 callaccounting
                          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 callaccounting
                          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
                          
                          scottalanmillerS 1 Reply Last reply Reply Quote 4
                          • scottalanmillerS
                            scottalanmiller @JaredBusch
                            last edited by

                            @JaredBusch that's a handy list, thanks.

                            JaredBuschJ 1 Reply Last reply Reply Quote 0
                            • JaredBuschJ
                              JaredBusch @scottalanmiller
                              last edited by

                              @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.

                              N 1 Reply Last reply Reply Quote 0
                              • N
                                niakoue @JaredBusch
                                last edited by

                                @JaredBusch doing it with a script:

                                for i in fwconsole ma listonline | grep Commercial | awk '{print $2}'

                                do
                                fwconsole ma disable $i
                                done

                                fwconsole reload

                                for i in fwconsole ma listonline | grep Commercial | awk '{print $2}'

                                do
                                fwconsole ma uninstall $i
                                fwconsole ma delete $i
                                done

                                fwconsole reload

                                black3dynamiteB 1 Reply Last reply Reply Quote 1
                                • black3dynamiteB
                                  black3dynamite @niakoue
                                  last edited by

                                  @niakoue said in FreePBX commercial module cleanup:

                                  @JaredBusch doing it with a script:

                                  for i in fwconsole ma listonline | grep Commercial | awk '{print $2}'

                                  do
                                  fwconsole ma disable $i
                                  done

                                  fwconsole reload

                                  for i in fwconsole ma listonline | grep Commercial | awk '{print $2}'

                                  do
                                  fwconsole ma uninstall $i
                                  fwconsole ma delete $i
                                  done

                                  fwconsole reload

                                  There's already thread about creating an initial FreePBX Setup
                                  https://www.republicofit.com/topic/21570/starting-to-work-on-an-initial-freepbx-setup-script/

                                  And the scripts is located at https://github.com/sorvani/freepbx-helper-scripts/tree/master/InitialSetup if you want to open a pull request.

                                  1 Reply Last reply Reply Quote 1
                                  • JaredBuschJ
                                    JaredBusch
                                    last edited by JaredBusch

                                    The problem with doing a fwconsole ma listonline on a new install is that it will immediately attempt to then install some commercial modules that have severe security updates.

                                    And those also have dependencies that get updated.

                                    I have not had a chance to come back around to find the best solution for an initial loop.

                                    Also, more experiments proved out that you can simply do the delete.

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post