Opé‐
ration
3
4
5
6
7
Exemple
localhost# config
Entering configuration mode terminal
localhost(config)# system management-services snmp community
v2cTrapIndex
localhost(config-snmp-community-v2cTrapIndex)# text-name publicv2c
localhost(config-snmp-community-v2cTrapIndex)# security-name v2c-Sec
localhost(config-snmp-community-v2cTrapIndex)# commit
Commit complete.
localhost(config-snmp-community-v2cTrapIndex)# end
localhost# show running-config system management-services snmp
community v2cTrapIndex
system
management-services
snmp
Command Line Interface (CLI) SINEC OS V2.4
Manuel de configuration, 10/2023, C79000-G8977-C498-07
Instruction
Attribuez un nom à la SNMP Community.
Le nom de la Community correspond à la Com‐
munity String qu'un utilisateur indique lors
d'une requête SNMP via SNMPv1 et v2c.
Options disponibles :
•
text-name - Le nom de la Community
sous forme de chaîne de caractères.
•
binary-name - Le nom de la Community
en notation hexadécimale avec des deux-
points comme caractères de séparation.
Exemple : La valeur "0x123456ABCD" est
configurée/présentée comme suit :
12:34:56:AB:CD.
Utilisez cette option si le nom de la Com‐
munity contient des caractères non afficha‐
bles.
Condition :
•
Il doit compter de 1 à 256 caractères.
Attribuez un nom de sécurité à la SNMP Com‐
munity. Le nom de sécurité permet d'associer
une Community à un groupe.
Condition :
•
Il doit compter de 1 à 32 caractères
Validez les modifications.
Quittez le mode de configuration.
Contrôlez la configuration.
community v2cTrapIndex
text-name
publicv2c
security-name v2c-Sec
exit
Découverte et gestion de réseau
Commande
[ text-name | binary-name ]
{ Nom }
security-name { Nom }
commit
end
show running-config system
management-services snmp
community { Indice }
11.6 SNMP
521