snmp manager and agent


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers snmp manager and agent
# 1  
Old 04-08-2008
Bug snmp manager and agent

Hi,

I'm reading net-snmp, using Unix (Solaries) and C language ...

- I can manipulate variable (managed object) declared in agent, but the manager can't see that ... it only see the initialization and the value which it ulters using snmpset ...
Ex:
Agent:
static int myWWWNotFoundCount = 0; // myWWWNotFoundCount is an managed object declared in the MIB file ...

void init_myWWWMIB(void)
{
.......
myWWWNotFoundCount = 25;
.......
}
manager:
obelix% snmpget ........ myWWWNotFoundCount.0
obelix% ............... : integer 0 ----> not 25?

Is their any way to the manager to see the altered value by agent?

- When I use scalar configuration ... where there is no variable declared only it provides the oid and handler for the variable, how can I alter the variable value? Can I do it ...

Thank you in advance...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need to transfer all kernel logs (var/log/messages) to the snmp listener as snmp trap

i am working with embedded system -Dell DCS management sub system. my question is as below: currently we are using linux kernel 2.6.30 build and we have a kernel logs stored to the /var/log/messages path. now we have to transfer all this logs to the specified SNMP target as a part of SNMP... (4 Replies)
Discussion started by: vipul_prajapati
4 Replies

2. HP-UX

Hitachi Device Manager Agent for HPUX

Hi there, i am looking to download the Device manager agent for HPUX 11.31. Where we can find it. I've tried on google and Hitachi web sites and spent several hours, i just couldn't find anything at all. Please help. Thank you very much! (8 Replies)
Discussion started by: lamoul
8 Replies

3. IP Networking

SNMP Problem - SNMP not getting to the agent.

I am having a problem with an SNMP event, and I am not sure where I should be looking to solve this problem. Description: There is an SNMP event in our system that for one reason or another is not getting sent out as an email because it is never getting to our SNMP agent. I see where the... (0 Replies)
Discussion started by: broberts
0 Replies

4. Red Hat

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (1 Reply)
Discussion started by: prabakar4all
1 Replies

5. IP Networking

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (0 Replies)
Discussion started by: prabakar4all
0 Replies

6. Infrastructure Monitoring

NCR unix snmp agent

Good Day, I have requirement to monitor a number of NCR unix server for our unix team. As the System Management product that we use in out company does not have an agent for NCR unix I am investigating the SNMP route. I got the unix guys to enable SNMP however, it seems the default MIB that is... (0 Replies)
Discussion started by: priteshj
0 Replies

7. IP Networking

SNMP Agent development

Hi, I am new to Net-snmp and I am trying to build upon the template .c and .h files, generated by the mib2c tool, for the agent development. Can somebody guide me on how to build upon the functions generated by mib2c tool or provide a sample code for an agent. Thanks (0 Replies)
Discussion started by: tisha
0 Replies

8. Solaris

Installing SNMP Agent on Solaris Systems

Hi, I am trying to apply the steps in the below link: http://manageengine.adventnet.com/products/applications_manager/help/appendix/snmp-agent-discovery.html#solaris but I couldn't continue with the step number 2 ... what is the path of C compiler. export PATH=<gcc path>:$PATH ... (3 Replies)
Discussion started by: adel8483
3 Replies

9. Solaris

SNMP subagent deleted from agent table

:confused: :confused: I have a subagent that registers to snmpd on Solaris 8. One of the queries this subagent handles can take an exceptionally long time (it can be on the order of ~30 seconds). When this query is sent to the processor via SNMP, the subagent is being dropped from the... (1 Reply)
Discussion started by: jalburger
1 Replies

10. IP Networking

SNMP agent

Hi, I am really new in linux and SNMP. I have a SNMP agent in Linux (net-snmp). I have my MIB in the /usr/share/mibs directory, and I didn't manage to understand where and how do I put the values of the fields in the MIB? The values are static, so the agent need to return the same value in... (0 Replies)
Discussion started by: linuxbegginer
0 Replies
Login or Register to Ask a Question
net-snmp-config(1)						     Net-SNMP							net-snmp-config(1)

NAME
net-snmp-config - returns information about installed net-snmp libraries and binaries SYNOPSIS
net-snmp-config [OPTIONS] DESCRIPTION
The net-snmp-config shell script is designed to retrieve the configuration information about the libraries and binaries dealing with the Simple Network Management Protocol (SNMP), built from the net-snmp source package. The information is particularily useful for applications that need to link against the SNMP libraries and hence must know about any other libraries that must be linked in as well. OPTIONS
--version displays the net-snmp version number --indent-options displays the indent options from the Coding Style --debug-tokens displays a example command line to search to source code for a list of available debug tokens SNMP Setup commands: --create-snmpv3-user [-ro] [-a authpass] [-x privpass] [-X DES|AES] [-A MD5|SHA] [username] These options produce the various compilation flags needed when building external SNMP applications: --base-cflags lists additional compilation flags needed for external applications (excludes -I. and extra developer warning flags, if any) --cflags lists additional compilation flags needed --libs lists libraries needed for building applications --agent-libs lists libraries needed for building subagents --netsnmp-libs lists netsnmp specific libraries --external-libs lists libraries needed by netsnmp libs --netsnmp-agent-libs lists netsnmp specific agent libraries --external-agent-libs lists libraries needed by netsnmp libs Automated subagent building (produces an OUTPUTNAME binary file): [This feature has not been extensively tested, use at your own risk.] --compile-subagent OUTPUTNAME [--norm] [--cflags flags] [--ldflags flags] mibmodule1.c [...]] --norm leave the generated .c file around to read. --cflags flags extra cflags to use (e.g. -I...). --ldflags flags extra ld flags to use (e.g. -L... -l...). Details on how the net-nsmp package was compiled: --configure-options Display original configure arguments --snmpd-module-list Display the modules compiled into the agent --prefix Display the installation prefix 4.2 Berkeley Distribution 16 Nov 2006 net-snmp-config(1)