Managing Policies


This chapter provides information about managing policies.

This chapter includes the following sections:

Working With Core File Policies

Working With Fault Policies

Working With Log Policies

Working With Syslog Policies

Working With Core File Policies

This section includes the following topics:

Creating a Core File Policy

Deleting a Core File Policy

Displaying Core File Policies

Creating a Core File Policy

You can create core file policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. create corefile <policy-name> <transfer-host-name> <policy-path> {disabled | enabled}

5. commit-buffer

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

create corefile


Example

vnmc(policy-mgr) /org/policy # create corefile EaCoreP12 P1 P2 /test enabled

Creates a core file policy.

For the policy name, the maximum number of characters is 511.

Step 5 

commit-buffer


Example:

vnmc(policy-mgr) /org/policy/corefile* # commit-buffer

Commits (saves) the configuration.

EXAMPLES

This example shows how to create a core file policy:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr) /org # scope policy
vnmc(policy-mgr) /org/policy # create corefile EaCoreP12 P1 P2 /test enabled
vnmc(policy-mgr) /org/policy/corefile* # commit-buffer
vnmc(policy-mgr) /org/policy/corefile # 

Deleting a Core File Policy

You can delete core file policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. delete corefile <policy-name>

5. commit-buffer

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

delete corefile


Example

vnmc(policy-mgr) /org/policy # delete corefile EaCoreP12

Deletes a core file policy.

Step 5 

commit-buffer


Example:

vnmc(policy-mgr) /org/policy * # commit-buffer

Commits (saves) the configuration.

EXAMPLES

This example shows how to delete the core file:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr)# scope policy
vnmc(policy-mgr) /org/policy # delete corefile EaCoreP12
vnmc(policy-mgr) /org/policy* # commit-buffer
vnmc(policy-mgr) /org/policy # 

Displaying Core File Policies

You can display core file policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. show corefile

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

show corefile


Example

vnmc(policy-mgr) /org/policy # show corefile

Displays core file policies.

EXAMPLES

This example shows how to display all core file policies in list form:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr) /org # scope policy
vnmc(policy-mgr) /org/policy # show corefile

Core File Policy:
    Core File Policy Name: local
    Core File Transfer Host Name: nexthost
    Core File Policy Path: /test
    Core File Policy Admin State: Enabled

    Core File Policy Name: host
    Core File Transfer Host Name: nexthost
    Core File Policy Path: /test
    Core File Policy Admin State: Enabled
vnmc(policy-mgr) /org/policy # 

Working With Fault Policies

This section includes the following topics:

Creating a Fault Policy

Deleting a Fault Policy

Displaying Fault Policies

Creating a Fault Policy

You can create fault policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. create faultpolicy <policy-name> <flap-interval> {delete | retain} {<number-of-days> | forever} {disabled | enabled}

5. commit-buffer

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

create faultpolicy


Example

vnmc(policy-mgr) /org/policy # create faultpolicy EaFaultPA13 10 retain forever enabled

Creates a fault policy.

For the policy name, the maximum number of characters is 511.

Step 5 

commit-buffer


Example:

vnmc(policy-mgr) /org/policy/faultpolicy* # commit-buffer

Commits (saves) the configuration.

EXAMPLES

This example shows how to create a fault policy named EaFaultPA13:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr) /org # scope policy
vnmc(policy-mgr) /org/policy # create faultpolicy EaFaultPA13 10 retain forever enabled
vnmc(policy-mgr) /org/policy/faultpolicy* # commit-buffer
vnmc(policy-mgr) /org/policy/faultpolicy # 

Deleting a Fault Policy

You can delete fault policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. delete faultpolicy <policy-name>

5. commit-buffer

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

delete faultpolicy


Example

vnmc(policy-mgr) /org/policy # delete faultpolicy EaFaultPA13

Deletes a fault policy.

Step 5 

commit-buffer


Example:

vnmc(policy-mgr) /org/policy* # commit-buffer

Commits (saves) the configuration.

EXAMPLES

This example shows how to delete a fault policy named sysfault:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr) /org # scope policy
vnmc(policy-mgr) /org/policy # delete faultpolicy EaFaultPA13
vnmc(policy-mgr) /org/policy* # commit-buffer
vnmc(policy-mgr) /org/policy # 

Displaying Fault Policies

You can display fault policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. show faultpolicy

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

show faultpolicy


Example

vnmc(policy-mgr) /org/policy # show faultpolicy

Displays fault policies.

EXAMPLES

This example shows how to display all fault policies in list form:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr) /org # scope policy
vnmc(policy-mgr) /org/policy # show faultpolicy

Fault Policy:
    Fault Policy Name: default
    Fault Policy Clear Action: Retain
    Fault Policy Flap Interval (dd:hh:mm:ss): 00:00:00:10
    Fault Policy Retention Interval (dd:hh:mm:ss): 10:00:00:00
    Fault Policy Admin State: Enabled

    Fault Policy Name: EaFaultPA13
    Fault Policy Clear Action: Retain
    Fault Policy Flap Interval (dd:hh:mm:ss): 00:00:00:05
    Fault Policy Retention Interval (dd:hh:mm:ss): 100:00:00:00
    Fault Policy Admin State: Enabled

