ORACLE LINUX 7X - Configuration
ORACLE LINUX 7X - Configuration
Run rpm commands query option to find out snmp server installed or not:
net-snmp-libs-5.7.2-37.el7.x86_64
net-snmp-agent-libs-5.7.2-37.el7.x86_64
net-snmp-utils-5.7.2-37.el7.x86_64
net-snmp-5.7.2-37.el7.x86_64
If snmp is installed then please refer step # 2; otherwise snmp server and utils were not present and
your need to
(a) Visit rpmfind.net to get snmp server and utilities rpms. If you are fedora user then use yum command
as follows to
install it:
(b) If you are RHEL subscriber then use up2date command as follows to install:
Output:
root 10588 0.0 0.4 389488 34224 pts/1 T 10:06 0:00 /usr/bin/python /bin/yum -y install net-
snmp net-snmp-utils
root 15962 0.0 0.2 227864 15952 ? Ss 14:13 0:03 /usr/sbin/snmpd -LS0-6d -f
root 20982 0.0 0.4 389488 34268 pts/1 T 10:42 0:00 /usr/bin/python /bin/yum localinstall rpm
net-snmp-5.7.2-49.el7_9.2.src.rpm
root 28379 0.0 0.5 473412 39728 pts/1 T 11:08 0:00 /usr/bin/python /bin/yum localinstall net-
snmp-utils-5.7.2-37.el7.x86_64.rpm
root 53172 0.0 0.0 112724 2320 pts/1 S+ 16:17 0:00 grep --color=auto snmp
Alternatively, you can try any of the following two commands as well:
# lsof -i :199
Output:
Output:
Output:
Active: active (running) since Fri 2023-05-26 14:13:18 +07; 2h 8min ago
CGroup: /system.slice/snmpd.service
Make sure snmpd service starts automatically, when linux comes us (add snmpd service):
# chkconfig snmpd on
####
3.1. Khai báo community-string và ánh xạ nó vào một secutiryName nào đó.
3.2. Khai báo version snmp tương ứng với securityName đó, ánh xạ vào một groupName.
3.3. Tạo các view, cho phép bao gồm (include) hoặc không gồm (exclude) một nhánh con nào đó trong
mib.
3.4. Tạo một truy cập bằng cách gán một view cho một groupName.
####
# Third, create a view for us to let the group have rights to:
####
# -----------------------------------------------------------------------------
success
Success
# firewall-cmd --reload
Success