Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
showkath_naseem
Product and Topic Expert
Product and Topic Expert

Introduction:


Cloud Foundry Stack Auditor is a useful BTP cf CLI plug-in that allows you to manage apps and their stacks, migrate apps to new stacks, and delete stacks.
For example, a typical use for Stack Auditor is migrating a large number of apps to a new stack such as Cloud Foundry Runtime Stack Switch from cflinuxfs3 to cflinuxfs4.
You can read more about Stack Auditor here .


In this blog post, I will show you how to install Stack Auditor on your local system or SAP Business Application Studio.



#1 ) Downloading and Installing Stack Auditor on Your Local System (MAC, Windows, Linux):


To install Stack Auditor, follow these steps:




         
         
  1. Download the latest Stack Auditor binary for as per your Operating System from Releases in the Stack Auditor repository on GitHub at the following URL: https://github.com/cloudfoundry/stack-auditor/releases






  2.      
  3. Unzip the binary file you downloaded. Unpack the archive on your local system either using a file explorer or using tar xvzf <archive> [-C <directory>].








  4.      
  5. Install the plug-in with the cf CLI by executing the command:
    cf install-plugin <path_to_binary>



For example, if you are using a MacBook Pro APPLE M1 Chip, you can execute the following command:

cf install-plugin stack-auditor-darwin-amd64​




#2) Installing Stack Auditor on SAP Business Application Studio


While it's possible that stack-auditor might become available in SAP Business Application Studio without requiring any manual installation in the future, currently, this is not the case. Therefore, in this blog post, I will demonstrate how to install Stack Auditor on SAP Business Application Studio


Note: If you don't have BTP SAP Business Application Studio, you can follow the Article to get set up SAP Business Application Studio on BTP Trial account.


or



Your BTP administrators would have already set up productive SAP Business Application Studio in your organization.

To install Stack Auditor, follow these steps:


  1. Download the stack-auditor-linux-32 binary from Releases in the Stack Auditor repository on GitHub at the following URL: https://github.com/cloudfoundry/stack-auditor/releases

  2. Extract the archive you downloaded into your local system. Unpack the archive on your local system either using a file explorer or using tar xvzf <archive> [-C <directory>].

  3. Open the desired Project DevSpace of SAP Business Application Studio or create a new DevSpace. Note that currently, you need to install this plug-in for every DevSpace but this may change in the future.

  4. Upload the stack-auditor-linux-32 file to any folder in SAP Business Application Studio.

  5. Install the plug-in with the cf CLI by executing the following command from the terminal:
    cf install-plugin stack-auditor-linux-32




Once you have installed Stack Auditor, you can change the stack using the following command:


cf change-stack your-app-name cflinuxfs4

If you would like to switch your Cloud Foundry Runtime Stack to the latest version, cflinuxfs4, you may find my blog post helpful as a reference.



Request for Feedback and Support:


Thanks for reading! If you found this post helpful, please consider ‘'Like' ,'Share' it with your network. Your support helps me create more valuable content. I welcome any feedback or suggestions - feel free to comment . Don't forget to 'Follow' me for more content like this.
Your support means a lot to me!

About me :


LinkedIn > Showkath


2 Comments