Editar el archivo
vi /etc/vmware/snmp.xml
<config><snmpSettings><enable>true</enable><communities>public</communities><targets>IP_del_pc_que_recive_traps_SNMP@161 public</targets></snmpSettings></config>
<config><snmpSettings><enable>true</enable><communities>public</communities><targets>IP_del_pc_que_recive_traps_SNMP@161 public</targets></snmpSettings></config>
Reiniciar servicios
/sbin/services.sh restart
/sbin/services.sh restart
Comprobar que funciona desde otro equipo
snmpwalk -v 2c -c public IP_del_servidor_ESXi uptime
3 comentarios:
service snmpd stop
cp /etc/vmware/snmp.xml /etc/vmware/snmp.xml.original
cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.original
nano /etc/vmware/snmp.xml
nano /etc/snmp/snmpd.conf
chkconfig snmpd on
esxcfg-firewall -e snmpd
service snmpd start
## sec.name source community
com2sec local localhost Micomunidad
com2sec mynetwork 0.0.0.0/0 Micomunidad
## group.name sec.model sec.name
group MyRWGroup any local
group MyROGroup any mynetwork
## incl/excl subtree mask
view all included .1 80
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
## context sec.model sec.level prefix read write notif
access MyROGroup "" any noauth 0 all all all
access MyRWGroup "" any noauth 0 all all all
view roview included .1
view rwview included system.sysContact
view rwview included system.sysName
view rwview included system.sysLocation
view rwview included interfaces.ifTable.ifEntry.ifAdminStatus
view rwview included at.atTable.atEntry.atPhysAddress
view rwview included at.atTable.atEntry.atNetAddress
view rwview included ip.ipForwarding
view rwview included ip.ipDefaultTTL
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteDest
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteIfIndex
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric1
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric2
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric3
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric4
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteType
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteAge
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMask
view rwview included ip.ipRouteTable.ipRouteEntry.ipRouteMetric5
view rwview included ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaIfIndex
view rwview included ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress
view rwview included ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaNetAddress
view rwview included ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaType
view rwview included tcp.tcpConnTable.tcpConnEntry.tcpConnState
view rwview included egp.egpNeighTable.egpNeighEntry.egpNeighEventTrigger
view rwview included snmp.snmpEnableAuthenTraps
#access notConfigGroup "" any noauth exact roview rwview none
syslocation Mysite
syscontact contacto@dominio.com
Otra forma es con el CLI de vSphere
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --server esx1.midominio --username root --password ******* -c public
Changing community list to: public...
Complete.
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --server esx1.midominio --username root --password ******* --enable
Enabling agent...
Complete.
Para ESX 5.1
Editar /etc/vmware/snmp.xml
cambiando esto
false
por esto
true
y esto:
por esto otro
NOMBRECOMUNIDADSISEUSA
Publicar un comentario