How to Use the snmp and windows7snmp commands on Windows 7

Source: Internet
Author: User
Tags snmp

How to Use the snmp and windows7snmp commands on Windows 7
Address: http://wenboxz.com/archives/window7-use-snmp-command.html/
How can I enable the snmp service by using commands when the device has installed snmp?

First, we need to know what device you are talking about?
If you enable the SNMP service for a WINDOWS Device in the service, you can configure it in the function.

For linix unix devices, we need to download the appropriate NET-SNMPD package and configure the relevant information in the SNMPD-CONFIGURE file.

For a hardware device, we need the corresponding MIB for SNMP monitoring.

How to Set snmp in command-based linux

1) install SNMP
For more information, see how to install SNMP in LINUX. Generally, the SNMP service is automatically installed in Linux. Run the following command to check whether the SNMP service is installed and whether the package is installed.
[Root @ idc ~] # Rpm-qa | grep snmp
Net-snmp-libs-5.1.2-11.EL4.7
Net-snmp-5.1.2-11.EL4.7

2) Configure SNMP
Modify the/etc/snmp/snmpd. conf file as follows:
A. Modify the default community string (SNMP read value password in SUM)
Com2sec notConfigUser default public
Modify public to a string that you only know
Change "default" to the machine you want to view your snmp information. For example, if the IP address of SUM is 10.10.10.10, change it to this IP address. If this parameter is left blank, it indicates that all machines are sufficient.
B. Remove the # below
# View mib2 shortded .iso.org. dod. internet. mgmt. mib-2 fc
To enable all functions, you can use the following line (if not, you can add one line ):
View all supported ded. 1 80
C. Run the following statement
Access notConfigGroup "" any noauth exact systemview none
Changed:
Access notConfigGroup "" any noauth exact mib2 none
Or:
Access notConfigGroup "" any noauth exact all none
3) Start and Stop SNMP
Generally, use the service snmpd start | stop | restart command. Or:
#/Etc/rc. d/init. d/snmpd restart
4) Firewall
If the firewall is enabled in Linux, open the UDP port 161. Ensure that the Linux iptables firewall has enabled udp port 161 access to the SUM monitoring server.
Can I use iptables? L? N view the current iptables rule
You can edit the/etc/sysconfig/iptables file to modify the iptables rule.

Related Article

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.