Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- Application Configuration tasks
- Create an Application Configuration
- Create a configuration template
- Create a template with Visual Editor
- Edit CML or XML in a template
- Import and validate a template file
- View configuration template sources
- Add or remove templates from an Application Configuration
- Specify the template order in the Application Configuration
- Create a template from a script
- Manage non-text configurations by running a data manipulation script
- Run data manipulation scripts manually
- Attach an Application Configuration to a server or device group
- Detach an Application Configuration from a server or device group
- Push Application Configurations
- Schedule an Application Configuration push
- Restore a configuration file to a previous state
- Search and filter job results
- Compare a configuration template with a target configuration file - Preview
- Compare configuration templates
- Localize configuration file element names
Create a template from a script
To include a script in an application configuration object you must copy the script into a CML template then import the template into the application configuration object. For details on CML, see CML Reference. See Run scripts with Application Configurations.
The following example shows a simple Unix shell script that performs a touch command and an echo command:
#/bin/sh touch abc.txt echo abc >>abc.txt The following example shows this Unix shell script converted to CML: @######################################################### # /tmp/simple-script/TouchABC.sh # # Version 0.1 # # Author: <name> # #########################################################@ @!namespace=/simple-script-namespace/@ @!filename-key="/TouchABC"@ @!filename-default=/tmp/simple-script/TouchABC.sh@ #/bin/sh touch abc.txt echo abc >>abc.txt
To create a template from this script:
- Create a template as described in test text . Use the CML version of your script as the contents of the template.
- Set the Type field to the appropriate script type. For the above example, you would set the Type to “Unix .SH script”. Other supported script types are listed in Types of Application Configuration scripts.
- Set the Parser Syntax field to “CML Syntax” since all scripts must be written in CML syntax.
- Set the remaining fields as described in test text .
- Select File > Save.
- Select File > Close.
- Add your template to an application configuration object as described in Add or remove templates from an Application Configuration.
- After adding your template to an application configuration object, open the application configuration object.
- Select the Configuration Values view.
- Select the script template and right-click to display the menu.
- Select the script type, which specifies when the script will run: Data-manipulation, Pre-install, Post-install or Post-error.
- Select File > Save.
- Select File > Close.
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to hpe_sa_docs@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: