Server Management - Remote Server Management
1748148 Members
3588 Online
108758 Solutions
New Discussion юеВ

hponcfg /s HOW TO

 
Martin Forster_1
Frequent Advisor

hponcfg /s HOW TO

HI
its not documentated yet but pretty simble.

Just wrap on of the existing values in the xml files in % sings like
<%IP_ADDRESS% value=""/>
then call the executeable
hponcfg /w test.xml /s IP_ADDRESS=1.1.1.1

voila.
REGARDS
2 REPLIES 2
Martin Forster_1
Frequent Advisor

Re: hponcfg /s HOW TO

see above
Rajeshwari, Hiresave
Trusted Contributor

Re: hponcfg /s HOW TO

Variable substitution using '/s' option in HPONCFG :

HPONCFG version 1.2 onwards allows you to specify variables in the XML RIBCL script and to assign values to those variables when HPONCFG is executed. This feature would help to avoid re-writing the file containing the XML script every time with different values. Any thing enclosed in between two ├в %├в characters in the XML file is considered as a variable.
In the example XML script below, %username%, %loginname% and %password% are variables.













Values for these variables can be specified at execution time using ├в substitute├в option. The argument to the option must be a string of variable name and value pairs separated by delimiter ├в ,├в (comma). The variable name and its value must be separated by ├в =├в (equals).

HPONCFG /f add_user.xml /s username=├в test user├в ,login=├в testlogin├в ,password=testpasswd