Creating a Technology Pack project

Create a workspace directory to keep the Technology Packs project files that are developed.

About this task

Use the pack_tool script to create a workspace for your project.

Procedure

  1. Create a workspace directory for the workspace with the following command:
    cd /<pack_dev_tool>
      $ mkdir workspace
    
    Where, workspace is the project directory.
  2. Optional: You can also create a softlink to the repository that you are using directly.
    For example, to convert your Git repository as the workspace directory to develop the packs, follow these commands:
    
      $ cd ~/git/
      $ git clone git@<repo_server.ibm.com>:<my_repo>/<my_file>.git
      $ cd ~/<pack_dev_tool>
      $ ln -s ~/git/<my_pack> workspace
    
    A new workspace by name <my_pack> is created that contains the new Technology Pack with the same name as the workspace.
  3. Run the following command:
    
    cd /<pack_dev_tool>
    bin/pack-tool new <my_pack>
    New pro pack by name <my_pack> is created that contains the new Technology Pack with the same name as the workspace.

What to do next

Verify that the Technology Pack with the name <my_pack> is created as follows:

   $ find workspace/<my_pack>/
   

   workspace/<my_pack>/
   workspace/<my_pack>/snmp
   workspace/<my_pack>/snmp/mibs
   workspace/<my_pack>/snmp/formulas
   workspace/<my_pack>/discovery
   workspace/<my_pack>/inventory
   workspace/<my_pack>/inventory/rules
   workspace/<my_pack>/inventory/model
   workspace/<my_pack>/metrics
   workspace/<my_pack>/pack.properties

Currently, you can ignore the inventory directory and its subdirectories.

Note: The pack.properties file contains the technology pack version. The default is 1.0.0.