snmp

How to create SNMPv1 community string?

两盒软妹~` 提交于 2019-12-13 09:33:42
问题 I'm currently working on SNMPv1 and I'm wondering how to define a community string generally on my server. Using snmpset and snmpget, I have to specify a community name, but I can only use community names that are registered somewhere, like public or private . How can I add one? Thanks in advance! 回答1: The most detailed guide on how to configure SNMP agents on common UNIX or Linux system is from Essential SNMP book, http://docstore.mik.ua/orelly/networking_2ndEd/snmp/ch07_03.htm Under 7.3.4.

issue with SNMP install on Solaris10x86

有些话、适合烂在心里 提交于 2019-12-13 05:12:52
问题 I did install net-snmp-5.7.3 on solaris11 sparc,11x86 and Solaris10, all test cases and installation was success. But when I am installing net-snmp-5.7.3 on Solaris10x86, i am getitng few test cases failed. I have already disabled running snmp which comes inbuilt. Details: bash-3.2# uname -a SunOS sca00jzu 5.10 Generic_148889-02 i86pc i386 i86pc bash-3.2# gcc --ver Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3

snmp协议学习记录

不打扰是莪最后的温柔 提交于 2019-12-12 12:42:57
snmp简介,报文,mib,oid了解网: https://www.cnblogs.com/chloneda/p/snmp-protocol.html 发送udp请求需要的jar包 snmp4j 官网链接 snmp简单案列: https://blog.csdn.net/FormatWindowsXP/article/details/81703423 (我用的jar包是snmp4j-2.8.0.jar) snmp4j.jar链接: https://pan.baidu.com/s/1EN2Od3qlFEf3y2edorQ8Sw 提取码: x34k 复制这段内容后打开百度网盘手机App,操作更方便哦 1. 监听162端口 import java.util.Vector; import org.snmp4j.CommandResponder; import org.snmp4j.CommandResponderEvent; import org.snmp4j.MessageDispatcherImpl; import org.snmp4j.Snmp; import org.snmp4j.TransportMapping; import org.snmp4j.mp.MPv1; import org.snmp4j.mp.MPv2c; import org.snmp4j.mp.MPv3;

Get OID's type (syntax) from MIB using Net-SNMP API

自作多情 提交于 2019-12-12 09:43:08
问题 How can I get the syntax type and read/write access for an OID using NET-SNMP API? I am writing an SNMP tool that reads and sets values on a remote machine using SNMP protocol. Before setting the value, I need to check its type and access permissions (whether it is allowed to write this value on the server or not) from the MIB file. Unfortunately, I could not find any mention regarding how to do this in the Net-SNMP documentation. 回答1: Roughly speaking: oid name[128]; size_t name_length = OID

Check ports with SNMP (net-snmp)

假如想象 提交于 2019-12-12 08:18:12
问题 Is there a way to monitor server ports using SNMP (I'm using net-snmp-python to check this with python). So far I've checked pretty simple with "nc" command, however I want to see if I can do this with SNMP. Thank you for your answers and patience. 回答1: Well if you want to use SNMP to see exactly what ports are listening, you should be able to use the following OIDS and walk the table "1.3.6.1.2.1.6.13.1.1" tcpConnState "1.3.6.1.2.1.7.5.1.1" udpLocalAddress Walking UDP would give you

Why is my snmp packet not valid

馋奶兔 提交于 2019-12-12 04:04:49
问题 I wrote a similiar question here but did not get an answer which solve my problem, so I write the question again on stackoverflow and hope that somebody can help me. Here is a runnable example about my problem. Packet out_buf_0 represent a valid SNMP packet and can send via UDP. Packet out_buf_1 is the same packet like out_buf_0 with one character more at the end 0x64 . Further, I raised all length + 1 because of the additional character. Why is out_buf_1 not a valid SNMPv1 packet/why can it

SNMP OID to map MAC addresses to ip addresses?

放肆的年华 提交于 2019-12-12 03:52:28
问题 I have written some C# code that I am using to run an file "snmpwalker.exe" that is returning details about so cisco switches when I pass in the correct community string ip address and vlan information with an OID. I have been able to get enough information to be able to map the MAC addresses to the switch's ports but I want to also find out the ip addresses. Does anyone know what the OID for snmp would be to get back a list with mac addresses and ip addresses on a cisco switch? I haven't

How to make custom MIB PYSNMP

别说谁变了你拦得住时间么 提交于 2019-12-12 03:09:27
问题 Im newbie in SNMP, but I'm going to make some simple monitoring apps using SNMP and PYSNMP I want to monitor my agent with my custom MIB (because when i run some MIB, it can not work with PYSNMP), I've read PYSNMP documentation, but it seems can not help me, Can you show me , how to make custom MIB PYSNMP easyly? so i can use it both in manager and agent side :) Thank you thank you for your answer I've already read those tuts, but my mib still can not hit the target, I want read my Total Disk

Indi TIdSNMP : How use SendQuery

爱⌒轻易说出口 提交于 2019-12-12 01:42:24
问题 I made the following routine in c++builder Xe ( listing code 1 ), using the Indi component TIdSNMP to query an agent snmp. The call to SendQuery failed, the connection is ok but the agent always return nothing. I also try to query the agent using the method QuickSend ( listing code 2 ) and in this case this second routine work correclty, so I suppose I made some mistake using the first routine. Can someone tell me where I was wrong in the first routine ? Best Reagrds, Enzo Listing 1 void _