Monday 9 September 2013

Configurer SNMP TRAP sur AIX 5.x



Activer la communauté public dans le fichier snmpd.conf dans « /etc/ ». Ci-dessous le fichier snmpd.conf. Ajouter la ligne en rouge ou décommenter là :

#############################################################################
#####                                                                                                                                                 #####
#############################################################################
logging                  file=/usr/tmp/snmpd.log   enabled
logging                  size=100000                                        level=0
community        public
#community       private 127.0.0.1 255.255.255.255 readWrite
#community       system  127.0.0.1 255.255.255.255 readWrite 1.17.2
view            1.17.2          system enterprises view
trap                        public                     127.0.0.1              1.2.3       fe            # loopback
#snmpd                 maxpacket=1024 querytimeout=120 smuxtimeout=60
smux      1.3.6.1.4.1.2.3.1.2.1.2        gated_password  # gated
smux                      1.3.6.1.4.1.2.3.1.2.2.1.1.2 dpid_password   #dpid
snmpd smuxtimeout=200 #muxatmd
smux 1.3.6.1.4.1.2.3.1.2.3.1.1 muxatmd_password #muxatmd


Ensuite modifier /etc/services pour assigner les port 161 et 162 aux services snmp :

snmp                    161/tcp         # SNMP
snmp                    161/udp         # SNMP
snmptrap                162/tcp         # SNMPTRAP
snmptrap                162/udp         # SNMPTRAP


La dernière étape est le démarrage des services SNMP
Démarrage MIB SNMP :
stopsrc -s hostmibd
startsrc -s hostmibd -a "-c public"


Si le snmpd est déjà démarré :
refresh -s snmpd


Sinon :
stopsrc -s snmpd
0513-044 The snmpd Subsystem was requested to stop.
[root@]:/# stopsrc -s snmpd
0513-004 The Subsystem or Group, snmpd, is currently inoperative.
[root@]:/# startsrc -s snmpd
0513-059 The snmpd Subsystem has been started. Subsystem PID is 8004.

No comments:

Post a Comment

HOWTO IMPORT OVA (from VMware) to PROXMOX 5.x

  HOWTO IMPORT OVA (from VMware) to PROXMOX 5.x         Hi All may be someone has faced to import an OVA (created with VMware) to PROX...