snmp

Strange SNMP shifting operation

泄露秘密 提交于 2019-12-23 21:53:31
问题 The following is from the book C# Network Programmingm by Richard Blum: public byte[] get(string request, string host, string community, string_ mibstring) { byte[] packet = new byte[1024]; byte[] mib = new byte[1024]; int snmplen; int comlen = community.Length; string[] mibvals = mibstring.Split('.'); int miblen = mibvals.Length; int cnt = 0, temp, i; int orgmiblen = miblen; int pos = 0; // Convert the string MIB into a byte array of integer values // Unfortunately, values over 128 require

How to set BITS data type in SNMPSET command?

ぃ、小莉子 提交于 2019-12-23 21:24:28
问题 the MIB OID object have data type 'Bits': object_OID Composed Type: Bits Base Type: BITS Access: read-write Kind: Scalar SMI Type: OBJECT-TYPE Value List: doc (0) emta (1) cpe (2) From MIB description, default is DEFVAL { '00'h }. I want set value 2 (cpe). I tried to set the value with command snmpset -v2c -c public 192.168.100.1 [object_OID] b 2 but got Error in packet. Reason: wrongValue (The set value is illegal or unsupported in some way) tried also snmpset -v2c -c public 192.168.100.1

轻量级java snmp设备网管软件开发技术

谁说我不能喝 提交于 2019-12-23 17:05:08
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Java技术,在网络管理系统中的应用已经比较普遍。网管软件的分类有很多种,有侧重于业务应用的,有侧重于管理设备的,有侧重于网络的,有侧重于桌面管理的,每种网管软件虽然外在的具体表现形式都不同,但其实内部的技术都大同小异。这其中的设备网管软件就是一个最典型的技术代表,一个全面的设备网管软件基本上要包含网络拓扑图、设备配置、故障管理、性能管理、安全管理、业务管理,也就是FCAPS 这几大块功能。 一、 技术架构的变迁 在网管软件最早的年代,基本上都是从电信管理网的那一套发展起来的,按TMN规范定义的模型来处理,像什么Q接口、F接口、X接口、CORBA、NMS/EMS、FCAPS功能划分,都是这种模型的代表。这种模型对于大型的电信网络来说是必须的,可是对于企业级别的设备网管软件来说,就显得过于笨重,花费的成本是无法接受的。 于是对于设备网管软件的架构,逐步向实用化、工程化发展,也就是轻量级技术的发展。轻量级的技术,沿用了FCAPS的功能模型,也是用户关心的问题。而在内部技术上,突破了TMN的种种限制,好的就借用,不好的就抛弃。在这种轻量级技术的影响下,根据用户的需求,灵活选择JAVA技术、数据库技术、SNMP协议,就是这一技术的代表。 二、 轻量级技术架构 选择C/S,还是B/S?这是首选问题。C

SNMP免费网管系统-SugarNMSTool

耗尽温柔 提交于 2019-12-23 16:57:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>   随着计算机技术、网络通讯技术及信息化建设的不断深入发展,企业数据中心机房计算机设备及其配套的环境设备数量与日俱增,机房已经成为众多企业数据运转的重要枢纽。安全、高效、可运营的数据中心,以及其精细化管理成为越来越多企业关注的焦点。引入一套全功能、高智能的运维系统,将机房基础环境、网络环境、服务器设备硬件、系统和应用软件、业务系统、资产、人员等环节集中整合到统一的管理界面中,为遍及全企业的it设备提供随时随地的全面高密度监控、预警管理、自动管控、资产管理、配置管理、事件管理、变更管理等。 免费的网管系统- SugarNMSTool   SugarNMSTool是“北京智和信通技术有限公司”开发的图形化SNMP工具,可以免费使用。工具只有3M大小左右,便于携带, 免安装 , 无数据库 ,可在 Windows、Linux、Unix 系统上快速运行。 工具由大型SugarNMS智和网管平台的精华功能精简而成。SugarNMSTool是网管员、SNMP设备开发调试、SNMP诊断的日常必备工具。产品网站: www.zhtelecom.com SugarNMSTool的功能 1.设备和链路自动发现 可以按IP起始范围、网络段范围、路由跳转搜索、IP漫游发现方式等,通过SNMP和Ping协议发现设备,并识别设备的基本类型。

