net-snmp

Does net-snmp support AES-192 and AES-256 encryption?

牧云@^-^@ 提交于 2019-12-04 23:46:53
问题 The network device has been configured with snmpv3 users which uses AES192 as the privacy protocol.But when the following command is executed snmpwalk -v3 -l authPriv -u user -a SHA -A authpass -x AES256 -X privpass device_ip:161 oid It throws the following error Invalid privacy protocol specified after -x flag: AES256 but when i tried using AES128 encryption the snmpwalk worked perfectly fine,which made me think if AES192&256 features are supported if not why was it not included. 回答1: The

Why is CMake apparently referring to host system files while cross-compiling a Net-SNMP agent despite a proper toolchain file is being used?

依然范特西╮ 提交于 2019-12-04 22:23:42
I am developing a Net-SNMP subagent whose final target will be an ARM board, so I'm using CMake to make it easier to manage building the native and cross-compiled versions. I started testing it on my host platform (x86_64) and it builds and works fine with this CMakeLists.txt file: cmake_minimum_required (VERSION 2.6) project (snmp_agent C) set(snmp_agent_VERSION_MAJOR 1) set(snmp_agent_VERSION_MINOR 0) # Defines path to the net-snmp-config script set(NETSNMPCONFIG "${CMAKE_FIND_ROOT_PATH}/usr/bin/net-snmp-config") # Gets compiling flags and libs linked to Net-SNMP execute_process(COMMAND "$

NET-SNMP: Getting more detail into Disman Traps

你。 提交于 2019-12-04 18:45:25
I'm working on traps using NET-SNMP and the DISMAN Event MIB With the following snmpd.conf configuration: createUser disman MD5 sercrt@1 rouser disman auth agentSecName disman #defaultMonitors yes disk / 90% disk /var 85% disk /opt 95% disk /opt/pkgs 90% disk /ufda 90% proc cron proc rtrcopy 1 1 proc socks1081 1 1 # monitor must have ".." in the line monitor -u disman -r 30 -o prNames.1 -o prErrMessage.1 "Cron not running" prErrorFlag.1 != 0 monitor -u disman -r 30 -o prNames.2 -o prErrMessage.2 "rtrcopy running" prErrorFlag.2 != 0 monitor -u disman -r 30 -o prNames.3 -o prErrMessage.3

is it possible to programatically change an executable name (ucmd) of a unix process?

∥☆過路亽.° 提交于 2019-12-04 11:57:53
Is it possible to programatically change an executable name (ucmd) of a unix process as reported by ps? unix/POSIX way would be nice but Linux specific solution would suffice. I want to change what is reported here > ps -o ucmd CMD zsh ps not this, this I know ;) > ps -o command COMMAND zsh ps -o command thanks P.S. Not trying to create a rootkit, its just that net-snmp looks at this name when checking processes and my program has a different name when called from init and directly from /etc/init.d (etc/rcX.d/SNNname instead of just name). You can do this with the PR_SET_NAME function of prctl

Does net-snmp support AES-192 and AES-256 encryption?

放肆的年华 提交于 2019-12-03 16:29:10
The network device has been configured with snmpv3 users which uses AES192 as the privacy protocol.But when the following command is executed snmpwalk -v3 -l authPriv -u user -a SHA -A authpass -x AES256 -X privpass device_ip:161 oid It throws the following error Invalid privacy protocol specified after -x flag: AES256 but when i tried using AES128 encryption the snmpwalk worked perfectly fine,which made me think if AES192&256 features are supported if not why was it not included. The original SNMP RFC documents do not require those. Thus, along with other reasons Net-SNMP never supports them,

snmpget: No such object available on this agent at this OID

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to add my own MIB-Module into a snmp agent, following this tutorial: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module Now, I followed the tutorial step by step and doubled checked everything, searched a really long time but nothing helped me fixing my problem! I am using net-snmp version 5.7.3 I implemented the following code into the net-snmp/agent/mibgroup directory: #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> #include

构建Cacti监测系统

匿名 (未验证) 提交于 2019-12-03 00:39:02
案例1:部署Cacti监控平台 案例2:构建Cacti监测系统 1 案例1:部署Cacti监控平台 1.1 问题 本案例要求部署一台Cacti监控主机,并安装相关监控组件,为进一步执行具体的监控任务做准备: 安装net-snmp、net-snmp-utils 安装LAMP及相关依赖软件包 部署Cacti监控平台 初始化监控页面 1.2 方案 使用1台RHEL7虚拟机,安装部署LAMP环境、Cacti及相关的snmp组件包,配置数据库并对Cacti监控平台进行初始化操作。 1.3 步骤 实现此案例需要按照如下步骤进行。 步骤一:准备基础软件包 1)安装LAMP环境 Cacti监控需要通过Web页面展示出来,并且还需要使用MySQL来存储一些变量数据,因此需要先为Cacti准备基础LAMP环境。因为Cacti监控其他主机数据时使用的是snmp协议,所以还需要安装net-snmp和net-snmp-utils软件包。 [root@svr5 ~]# yum -y install httpd php php-mysql php-ldap >php-xml mysql mysql-server net-snmp net-snmp-utils lm_sensors [root@svr5 ~]# service httpd start;chkconfig httpd on //启动httpd服务

add new mib master agent

巧了我就是萌 提交于 2019-12-01 17:44:35
问题 I was following instructions on the net-snmp website to add my own MIB support to the master agent. Here is what I did: I created my support .c and .h file in net-snmp/agent/mibgroup/ folder. I copied my MIB file to /usr/local/share/snmp/mibs/ folder. I ran "./configure --with-mib-modules="myMib" " I ran "make" and "make install" I started snmpd with "snmpd -f -Le -d -c snmpd.conf &" I can see my MIB structure by running snmpdtranslte command. However, when I try to use snmpget -v2c -c public

snmpget returns “No Such Object available on this agent at this OID”

让人想犯罪 __ 提交于 2019-11-30 04:44:08
问题 I am trying to configure SNMP agent as per the below link. http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mib_module/ I have placed .c and .h file in the agent/mibgroup folder then ./configure --with-mib-modules="nstAgentModuleObject" make make install run snmpd Now i am not able to fetch variable value with the following command snmpget localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 It gives below error for me. root@Naseeb:/home/admin-pc/Naseeb/Projects/EMS/net-snmp-5.4.4#

Linux系统安装snmp服务

霸气de小男生 提交于 2019-11-29 19:02:00
Linux安装snmp详解 Snmp一种网络之间的传输协议,通过snmp可以采集很多指标比如cpu、内存及磁盘的信息,现在越来越多的网络设备基本上都支持snmp,本文介绍了snmp的安装过程。 二、安工具/原料 SecureCrt Xftp 三、安方法/步骤 l 从网上下载snmp的相关tar包,然后上传到服务器中,然后解压安装包,执行如下命令:tar -zxvf net-snmp-5.7.2.1.tar.gz l 修改解压后的文件名称,默认解压后的文件名称为tar包前面的内容。执行命令:mv net-snmp-5.7.2.1 net-snmp l 然后进入net-snmp的目录,执行下面的命令:./configure --prefix=/usr/local/net-snmp --with-default-snmp-version="2" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --with-mib-modules="ucd-snmp/diskio" l 输入该命令后,会有一个交互的过程,所有的交互直接回车即可。configure运行完成后,执行make指令。 l make命令执行完毕后,记得切换到root用户执行命令make install,进行安装