Setting Attributes for Core File, Fault, and Log Policies
This chapter provides information about core file, fault, and log policy attributes.
Core file, fault, and log policies are collections of attributes. lists core file, fault,a nd log policy attributes.
|
|
|
---|---|---|
adminstration state— description— host name— path— port— |
administration state— clear action— |
For details about creating, enabling, disabling, and setting attributes, see any of the appropriate sections below.
This chapter includes the following sections:
•Setting Core File Policy Attributes
•Setting Fault Policy Atttributes
•Setting Log Policy Attributes
Setting Core File Policy Attributes
This section includes the following topics:
•Setting the Administration State
Setting the Administration State
You can set the administration state.
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. scope corefile <policy-name>
5. set adminstate {disabled | enabled}
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the administration state:
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 # scope corefile EaCorePA10
vnmc(policy-mgr) /org/policy/corefile # set adminstate enabled
vnmc(policy-mgr) /org/policy/corefile* # commit-buffer
vnmc(policy-mgr) /org/policy/corefile #
Setting the Description
You can set the description.
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. scope corefile <policy-name>
5. set descr <description>
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to add a description to the core policy EaCorePA10:
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 # scope corefile EaCorePA10
vnmc(policy-mgr) /org/policy/corefile # set descr CoreFilePolicyAgent10
vnmc(policy-mgr) /org/policy/corefile* # commit-buffer
vnmc(policy-mgr) /org/policy/corefile #
Setting the Host Name
You can set the core file transfer host name.
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. scope corefile <policy-name>
5. set hostname <host-name>
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the core file transfer host name:
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 # scope corefile EaCorePA10
vnmc(policy-mgr) /org/policy/corefile # set hostname policy10
vnmc(policy-mgr) /org/policy/corefile* # commit-buffer
vnmc(policy-mgr) /org/policy/corefile #
Setting the Path
You can set the core file policy path.
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. scope corefile <policy-name>
5. set path <core-file-policy-path>
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the core file policy path:
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 # scope corefile EaCorePA10
vnmc(policy-mgr) /org/policy/corefile # set path /test
vnmc(policy-mgr) /org/policy/corefile* # commit-buffer
vnmc(policy-mgr) /org/policy/corefile #
Setting the Port
You can set the core file policy port number.
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. scope corefile <policy-name>
5. set port <port-number>
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the core file policy port number:
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 # scope corefile EaCorePA10
vnmc(policy-mgr) /org/policy/corefile # set port 10
vnmc(policy-mgr) /org/policy/corefile* # commit-buffer
vnmc(policy-mgr) /org/policy/corefile #
Setting Fault Policy Atttributes
This section includes the following topics:
•Setting the Administration State
•Setting the Retention Interval
Setting the Administration State
You can set the administration state.
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. scope faultpolicy <policy-name>
5. set adminstate {disabled | enabled}
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the administration state:
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 # scope faultpolicy EaFaultPA12
vnmc(policy-mgr) /org/policy/faultpolicy # set adminstate enabled
vnmc(policy-mgr) /org/policy/faultpolicy* # commit-buffer
vnmc(policy-mgr) /org/policy/faultpolicy #
Setting Clear Action
You can set clear action.
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. scope faultpolicy <policy-name>
5. set clearaction {delete | retain}
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set clear action:
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 # scope faultpolicy EaFaultPA12
vnmc(policy-mgr) /org/policy/faultpolicy # set clearaction retain
vnmc(policy-mgr) /org/policy/faultpolicy* # commit-buffer
vnmc(policy-mgr) /org/policy/faultpolicy #
Setting the Description
You can set the description.
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. scope faultpolicy <policy-name>
5. set descr <description>
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to add a description to the fault policy EaFaultPA12:
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 # scope faultpolicy EaFaultPA12
vnmc(policy-mgr) /org/policy/faultpolicy # set descr FaultPolicy1
vnmc(policy-mgr) /org/policy/faultpolicy* # commit-buffer
vnmc(policy-mgr) /org/policy/faultpolicy #
Setting the Flap Interval
You can set the flap interval in a fault policy.
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. scope faultpolicy <policy-name>
5. set flapinterval <interval>
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the flap interval in a fault policy to 10 minutes:
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 # scope faultpolicy EaFaultPA12
vnmc(policy-mgr) /org/policy/faultpolicy # set flapinterval 00:00:10:00
vnmc(policy-mgr) /org/policy/faultpolicy* # commit-buffer
vnmc(policy-mgr) /org/policy/faultpolicy #
Setting the Retention Interval
You can set the retention interval in a fault policy.
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. scope faultpolicy <policy-name>
5. set retentioninterval {0-4294967295 | forever}
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the retention interval in a fault policy to 10 days:
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 # scope faultpolicy EaFaultPA12
vnmc(policy-mgr) /org/policy/faultpolicy # set retentioninterval 10:00:00:00
vnmc(policy-mgr) /org/policy/faultpolicy* # commit-buffer
vnmc(policy-mgr) /org/policy/faultpolicy #
Setting Log Policy Attributes
This section includes the following topics:
Setting the Backup Count
You can set the backup count in a log policy.
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. scope log <policy-name>
5. set backup-count {1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the backup count:
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 # scope log EaLogPA11
vnmc(policy-mgr) /org/policy/log # set backup-count 9
vnmc(policy-mgr) /org/policy/log* # commit-buffer
vnmc(policy-mgr) /org/policy/log #
Setting the Description
You can set the description in a log policy.
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. scope log <policy-name>
5. set descr <policy-description>
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the description:
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 # scope log EaLogPA11
vnmc(policy-mgr) /org/policy/log # set descr LogPolicy11
vnmc(policy-mgr) /org/policy/log* # commit-buffer
vnmc(policy-mgr) /org/policy/log #
Setting the Level
You can set the level in a log policy.
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. scope log <policy-name>
5. set level {critical | debug0 | debug1 | debug2 | debug3 | debug4 | info | major | minor | warning}
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the level:
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 # scope log EaLogPA11
vnmc(policy-mgr) /org/policy/log # set level critical
vnmc(policy-mgr) /org/policy/log* # commit-buffer
vnmc(policy-mgr) /org/policy/log #
Setting the Size
You can set the size in a log policy.
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. scope log <policy-name>
5. set size <size>
6. commit-buffer
DETAILED STEPS
EXAMPLES
This example shows how to set the size:
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 # scope log EaLogPA11
vnmc(policy-mgr) /org/policy/log # set size 104857599
vnmc(policy-mgr) /org/policy/log* # commit-buffer
vnmc(policy-mgr) /org/policy/log #