Working With Log Policies

This section includes the following topics:

Creating a Log Policy

Deleting a Log Policy

Displaying Log Policies

Creating a Log Policy

You can create log policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. create log <policy-name> <log-policy-backup-count> {crit | debug0 | debug1 | debug3 | debug4 | info | major | minor | warn} <log-policy-size>

5. commit-buffer

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

create log


Example

vnmc(policy-mgr) /org/policy # create log EaLogP13 9 crit 10000000

Creates a log policy.

For the policy name, the maximum number of characters is 511.

Step 5 

commit-buffer


Example:

vnmc(policy-mgr) /org/policy/log* # commit-buffer

Commits (saves) the configuration.

EXAMPLES

This example shows how to create a log policy named EaLogP13:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org 
vnmc(policy-mgr) /org # scope policy 
vnmc(policy-mgr) /org/policy # create log EaLogP13 9 crit 10000000
vnmc(policy-mgr) /org/policy/log* # commit-buffer 
vnmc(policy-mgr) /org/policy/log # 

Deleting a Log Policy

You can delete fault policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. delete log <policy-name>

5. commit-buffer

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

delete log


Example

vnmc(policy-mgr) /org/policy # delete log EaLogP13

Deletes a log policy.

Step 5 

commit-buffer


Example:

vnmc(policy-mgr) /org/policy* # commit-buffer

Commits (saves) the configuration.

EXAMPLES

This example shows how to delete a log policy named EaLogP13:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr) /org # scope policy
vnmc(policy-mgr) /org/policy # delete log EaLogP13
vnmc(policy-mgr) /org/policy* # commit-buffer
vnmc(policy-mgr) /org/policy # 

Displaying Log Policies

You can display log policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. show log

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

show log


Example

vnmc(policy-mgr) /org/policy # show log

Displays log policies.

EXAMPLES

This example shows how to display all log policies in list form:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr) /org # scope policy
vnmc(policy-mgr) /org/policy # show log 

Logging Policy:
    Logging Policy Name: LogPA1
    Logging Policy Backup Count: 2
    Logging Policy Level: Debug1
    Logging Policy Size: 10000000
    Logging Policy Admin State: Enabled

    Logging Policy Name: LogPA2
    Logging Policy Backup Count: 1
    Logging Policy Level: Crit
    Logging Policy Size: 1000000
    Logging Policy Admin State: Enabled
vnmc(policy-mgr) /org/policy # 

Working With Syslog Policies

This section includes the following topics:

Creating a Syslog Policy

Deleting a Syslog Policy

Displaying Syslog Policies

Creating a Syslog Policy

You can create syslog policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. create syslog <policy-name>

5. commit-buffer

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

create syslog


Example

vnmc(policy-mgr) /org/policy # create syslog EaSysPA13

Creates a syslog policy.

For the policy name, the maximum number of characters is 511.

Step 5 

commit-buffer


Example:

vnmc(policy-mgr) /org/policy/syslog* # commit-buffer

Commits (saves) the configuration.

EXAMPLES

This example shows how to create a log policy named EaSysPA13:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org 
vnmc(policy-mgr) /org # scope policy 
vnmc(policy-mgr) /org/policy # create syslog EaSysPA13
vnmc(policy-mgr) /org/policy/syslog* # commit-buffer 
vnmc(policy-mgr) /org/policysyslog # 

Deleting a Syslog Policy

You can delete syslog policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. delete syslog <policy-name>

5. commit-buffer

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

delete syslog


Example

vnmc(policy-mgr) /org/policy # delete syslog EaSysPA13

Deletes a syslog policy.

Step 5 

commit-buffer


Example:

vnmc(policy-mgr) /org/policy* # commit-buffer

Commits (saves) the configuration.

EXAMPLES

This example shows how to delete a log policy named EaSysPA13:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr)# scope policy
vnmc(policy-mgr) /org/policy # delete syslog EaSysPA13
vnmc(policy-mgr) /org/policy* # commit-buffer
vnmc(policy-mgr) /org/policy # 

Displaying Syslog Policies

You can display syslog policies.

BEFORE YOU BEGIN

See VNMC CLIs Basic Commands, page 1-5 for basic information about the VNMC CLI.

CLI

Policy manager

SUMMARY STEPS

1. connect policy-mgr

2. scope org

3. scope policy

4. show syslog

DETAILED STEPS

 
Command
Purpose

Step 1 

connect policy-mgr


Example:

vnmc# connect policy-mgr

Places you in the policy manager CLI.

Step 2 

scope org


Example:

vnmc(policy-mgr)# scope org

Places you in organization mode.

Step 3 

scope policy


Example:

vnmc(policy-mgr) /org # scope policy

Places you in policy mode.

Step 4 

show syslog


Example

vnmc(policy-mgr) /org/policy # show syslog

Displays syslog policies.

EXAMPLES

This example shows how to display all log policies in list form:

vnmc# connect policy-mgr
Cisco Virtual Network Management Center
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php

vnmc(policy-mgr)# scope org
vnmc(policy-mgr) /org # scope policy
vnmc(policy-mgr) /org/policy # show syslog

name: default
description: Syslog Service
name: EaSysPA13
description: Syslog Service
vnmc(policy-mgr) /org/policy #