4-23
User
Guide

for

the

Cisco

Application

Networking

Manager

5.2
OL-26572-01
Chapter
4






Using

Application

Template

Definitions
Managing
Application

Template

Definitions
Step
6
When
your

edits

ar

e
complete,
do

one


of

t

he
following:


Click
Va
l

i

d

a

t

e


to
have
ANM
validate

the

application

template

definition

file,

which
means

that
ANM
checks

to

see

that

it

is

a

well-formed

XML

document

that

follows

the

rules

defined

by

the
ANM
Template

XML

schema.

ANM

highlights

any

errors

in

the

code.


Click
Save
t

o

save

your

changes.
Related
Topics


Managing
Application

Template

Definitions,

page
4-15


Editing
an
Application

Template

Definition,

page
4-15


Creating
an
Application
Template
Definition,

page
4-20


Using
the

ANM

Template

Editor,
page
4-29


Testing
an

Application
Template
Definition,
page
4-28


Deleting
an
Application
Template
Definition,

page
4-29


Creating
an

Application

Template
Instance,
page
4-4
Creating
an

Application

Template

Definition

Using

an

External

XML

Editor
You
can

create

a

basic

ACE

application

template

definition

using

an

external

XML

editor

rather

than

the
template
editor

that

comes

with

ANM.

The

procedure

shows

how

to

create

a

base

XML

file

with

which
to
base

your

template

on

and

then

use

the

free

form

XML

tag

to

encapsulate

ACE

CLI

commands

that
you
copy

from

a

known

working

configuration

and

paste

into

the

template.

The

example

template

that
you
create

during

the

procedure

will

initialize

a

virtual

context

by

doing

the

following:


Specify
a

variable

message

of

the

day

(MOTD)

field.


Enable
logging.


Specify
a

number

of

SNMP

attributes,

some

of

which

are

variables.
Guidelines
and

Restrictions
The
ability

to

create

a

complex

template

requires

a

knowledge

of

XML

programming

and

the

ACE

CLI
and
is

beyond

the

scope

of

this

guide.

For

information

about

creating

complex

templates

for

configuring
your
ACEs,

go

to

the

Cisco

Developer

Network

(CDN)

site

at

the

following

URL:
http://developer.cisco.com/web/anm/application-templates
Prerequisites
This
topic

has

the

following

requirements:


Basic
knowledge

of

XML

programming

and

the

ACE

CLI.


Text
editor

(minimum),

such

as

WordPad,

or

an

XML

editor
(preferred).


The
application

template

definition

XML

schema.

You

can

obtain
a
copy

of

this

file

from

the

CDN
site
at

the

following

URL:
http://developer.cisco.com/web/anm/docs
From
this

site,

use

the

schemas

hyperlink

located

under

the

“Application

Template

Schemas”
heading
to

download

the

XML

schema.