Operating System - Linux
1827810 Members
2010 Online
109969 Solutions
New Discussion

Automating "hpasm activate"

 
Brian Harvey_1
Occasional Contributor

Automating "hpasm activate"

I've installed hpasm-7.4.0-56.rhel3.i386.rpm. I'd like to automate the "hpasm activate" process in a shell script using the "here documment" syntax which will automatically fill in the answers.

For example:

#!/bin/ksh
rpm -ivh hpasm-7.4.0-56.rhel3.i386.rpm
/sbin/hpasm activate <y

y
y
.
.
.
ANSWERS

I can't get this to work. Anyone have success in doing something like this?
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: Automating "hpasm activate"

I don't know that command but you could try with:

yes | /sbin/hpasm activate

If you want to answer yes to all questions.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Brian Harvey_1
Occasional Contributor

Re: Automating "hpasm activate"

Unfortunately, that won't work as some answers are not yes. They require either to press return to continue or an actual string to be entered.
David Claypool
Honored Contributor

Re: Automating "hpasm activate"

Methods for silent deployment are documented in the Linux section of the "HP ProLiant Support Pack and Deployment Utilities User Guide" from

http://www.hp.com/servers/manage --> System Management Homepage (Insight Agents) --> Support & Documents --> Manuals - HP System Management Homepage Software --> Manuals --> "HP ProLiant Support Pack and Deployment Utilities User Guide"