Découverte et gestion de réseau
11.6 SNMP
exit
exit
exit
11.6.4.2
Définition du contexte dans lequel une SNMP Community peut accéder aux
données de la MIB.
Le contexte est utilisé avec un groupe pour restreindre l'accès à certaines zones de la MIB.
Par défaut, une chaîne de caractères vide est définie pour le contexte d'une SNMP
Community.
Pour définir le contexte d'une SNMP Community, procédez comme suit :
Opé‐
ration
1
2
3
4
5
Exemple
localhost# config
Entering configuration mode terminal
localhost(config)# system management-services snmp community
v2cTrapIndex context public1
localhost(config-snmp-community-v2cTrapIndex)# commit
Commit complete.
localhost(config-snmp-community-v2cTrapIndex)# end
localhost# show running-config system management-services snmp
community v2cTrapIndex context
system
management-services
snmp
exit
exit
exit
522
Instruction
Passez en mode de configuration.
Définissez le contexte d'une SNMP Community.
Condition :
•
Il doit compter de 0 à 32 caractères
Validez la modification.
Quittez le mode de configuration.
Contrôlez la configuration.
community v2cTrapIndex
context public1
exit
Commande
config
system management-services snmp
community { Indice } context
{ Nom }
commit
end
show running-config system
management-services snmp
community { Indice } context
Command Line Interface (CLI) SINEC OS V2.4
Manuel de configuration, 10/2023, C79000-G8977-C498-07