Product:
Search Type:

hspc-install-tmpls.pl script is seems not available in HSPcomplete 3.3 version? How could I install templates from command line?

Article ID: 2014 
Last Review: Oct,17 2007
APPLIES TO:
  • HSPcomplete 3.3.x

RESOLUTION

Since HSPcomplete 3.3 version please use
/usr/sbin/hspcpkgctl.pl
script to operate on templates.
New utility supports EZ templates, recursive directory scanning, importing OS/Application templates from Virtuozzo Hardware Nodes and provides all functionality which old hspc-install-tmpls.pl script had.

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


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




Examples:
  • scan /tmp/templates/ directory for new templates recursively, install these templates on HSPcomplete system and synchronize newly installed templates with hardware nodes #1,2:
    # hspcpkgctl.pl install -d /tmp/templates -r -n 1 2
  • install single EZ template from /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 postgresql EZ template from RedHat AS4 distribution with Hardware Node #1, using Task Manager:
    # hspcpkgctl.pl sync -p postgresql -D redhat-as-x86 -n 1 --async

               .
Keywords: mass template install hspcpkgctl.pl hspc-install-tmpls.pl

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields