In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of Linux how to open snmp service, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this article on how to open snmp service in Linux. Let's take a look at it.
Experimental environment CentOS 64-bit, kernel (3.10.0-957.el7.x86_64)
CentOS Linux release 7.6.1810 (Core) all of the following steps are performed as root, just for experimental purposes
Step to install related components yum install-y net-snmp* modify configuration $cp / etc/snmp/snmpd.conf / etc/snmp/snmpd.conf.bak $vim / etc/snmp/snmpd.conf # add the following content: rocommunity mycommunity # community value Similar to the password group notConfigGroup v1 notConfigUser group notConfigGroup V2C notConfigUser access notConfigGroup "" any noauth exact all none none view all included. 1 80 syslocation Unknown syscontact Root dontLogTCPWrappersConnects yes 123456789101112 restart service $systemctl restart snmpd # snmp service opens port 161 by default (UDP) You can view the startup without $netstat-tlunp | grep: 161 udp 00 0.0.0.0 86881/snmpd 12345 test $cat / etc/hostname # shows that localhost.localdomain # calls the snmp protocol to view the host name # where '1.3.6.1.2.1.1.5. 0' is OID $snmpget-v 2c-c mycommunity localhost '1.3.6.1.2.1.5.0' # shows: SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain # set hostname $echo my-machine > / etc/hostname $hostname `cat / etc/ hostname` $systemctl restart snmpd # call snmp protocol again to check the host name $snmpget-v 2c-c mycommunity localhost' 1.3.6.1.2. 1.1.5.0' # shows: SNMPv2-MIB::sysName.0 = STRING: my-machine, this is the end of the article on "how to enable snmp Services by Linux" Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to open snmp services in Linux". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.