SNMP基础配置

半城伤御伤魂 提交于 2019-12-23 16:51:51
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> [Huawei]snmp-agent 开启agent服务 [Huawei]display snmp-agent sys-info 查看SNMP信息 [Huawei]snmp-agent sys-info version v3 修改snmp版本为v3 配置snmp管理权限 配置基本acl [Huawei]acl 2000 [Huawei-acl-basic-2000]rule 5 permit source 10.1.1.2 0.0.0.255 [Huawei-acl-basic-2000]rule 10 deny source 10.1.1.1 0.0.0.255 配置用户名为wfc,用户组为root,指定使用acl 2000 [Huawei]snmp-agent usm-user v3 wfc root acl 2000 查看SNMPv3的用户信息 配置向snmp agent 输出trap信息 [Huawei]snmp-agent target-host trap-hostname admin address 10.1.1.2 udp-port 9991 trap-paramsname welcome 开启设备的告警开关 [Huawei]snmp-agent trap enable Info: All

How to add row in a MIB table with snmpset?

时光怂恿深爱的人放手 提交于 2019-12-23 15:27:17
问题 I changed recently my custom MIB file to include tables and not only scalars, it validates, I can create sub-agent etc. but if I try to read it, it says no entries: snmptable -v1 -c public hostname:10161 myMibName::myTable myMibName::myTable: No entries Well, I didn't add any default/sample rows to that table in my agent code. If I try to set some values of the table with snmpset similar to how I did it on scalars, it always fails so table requires its own syntax. How can I add a row to a

Difference between snmpd and net-snmp

▼魔方 西西 提交于 2019-12-23 12:37:22
问题 I am new to SNMP. As far as I know snmpd is a Linux daemon for SNMP which acts as SNMP agent. We can install it from the package snmpd. Now net-snmp also provides a SNMP agent. Does net-snmp provide snmpd daemon as its agent, if so then what is the use in installing net-snmp if one already has installed snmpd (provided one needs the SNMP agent only)? 回答1: The net-snmp suite comes in 3 Linux packages. net-snmp package is the one which has the snmpd component mentioned in question. The 3 Linux

how to decode the result of listenning to port 162 (Snmp Trap)?

帅比萌擦擦* 提交于 2019-12-23 03:24:08
问题 I want to get the snmp trap by using my own traplistener. In fact, I used a code found in internet I added some modifications and now it is working. I can listen through the port 162. #include "stdio.h" #include "winsock2.h" #pragma comment(lib, "ws2_32.lib") #define SNMP_TRAP_PORT 162 #define MAX_MSG 400 static void init(void) { WSADATA wsa; int err = WSAStartup(MAKEWORD(2, 2), &wsa); if(err < 0) { puts("WSAStartup failed !"); exit(EXIT_FAILURE); } } static void end(void) { WSACleanup(); }

Reading SNMP Object index of type IPAddress

故事扮演 提交于 2019-12-22 11:28:12
问题 In a simple SNMP table like mib-2.interfaces.ifTable , ifIndex is the index for the table, so you read ifIndex .1 (i.e. read value from direct child nodes of ifIndex ) to get the index for the first row of the table. Simple enough. But it's not as obvious with something like mib-2.ip.ipRouteTable . In that case ipRouteIfIndex is the index column. It's defined as INTEGER just like ifIndex was. However, you can't read the direct child nodes (i.e. ifIndex .0 is a direct child), but instead need

how to load and walk a custom mib in pysnmp?

依然范特西╮ 提交于 2019-12-21 21:28:59
问题 I'm new to SNMP/pysnmp and I'm trying to implement an agent that uses a custom MIB. I'm looking at the following example on the pysnmp site, but I can't seem to get it to work. Here are the steps I'm taking: convert my MIB file to a pysnmp module using build-pysnmp-mib (this succeeds without errors) set MIB source and load the MIB module using MibBuilder() use the example referenced above to set up the agent (only thing I added is the mibBuilder) use net-snmp's snmpwalk to view the loaded MIB