![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||
Solution Type Technical Instruction Sure Solution 1519018.1 : How to Install and Configure SNMP Traps and Log the Traps onto a Log File
In this Document
Applies to:Oracle Fabric Interconnect F1-15 - Version All Versions and laterOracle Fabric Interconnect F1-4 - Version All Versions and later Information in this document applies to any platform. Checked for relevance on 06/26/2014 GoalInstall and Configure SNMP Traps and Log the Traps onto a Log File SolutionOn Oracle Fabric Interconnect Chassis: add snmp trap-dest <ip:port> -community=###### -version=SNMPv2 | SNMPv3
EX: add snmp trap-dest 192.168.9.137:162 –community=public –version=SNMPv2 show snmp
Execute the above command to see the trap destinations added.
Note: - Before installing the above packages the server should have m_senors-2.10 <version>.rpm dependent package.
For RedHat or Oracle Linux v6.X, the easiest way to install the NET-SNMP* packages are through yum. # yum search snmp
# yum install net-snmp* The NET-SNMP* packages should be readily available from the public_ol6_latest repository. Once the above is installed, find the snmptrapd.conf file and add this authcommunity log,execute,net public into it or you can use disableAuthorization yes ; either one of them.
###########################################################################
# # snmptrapd.conf # # - created by the snmpconf configuration program # ########################################################################### # SECTION: Logging options # # Logging options # logoption: Set options controlling where to log to # See -L options in the snmptrapd.conf man page # logoption f /var/log/snmp/snmptrad_out.log # outputoption: Toggle options controlling output display # See -O options in the snmptrapd.conf man page #disableAuthorization yes authcommunity log,execute,net public
mkdir /var/log/snmp – Create this directory to dump snmptrad_out.log file.
Copy MIBS to /usr/share/snmp/mibs/ (from the chassis to Server) Chassis MIBS path: - /opt/xsigo/xsigos/<version>/mibs to /usr/share/snmp/mibs/
#vi /etc/sysconfig/snmptrapd.options
# snmptrapd command line options # OPTIONS="-Lsd -p /var/run/snmptrapd.pid" #SNMP_LOGFILE_OPTION="-L f /var/log/messages" SNMP_LOGFILE_OPTION="-L f /var/log/snmp/snmptrad_out.log" – (We are specifying snmp output in log file location /var/log/snmp/snmptrad_out.log) SNMP_FORMAT_OPTION="" OPTIONS="-A -m ALL -p /var/run/snmptrapd.pid $SNMP_LOGFILE_OPTION $SNMP_FORMAT_OPTION" Set the run level on snmptrapd: - This will run snmptrapd in below run levels for linux run level 5 is default. chkconfig --level 3 snmptrapd on chkconfig --level 4 snmptrapd on chkconfig --level 5 snmptrapd on To confirm chkconfig run levels chkconfig --list | grep snmptrapd To Start the snmptrapd # service snmptrapd stop # service snmptrapd start Attachments This solution has no attachment |
||||||||||||||
|