Introduction
Ce document décrit les étapes pour modifier les politiques de surveillance ACI, en particulier la période de rétention de l'historique pour les statistiques d'interface.
Conditions préalables
Conditions requises
Aucune spécification déterminée n'est requise pour ce document.
Components Used
Les informations contenues dans ce document sont basées sur la version 5.2(2e) du logiciel ACI.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. Si votre réseau est en ligne, assurez-vous de bien comprendre l’incidence possible des commandes.
Informations générales
Les statistiques d'interface sont disponibles dans Fabric > Inventory > Pod x > Interfaces > Physical Interfaces > ethx/y > Stats tab.
A partir de cette vue d'état, la période de conservation de l'historique de la granularité est appliquée pour conserver les enregistrements de :
- Total des octets sortants
- Taux total d'octets sortants
- Total des octets entrants
- Taux total d'octets entrants
- Erreurs d'alignement CRC
Cet article contient des étapes pour modifier la période de rétention de l'historique de la granularité "15 minutes". La valeur par défaut de la période de conservation de l'historique pour « 15 minutes » est 1 jour.
Le contenu de l'article peut être adapté à d'autres valeurs de granularité selon les besoins.
Configuration
Les politiques de collecte de statistiques suivent une structure hiérarchique et un processus de résolution qui peuvent être résumés avec ce diagramme :
--- MonObj "ALL" + Stats Type "ALL"
|
|--- MonObj "className" + Stats Type "ALL"
|
|--- MonObj "className" + Stats Type "Specific-value"
Les objets de surveillance spécifiques (MonObjs) avec des valeurs de type d'état spécifiquement définies (niveau le plus bas) sont prioritaires. S'ils ne sont pas définis, ils convertissent les valeurs du niveau suivant jusqu'à l'objet de surveillance globale "ALL" et le type de statistiques "ALL".
La politique de collecte de statistiques de la politique de surveillance « par défaut » peut être utilisée pour modifier la granularité et la période de rétention de l'historique des statistiques pour l'ensemble du fabric ACI si aucune autre politique de surveillance nommée n'est définie et utilisée.
Configuration via l'interface utilisateur graphique
- Dans la barre de menus supérieure, cliquez sur Fabric, puis sur Access Policies.
- Dans le volet de navigation, développez Stratégies, Surveillance puis Paramètres par défaut.
- Cliquez sur le dossier Stratégies de collecte de statistiques.
- La configuration se poursuit dans le volet de droite. Il existe 3 options :
- Modifiez l'objet de surveillance globale « ALL » avec le type de statistiques « ALL »
- Modifiez l'objet de surveillance « Configuration d'interface physique de couche 1 (l1.Physif) » avec le type d'état « ALL »
- Modifiez la configuration d'interface physique de couche 1 (l1.Physif) avec des types d'état spécifiques : « Egress », « Ingress » et « Ingress Error Packets »
Les options A, B et C peuvent être visualisées comme suit :
--- MonObj "ALL" + Stats Type "ALL" - Option A
|
|--- MonObj "l1Physif" + Stats Type "ALL" - Option B
|
|--- MonObj "l1Physif" + Stats Type "Egress"... - Option C
L'option C est l'option la plus spécifique et permet de modifier uniquement les statistiques mentionnées dans la section Informations de base. Cependant, cet article passe en revue le processus pour les autres options afin d'aider à comprendre la hiérarchie.
Note: L'option A ou B modifie les stratégies de collecte de statistiques pour les MonObs et les types de statistiques au-delà de celles spécifiées dans la section Informations d'arrière-plan.
Option A - MonObj "ALL" + Stats Type "ALL"
- Assurez-vous que l'objet de surveillance "ALL" et le type de statistiques "ALL" sont sélectionnés
- Recherchez l'entrée Granularité « 15 minutes ».
- Assurez-vous que son état Admin est défini sur « activé »
- Modifiez la période de rétention de l'historique à l'heure souhaitée, « 1 semaine » pour cet article.
- Cliquez sur Update.
Dans ce scénario, une période de rétention d'historique d'une semaine est appliquée à la granularité de 15 minutes de tous les objets de surveillance pour tous les types de statistiques. Cela se traduit par une augmentation de la rétention des objets dans votre fabric ACI.
Option B - MonObj "l1.Physif" + Stats Type "ALL"
- Assurez-vous que les options Objet de surveillance « Configuration de l'interface physique de couche 1 (l1.Physif) » et Type d'état « ALL » sont sélectionnées
- Cliquez sur l'icône "+"
- Sélectionnez l'entrée Granularité « 15 minutes ».
- Assurez-vous que son état Admin est défini sur « activé »
- Modifiez la période de rétention de l'historique à l'heure souhaitée, « 1 semaine » pour cet article.
- Cliquez sur Update.
Dans ce scénario, une période de rétention d'historique d'une semaine est appliquée à toutes les interfaces avec une granularité de 15 minutes pour tous les types de statistiques. Il s'agit d'une approche plus contrôlée, car le changement s'applique à L1Physif.
Option C - MonObj "l1.Physif" + Types de statistiques spécifiques
Les types d'état à modifier sont "Egress", "Ingress" et "Ingress Error Packets"
- Assurez-vous que les options Objet de surveillance « Configuration de l'interface physique de couche 1 (l1.Physif) » et Type d'état « Sortie » sont sélectionnées
- Cliquez sur l'icône "+"
- Sélectionnez l'entrée Granularité « 15 minutes ».
- Assurez-vous que son état Admin est défini sur « activé »
- Modifiez la période de rétention de l'historique à l'heure souhaitée, « 1 semaine » pour cet article.
- Cliquez sur Update.
- Répétez l'opération pour les statistiques de type "Ingress" et "Ingress Error Packets"
Dans ce scénario, une période de rétention de l'historique d'une semaine est appliquée aux interfaces avec une granularité de 15 minutes pour les paquets d'erreur de type d'état Egress, Ingress et Ingress. Il s'agit de l'approche la plus contrôlée, car la modification s'applique à des types de statistiques spécifiques.
Vérification
La durée de conservation de l'historique pendant 15 minutes peut être vérifiée via l'interface de ligne de commande APIC et l'interface utilisateur graphique.
Dans cet article, les périodes de conservation de l'historique sont :
Objet Monitoring |
Type de statistiques |
Période de conservation des historiques |
TOUS |
TOUS |
1 jour |
Configuration de l'interface physique de couche 1 (l1.Physif) |
TOUS |
1 semaine |
Configuration de l'interface physique de couche 1 (l1.Physif) |
Sortie |
1 semaine |
Configuration de l'interface physique de couche 1 (l1.Physif) |
Entrée |
1 heure |
Configuration de l'interface physique de couche 1 (l1.Physif) |
Paquets d'erreur entrants |
10 jours |
Vérification via l'interface CLI APIC
À partir de l'API, ces objets peuvent être interrogés pour vérifier les différents niveaux des stratégies de surveillance :
uni/infra/moninfra-default/coll-15min
uni/infra/moninfra-default/tarinfra-l1PhysIf/coll-15min
uni/infra/moninfra-default/tarinfra-l1PhysIf/stat-eqptIngrTotal/coll-15min
uni/infra/moninfra-default/tarinfra-l1PhysIf/stat-eqptEgrTotal/coll-15min
uni/infra/moninfra-default/tarinfra-l1PhysIf/stat-eqptIngrErrPkts/coll-15min
Utilisez moquery sur ces objets via l'interface de ligne de commande APIC :
apic1# moquery -d uni/infra/moninfra-default/coll-15min
Total Objects shown: 1
# stats.HierColl
granularity : 15min
adminState : enabled
dn : uni/infra/moninfra-default/coll-15min
histRet : 1d
modTs : 2022-05-20T13:03:05.311+02:00
rn : coll-15min
userdom : all
apic1# moquery -d uni/infra/moninfra-default/tarinfra-l1PhysIf/coll-15min
Total Objects shown: 1
# stats.HierColl
granularity : 15min
adminState : enabled
dn : uni/infra/moninfra-default/tarinfra-l1PhysIf/coll-15min
histRet : 1w
modTs : 2022-05-16T16:15:58.031+02:00
rn : coll-15min
userdom : :all:common:
apic1# moquery -d uni/infra/moninfra-default/tarinfra-l1PhysIf/stat-eqptEgrTotal/coll-15min
Total Objects shown: 1
# stats.Coll
granularity : 15min
adminState : enabled
dn : uni/infra/moninfra-default/tarinfra-l1PhysIf/stat-eqptEgrTotal/coll-15min
histRet : 1w
modTs : 2022-05-16T16:16:54.786+02:00
rn : coll-15min
userdom : :all:common:
apic1# moquery -d uni/infra/moninfra-default/tarinfra-l1PhysIf/stat-eqptIngrTotal/coll-15min
Total Objects shown: 1
# stats.Coll
granularity : 15min
adminState : enabled
dn : uni/infra/moninfra-default/tarinfra-l1PhysIf/stat-eqptIngrTotal/coll-15min
histRet : 1h
modTs : 2022-05-16T16:21:25.962+02:00
rn : coll-15min
userdom : :all:common:
apic1# moquery -d uni/infra/moninfra-default/tarinfra-l1PhysIf/stat-eqptIngrErrPkts/coll-15min
Total Objects shown: 1
# stats.Coll
granularity : 15min
adminState : enabled
dn : uni/infra/moninfra-default/tarinfra-l1PhysIf/stat-eqptIngrErrPkts/coll-15min
histRet : 10d
modTs : 2022-05-20T13:03:24.715+02:00
rn : coll-15min
userdom : :all:common:
Vérifier via l'interface graphique
Une fois la période de rétention de l'historique configurée écoulée, le résultat est visible sur la page Interface Stats.
Fabric > Inventory > Pod x > Interfaces > Physical Interfaces > ethx/y > Stats tab :
Pour valider la modification pour la granularité de 15 minutes :
- Cochez la case Icône en haut à gauche
- Sélectionnez l'intervalle d'échantillonnage de 15 minutes avec les types d'unités par défaut
- Cliquez sur Submit.
Pour vérifier tous les statistiques disponibles à partir de cette interface, remplacez Zoom par "Tous"
Notez que la période de conservation de l'historique de granularité de 15 minutes d'une journée (« ALL » + type de statistiques « ALL ») et d'une semaine (« L1Physif » + type de statistiques « ALL ») n'est pas utilisée.
Au lieu de cela, les définitions spécifiques des types de statistiques de
- 1 semaine (« Egress »)
- 1 heure (« Entrée »)
- 10 jours (« Paquets d'erreur en entrée »)
ont pris effet.