Managing Policies
This chapter provides information about managing policies.
This chapter includes the following sections:
•Working With Core File Policies
Working With Core File Policies
This section includes the following topics:
•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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 #