Hi Amit,
I don't this mib2c can give the range of enums. But snmptranslate does
that. If you try "snmptranslate -Tp", it will give you mib tree with all the
enum range, like
+-- -R-- EnumVal ifType(3)
|Textual Convention: IANAifType
Title: Re: mib2c
Hi amit,
You can get the same from mib2c.
Put the following lines into mib2c.sample-header.conf
#-*-
##
## Do the .h file
##
@open ${
Title: invoking grep from mib2c
Hi
How I can search for a string/pattern from a text file from mib2c.scalar.conf file. I need to search for a string, if the string is present in the file I have to call function1() else function2().
I had tried following ways, but none of th
Title: snmpgetnext with multiple varbindes problem
Hi Sasi,
For getnext response,
netsnmp_variable_list *var = NULL;
var = requests->agent_req_info->asp->pdu->variables;
//To fill the oid into varbind, ( A
Title: snmpget on Tables having MacAddress as index
Hi
I have MIB table defined having MacAddress datatype as index. If i have to get particular column on that table, I have tried,
snmpget -v2c -c motro 10.201.114.135 myColumn.0
snmpget -v2c -c motro 10.201.114.135 myColumn.'192.211
Title: Handling BITS data type in mib2c code.
Hi,
I have to instrumnet MIB OIDs which having data type as BITS.
1. How i can send response to BITS data-type oids, now i am filling set_var_type_value as follows.
snmp_set_var_typed_value (requests, ASN_OCTET_STR, (u_char *) "1",strlen ("
Title: Sending MacAddress type index for getBulk on table request
Hi,
I have to send getbulk response for a table which has index MacAddress type. I am using net-snmp-5.2.1 in linux.
I am putting the column name ( MIB-NAME::myColumn ) appended with index mac address into one st
Hi Robert,
I am using net-snmp-5.2.1 in linux. I had cross compiled net-snmp in Monta
vista linux. the configure statement used is
CC=ppc_405-gcc ./configure --with-mib-modules="myModules" --host=ppc-ibm-linux
--with-endianness=big --prefix=/home/kanda/weLib/ppc
--with-default-snmp-version
Title: ifOperStatus value
Hi
How ifOperStatus value in ifTable get populated for different intefaces?
I have wireless interface configured on the device, When i am sending get on ifOperStatus.3 it is showing up but if i send ifTable get using "snmptable" it is showing down for that
Title: Restricting snmpd.log file size
Hi
I am running SNMP agent on target board, which supports standard mib and property mibs. For every request on property mib prints 5 to 8 lines ( which i can't ignore, i have to print on the log file) .
To print this lines i am using log level a
Title: Sending response to Get Bulk from mib2c code
Hi,
I am using net-snmp-5.2.1, i had genrated mib2c code for myTable. Since the data of the myTable coloumn is not owned by net-snmp agent, If any get/set queries comes for this table i am calling one more server and sending response
Title: Re: timestamp issue
Hi David,
Thank you for quick the response
I had tried the value, what you had send, still i am getting some big number.
I had filled the snmp_set_var_typed_value as
snmp_set_var_typed_value (requests,ASN_OCTET_STR,"0x07C8051a0d1e0e002d0400",strle
Title: sending authPriv type v3 traps and informs in 5.2.1
Hi
I am using net-snmp 5.2.1 with this version I am unable to
sent v3 traps / informs with authPriv privelege. The command I am using is
snmpinform -v 3 -u myuser -a MD5 -A mypassword -l authPriv localhost 42 coldStart.0
The er
Hi
I am cross compiling the net-SNMP 5.2.1 source in Monta Vista Linux.
I had configured the package by
./configure --host=x86 --target=ppc --with-cc=ppc-405-gcc
--with-endianness=big
It configures the package successfully
When I do "make" for this package it is giving the following error.
Hi
I have
to extend the agent of UCD-SNMP 4.6.2 for SNMP v3 . Is MD5 authentication is
supported in UCD-SNMP 4.2.6 version?
What are the issues/bugs UCD-SNMP
4.6.2 have while extending the agent.
By
Sam
Hi
i have to cross compile the Net-SNMP for ppc_405(powerpc_405) target machine. What
parameters i have to use while doing ./configure.
How to do make for that.
i have to use ppc_405-gcc instead of gcc compiler. How to change gcc? i had
used --with-cc= p
Hi
I have to install Net-SNMP 5.2.1 in
MontaVista Linux. Do we have binaries available( rpm files or mvl files ) for
MontaVista linux or have to compile from the source code. If we have to compile
from source code please specify the steps and Makefiles.
With regards
Sam
Hi,
I am using the net snmp apis(5.2.1) in C++ class,
i tried to compile using g++ compiler on red hat linux 9.0
using the options,
g++ -c -g -O2 -Wno-deprecated -Dlinux -I. -I/usr/local/include
snmpProxy.cc -L/usr/local/lib -lnetsnmp -lcrypto -lm
following errors are displayed while compiling,
=
Title: getting v3 user name and community string in mib2c code
Hi
I have to get the V3 username of the manager who is sending get/set request for pariticular OID in mib2c generated code for that OID.
In case of V2 or V1 query i have to get the community string of the manag
Title: getting leaf node string form OID
Hi
I have to get the leaf node string of the OID in mib2c code . for example if the OID is 1.3.6.1.2.1.1.4 , i have to get the leaf node string in the mib definition as "sysContact".
snmptranslate command line utility doing this operation
Title: get IP address of Manager
Hi
In mib2c generated code, i need managers IP address.
Net-SNMP write the ip address into net-snmp-translate.
How i can get the ip address in the mib2c code.
Is there any API or global structure which i can invoke to get the IP address of the manage
Title: Calling SOAP calls while Extending mibs using mib2c code giving "./.libs/libnetsnmpmibs.so: undefined reference ..."
Hi
i have to call SOAP server calls in my mib2c created code to get the values. i had put following lines in my mib2c output code
1) including SOAP header files alo
Hi
I created code for “sampleTable” by using “mib2c -c
mib2c.create-dataset.conf sampleTable”.
As per the instruction specified “no
need to write any code to perform get/set, add/remove row on this table.
The code has following function to write
extra operation other than
Hi
Can we run the snmpusm tool by
logging into a device (having linux OS ) through telnet for changing the
privacy key and auth key?
With regards,
Sam
Hi
Can we use the snmptrap application for sending
traps/inform of the propriety MIB’s?
Do we need to update any Net-SNMP config
files?
With regards
Kandasamy
Hi
I am trying to extend the agent for “sysServices” which is under
system group.
I followed these steps:
1)
Mib2c sysServices
2)
I got 2 files sysServices.h and
sysServices.c
3)
In sysServices.c file I added variable
declaration “static int t=7” and in th
Hi,
Will the mib2c
compiler able to process Row Status, namely tables controlled
by a columnar object
obeying the rowstatus convention, as defined in RFC 2579?
if not, what changes should we
make in the generated
code , and example code would
be helpf
Hi
Can I modify the snmpd code so that, it accepts Linux signals to start and stop
the SNMP agent(demon)? If I can modify please specify the steps.
We need reliable signals, which should not lost and should give response about
start/stop process? How I can make
Hi Deve,
Thank you for all your immediate response. That help
a lot to my development. Here I have one more question on table
implementation.
I have to set a particular value say in 3rd row, 2nd
column in a table. How I can do this in agent and how I can invoke
Hi
In my application my client can
send set request for multiple OID’s ( Table coloumn ) under a table. For
example say Iftable, by calling my API client application can say to add a row
on the table or modify values in a table values by single call.
To set/add this value
Hi
Can particular
manager register to receive particular Notification/trap/alarm in Net-SNMP
agent? If it is possible how I can configure users and list of notifications he
wants? (We should not send other notification to manager which he not registers)
How manager can register form M
Hi Yinyan,
With what OS you are trying ? (Windows / Linux)
If you are using Windows, you can download net-snmp-5.2.1-1.win32.exe and use.
If you want to do some modification or want to configure some thing the
download the source code of net-snmp-5.2.1
Hi
i had install net-snmp 5.2.1 in Fedora Core 2.6.9 (Redhat Linux). I done that. When i try to install perl from /perl directory my "make test" giving followin error. How i can solve this.
[EMAIL PROTECTED] perl]# make test
make[1]: Entering directory `/root/guides/net-snmp-5.2.1/per
Hi
I have to restrict particular
manger can send only V2 queries and others can send only V3 queries. Can I do
this in windows and Linux.
Can I able to receive V2 query from
one manager and V3 query from other manager simultaneously?
With
regards
Sam
Title: Flow of Net-SNMP execution
Hi
I am going to develope one SNMP agent using Net-SNMP that
1) accept get request form manager
2) process the PDU
3) without returning the value to the manager, my agent should pass all the PDU information (OID , Manager address ) to some other module
Title: mib2c not finding perl in Fedora core 2.6.9
Hi
I had taken Net-SNMP5.2.1 source code (net-snmp-5.2.1.tar), and i installed my using ./configure , make and make install commands.
While running the mib2c in Fedora core 2.6.9 (Redhat Linux) i am geeting error saying "SNMP Perl
Hi
I am developing one snmp agent
application.
Is any API
provided by NET-SNMP to get the Ip address of the manager making some request ?
If no API, how I can
know manager’s IP?
By
sam
37 matches
Mail list logo