Article ID: 2014, created on Jul 12, 2007, last review on May 3, 2014

  • Applies to:
  • Odin Business Automation Standard 3.3

Resolution

As of HSPcomplete version 3.3, you must use the /usr/sbin/hspcpkgctl.pl script to operate on templates.

The new utility supports EZ templates, recursive directory scanning, and importing OS/Application templates from Virtuozzo Hardware Nodes, providing all of the same functionality as the old hspc-install-tmpls.pl script.

Detailed information regarding script usage can be found in the corresponding "perldoc" page on the HSPcomplete server: perldoc /usr/sbin/hspcpkgctl.pl

Please make sure that the directory containing the uploaded templates (specified with the "-d" option) is accessible for the apache user; you may try to check the accessibility using the following command:
# su - apache
$ ls -l /path/to/templates/




Examples:
  • Scan the /tmp/templates/ directory for new templates recursively, install these templates on the HSPcomplete system, and synchronize the newly installed templates with Hardware Nodes #1, 2:# hspcpkgctl.pl install -d /tmp/templates -r -n 1 2
  • Install the single EZ template from the /tmp/redhat-as4-x86-ez-3.0.0-2.swsoft.noarch.rpm file: # hspcpkgctl.pl install -f /tmp/redhat-as4-x86-ez-3.0.0-2.swsoft.noarch.rpm
  • Synchronize the postgresql EZ template from the RedHat AS4 distribution with Hardware Node #1, using Task Manager: # hspcpkgctl.pl sync -p postgresql -D redhat-as-x86 -n 1 --async
               .

b91f0e51a581aafeed4e0834068081e0 400e18f6ede9f8be5575a475d2d6b0a6 95c731ef6bb58e30865e046f2135d4c1 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF