Solve the problem that UbuntuServerSNMP cannot be remotely accessed.

Source: Internet
Author: User
UbuntuServer9.10 after snmpd is installed, you cannot access SNMP information from a remote machine. First look at the port: root @ loulancn :~ # Lsof-I: 161snmpd9641snmp6u3164299400t0 &

After installing snmpd on Ubuntu Server 9.10, you cannot access SNMP information from a remote machine.

First look at the port: root @ loulancn :~ # Lsof-I: 161

Snmpd 9641 snmp 6u IPv4 29940 0t0 localhost: snmp

The port is listening on localhost.

Look at the process again:

Root @ loulancn :~ # Ps ax | grep snmp
/Usr/sbin/snmpd-Lsd-Lf/dev/null-u snmp-I-smux-p/var/run/snmpd. pid 127.0.0.1

Yes, there is an additional 127.0.0.1 later. Originally, the Ubuntu server added the snmp listener to the local loopback interface for security reasons.

The/etc/init. d/snmpd Startup File shows that some parameters are defined in/etc/default/snmpd,

Find

SnmpDOPTS = '-Lsd-Lf/dev/null-u snmp-I-smux-p/var/run/snmpd. pid 127.0.0.1 ′

Modify it:

SnmpDOPTS = '-Lsd-Lf/dev/null-u snmp-I-smux-p/var/run/snmpd. Pi'

It's okay to access the snmp of Ubuntu server from another machine!

(SNMP (Simple Network Management Protocol), formerly known as the Simple gateway monitoring Protocol (SGMP), is used to manage communication lines. Subsequently, SGMP was greatly modified, especially when SMI and MIB compliant with Internet definitions were added: the improved protocol was the famous SNMP. The goal of SNMP is to manage software and hardware platforms produced by many manufacturers on the Internet. Therefore, SNMP is greatly affected by the Internet standard network management framework .)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.