AGENT EXT-SIT ON NAILS

2005-03-28 Thread Parthiban Naliiamudali

 
Dear all net-SNMP user & Developvers


i am n.Parthiban, studying III year M.C.A under Anna university,Chennai,India.

sir, kindly i am in need of your help for my project,which
is a part of my education curriculum.

As i am interested to distinct myself from others project. i choosed
a problem of latest from the IEEE soceity.here let me explain my project and the problem of my study.

i have choosed to work with the upcomming IEEE standard drafts..
IEEE 802.16x series.- Standard for the  Broadband wireless Access(BWA) in the Metropolitan Area Network.

i am trying to work with the IEEE 802.16f- an amendment for BWA,Network management Task group.this IEEE standard gives the wmanIfMib  module for Wireless MAN, that is wireless MAN Interface Management Information Base.

now my project work is to incorporate this wmanIfMib into an agent and 
also write an application for communicatinG that agent with any SNMP manager.

sir, with the available drafts, i have got the Mib file and got 
it compilied using a mib compilier tool too.

now using NET-SNMP, i am trying to extend the functionality of default agent,which is available with the package.

to integrate my wmanIfMib MIB to the agent, i have generated the c template code,using "mib2c tool" with the configuration file "mib2c.mfd.conf"

by running that for one of the mibnode "wmanIfBsControllerStatusTable" table gave the following files.

default-node-wmanIfBsControllerStatusBackupSwVersion.m2d
default-node-wmanIfBsControllerStatusIndex.m2d
default-node-wmanIfBsControllerStatusRunningSwVersion.m2d
default-table-wmanIfBsControllerStatusTable.m2d
wmanIfBsControllerStatusTable.c
wmanIfBsControllerStatusTable_data_access.c
wmanIfBsControllerStatusTable_data_access.h
wmanIfBsControllerStatusTable_data_get.c
wmanIfBsControllerStatusTable_data_get.h
wmanIfBsControllerStatusTable_data_set.c
wmanIfBsControllerStatusTable_data_set.h
wmanIfBsControllerStatusTable_doxygen.conf
wmanIfBsControllerStatusTable_enums.h
wmanIfBsControllerStatusTable.h
wmanIfBsControllerStatusTable_interface.c
wmanIfBsControllerStatusTable_interface.h
wmanIfBsControllerStatusTable_oids.h
wmanIfBsControllerStatusTable-README-FIRST.txt
wmanIfBsControllerStatusTable-README-wmanIfBsControllerStatusTable.txt



with these files, i learned that i have to edit the following files


wmanIfBsControllerStatusTable.c
wmanIfBsControllerStatusTable_data_access.c
wmanIfBsControllerStatusTable_data_get.c
wmanIfBsControllerStatusTable_data_set.c

and i have an idea of providing input data ie data for my wmanIfmib is from a text file at present and no applications are available.

please kindly any of dear ones help me, where i have to write the code for reading the contentsfrom a text file for snmpget and 

write the code for-  writing the contents back into a text file for snmpset

what are the other subsequent changes needed to be made for 
making a snmpget,snmpset and snmpwalk on this mib table contents 
and that should be on which of the files?

and also there is no MAke file generated for this table while running the mib2c tool...
how  am i to test this along with agent running.


if i have to write  a make file to test this agent extensiablity - wmanIfmib, please kindly give guidelines to write the make file.

and also a new file "wmanIfBsControllerStatusTable_doxygen.conf" which is not described in any of the tutorials,and online documentation. 

what is the use of this configuration file..? where am i to copy that file?

IMPORTANT INFORMATIONS:
I AM USING A NON-ROOT USER LOGIN THROUGH TELNET TERMINAL FROM A RED HAT LINUX 9 SERVER MACHINE.
MY NET-SNMP PACKAGE VERSION IS 5.2 .
THE AUTO GENERATED FILES BY THE "mib2c" TOOL IS USING VERSION 1.12 IS FOUND ON THE FILES.

kindly , please any of the the net-snmp team members answer me and help me for my academic project.
sir, as i am new to linux(unix) platform and also a beginner in writing codes, kindly give me a detail description in step wise IF POSSIBLE. 

i am very much thankful & grateful to the net-snmp developers and contributors for providing such a worthy and great snmp package for we students to work and explore with it. it is simply a great.!


with thanks & regards,
n.parthiban. 





AGENT EXT SIT ON NAILS

2005-05-05 Thread Parthiban Naliiamudali

Dear Sir,

sir, Mr.DAVE sir, still not getting,

sir,sorry, i made some noteable words in all caps only for your convience to read i am sorry if it is troubling you.. and also had a numerical count in my subject for you to refer my previous mail easily.. if that too disturbs you.. i will stop doing that.. 

as you said i added the single line of code to the previous 
"snmptrapd.c" file after the lines with "signal"
copy & paste from the "snmptrapd.c" file
===
line number --390

#ifdef SIGHUP
RETSIGTYPE
hup_handler(int sig)
{
    reconfig = 1;
    signal(SIGHUP, hup_handler);
    signal(SIGPIPE, SIG_IGN);
}
#endif

line number --1132

 signal(SIGTERM, term_handler);
 signal(SIGPIPE, SIG_IGN);
#ifdef SIGHUP
 signal(SIGHUP, hup_handler);
 signal(SIGPIPE, SIG_IGN); 
#endif
 signal(SIGINT, term_handler);
 signal(SIGPIPE, SIG_IGN);
==

now there is no error after reception of trap.and also it is not running the "wimaxscript" a shell script program.now the "snmptrapd" is up to receive further commands.

what to do for executing the  "wimaxscript" program on reception of a trap???


SNMP V3 problem

sir, i am getting "Timeout: No Response from 172.29.5.102:1545" when i use my SNMP V 3" but works for snmp v2c.sir, I have done these all:

sir, i have included in the following directives inside the snmp.conf file (ie) /home/parthiban/.snmp/snmp.conf file i have added these
===
# SECTION: Default Authentication Options
defsecurityname  parthi
defsecuritylevel  authPriv
defauthpassphrase  "keytowimax"
defprivpassphrase  "keytowimax"


and in agent part sir, i have included "createUser parthi MD5 keytowimax DES" inside the persistent stored snmpd.conf file (ie)/home/parthiban/perstore/snmpd.conf file

here is the copy & paste of the terminal
=
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 2c -c public 172.29.5.102:15
45 1.3.6.1.2.1.10.184.1.1.5.3.1.2.1
WMAN-IF-MIB::wmanIfBsControllerActionsResetSector.1 = INTEGER: 11
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 172.29.5.102:1545 1.3.6.1.
2.1.10.184.1.1.5.3.1.2.1
Timeout: No Response from 172.29.5.102:1545.
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 -l authPriv -u parthi -A "
keytowimax" -X "keytowimax" 172.29.5.102:1545 1.3.6.1.2.1.10.184.1.1.5.3.1.2.1
Timeout: No Response from 172.29.5.102:1545.
[EMAIL PROTECTED] net-snmp-5.2]$


what else setting i have to make for getting SNMP V3 run???

sir, i consider you as my teacher, mentor for my project.. you can command me to try things to get done with the project.


with sincere thanks & love,
n.parthiban





AGENT EXT SIT ON NAILS

2005-05-06 Thread Parthiban Naliiamudali

Dear sir,

Mr.DAVE sir, still it needs some change..

sir, as you instructed, i deleted the several copies of the "signal(SIGPIPE, SIG_IGN);" and now i retained only one copy...
-
ie in  line number --1132
 
 signal(SIGTERM, term_handler);
 #ifdef SIGHUP
 signal(SIGHUP, hup_handler);
 #endif

 signal(SIGINT, term_handler);
 signal(SIGPIPE, SIG_IGN);


after changing i reconfigured and recompiled the entire setup.

and also checked for script file(wimaxscript) exist and executable,
and changed the permission for that file.

>>What is the result of ls -l /home/parthiban/wimaxscript
---
[EMAIL PROTECTED] net-snmp-5.2]$ ls -l /home/parthiban/wimaxscript
-rw-rw-r--    1 parthiban parthiban      190 May  5 20:10 /home/parthiban/wimaxscript
[EMAIL PROTECTED] net-snmp-5.2]$ cd ..
[EMAIL PROTECTED] parthiban]$ chmod 777 wimaxscript
[EMAIL PROTECTED] parthiban]$ ls -l /home/parthiban/wimaxscript
-rwxrwxrwx    1 parthiban parthiban      190 May  5 20:10 /home/parthiban/wimaxscript
[EMAIL PROTECTED] parthiban]$
---

>>>What is the relevant entry in your 'snmptrapd.conf' file?
this is the entry found inside the file at two locations
/home/parthiban/.snmp  and also in
/usr/local/share/snmp
--
## SECTION: Trap Handlers

traphandle  1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
--

>>>What is the exact command used to send the trap?
-
[EMAIL PROTECTED] net-snmp-5.2]$ snmptrap -v 2c -c necops 172.29.5.102:1
950 '' 1.3.6.1.2.1.10.184.25.35 \1.3.6.1.2.1.10.184.1.1.5.3.1.1 i 
[EMAIL PROTECTED] net-snmp-5.2]$
-

the trap receiver at other window.
-
[EMAIL PROTECTED] apps]$ ./snmptrapd -f -Le 172.29.5.102:1950
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
2005-05-06 15:32:13 NET-SNMP version 5.2 Started.
2005-05-06 15:32:58 172.29.5.102 [UDP: [172.29.5.102]:35187]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (121141969) 14 days, 0:30:19.69    SNMPv2-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti        WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs = INTEGER: 
---

what else has to be changed for running a script on reception of the trap


with sincere thanks & love,
n.parthiban





AGENT EXT SIT ON NAILS

2005-05-06 Thread Parthiban Naliiamudali

Dear sir,

sir, Mr.DAVE sir  yes now i am getting snmp v3 done. from your instruction i checked the access control and it is now working after adding "rwuser parthi" to two snmpd.conf files.
sir, but when the passphrase is wrong it is not giving "authentication failure" on the agent or on output. instead it gives "Timeout: No Response from 172.29.5.102:1225"

what would be wrong here?

copy and paste of terminal
==
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 -l authPriv -u parthi -A "
keytowimax" -X "keytowimax" 172.29.5.102:1225 1.3.6.1.2.1.10.184.1.1.5.3.1.2.1
WMAN-IF-MIB::wmanIfBsControllerActionsResetSector.1 = INTEGER: 11
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 -l authPriv -u parthi -A "
keytowimax" -X "keytowimaddx" 172.29.5.102:1225 1.3.6.1.2.1.10.184.1.1.5.1.1.3.1
Timeout: No Response from 172.29.5.102:1225.
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 -l authPriv -u parthiy -A
"keytowimax" -X "keytowimax" 172.29.5.102:1225 1.3.6.1.2.1.10.184.1.1.5.1.1.3.1
snmpget: Unknown user name
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 -l authPriv -u parthi -A "
keytowimax" -X "keytowimax" 172.29.5.102:1225 1.3.6.1.2.1.10.184.1.1.5.1.1.3.1
WMAN-IF-MIB::wmanIfBsControllerStatusBackupSwVersion.1 = STRING: "1.42c"
[EMAIL PROTECTED] net-snmp-5.2]$
==


trap problem:

And  the execution of shell script on reception of a trap is still not comming up.sir, here are the thing i tried with your instruction.

>>>And what is the OID of "WIMAX-NOTIFICATION-TEST-MIB::wimax-noti" ?
>>>Run snmptranslate -On WIMAX-NOTIFICATION-TEST-MIB::wimax-noti

=
[EMAIL PROTECTED] net-snmp-5.2]$ snmptranslate -On WIMAX-NOTIFICATION-TE
ST-MIB::wimax-noti
.1.3.6.1.2.1.10.184.25.35
[EMAIL PROTECTED] net-snmp-5.2]$
===


>>>Try running the trap handler using  ./snmptrapd -f -Le -Dsnmptrapd 172.29.5.102:1950
>>>and send the trap again.


here is the copy paste of it
===
[EMAIL PROTECTED] apps]$ ./snmptrapd -f -Le -Dsnmptrapd 172.29.5.102:1950
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
2005-05-06 17:50:48 NET-SNMP version 5.2 Started.
snmptrapd: input: a7
snmptrapd: Trap OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti
snmptrapd: print_handler
snmptrapd: v2/3 format
2005-05-06 17:51:08 172.29.5.102 [UDP: [172.29.5.102]:35188]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (121970918) 14 days, 2:48:29.18    SNMPv2-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti        WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs = INTEGER: 3232
snmptrapd: get_traphandler matched (80999a8)
snmptrapd: command_handler
snmptrapd: token = '/home/parthiban/wimaxscript'
snmptrapd: execute format
snmptrapd: command_handler
snmptrapd: token = '/home/parthiban/wimaxscript'
snmptrapd: execute format
snmptrapd: notification_handler
=

and the other try is with the 

>>>running     ./snmptrapd -f -Le -Dread_config 172.29.5.102:1950
(and sending the trap yet again), might help indicate what.

sir, this gives a little bigger output making a copy paste for you to refer.

==
[EMAIL PROTECTED] apps]$ ./snmptrapd -f -Le -Dread_config 172.29.5.102:1950
read_config: reading premib configuration tokens
read_config: config path used:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/loc
al/lib/snmp:/home/parthiban/.snmp:/home/parthiban/perstore
read_config: /usr/local/etc/snmp/snmptrapd.conf: No such file or directory
read_config: /usr/local/etc/snmp/snmptrapd.local.conf: No such file or directory
read_config: Reading configuration /usr/local/share/snmp/snmptrapd.conf
read_config: /usr/local/share/snmp/snmptrapd.conf:27 examining: traphandle  1.3.
6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
read_config: /usr/local/share/snmp/snmptrapd.conf:39 examining: ignoreauthfailur
e  0
read_config: /usr/local/share/snmp/snmptrapd.local.conf: No such file or directo
ry
read_config: /usr/local/lib/snmp/snmptrapd.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmptrapd.local.conf: No such file or directory
read_config: Reading configuration /home/parthiban/.snmp/snmptrapd.conf
read_config: /home/parthiban/.snmp/snmptrapd.conf:26 examining: traphandle  1.3.
6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
read_config: /home/parthiban/.snmp/snmptrapd.conf:39 examining: ignoreauthfailur
e  0
read_config

AGENT EXT SIT ON NAILS

2005-05-06 Thread Parthiban Naliiamudali

Dear sir,

Sir, Mr.DAVE sir it works! it works!! but still more doubts are there for me.

sir, as you have instructed.. i changed the  call 'run_shell_command' at line number 830 in the "snmptrapd_handlers.c" file.

sir, i executed the "snmptrapd" and the "wimaxscript" file with just two echo statement like this

echo "WIMAX NOTIFICATION TESTING"
echo "bY N.PARTHIBAN IN Mr.DAVE SIR GUIDELINES"
-

here i received the output with twice the message, 

copy paste of "snmptrapd" terminal.

[EMAIL PROTECTED] apps]$ ./snmptrapd -f -Le 172.29.5.102:1950
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
2005-05-06 23:26:14 NET-SNMP version 5.2 Started.
2005-05-06 23:31:50 172.29.5.102 [UDP: [172.29.5.102]:35199]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (124014786) 14 days, 8:29:07.86    SNMPv2-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti        WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs = INTEGER: 333
WIMAX NOTIFICATION TESTING
bY N.PARTHIBAN IN Mr.DAVE SIR GUIDELINES
WIMAX NOTIFICATION TESTING
bY N.PARTHIBAN IN Mr.DAVE SIR GUIDELINES




and then i restrated the "snmptrapd"  manager with the "wimaxscript" file having your example program in it.


#!/bin/sh
read host
read ip
vars=

while read oid val
do
if [ "$vars"=""]
then 
vars="$oid=$val"
else
vars="$vars, $oid =$val"
fi
done
echo Trap Reception: $1 $host $vars


by this time the message the "snmptrapd' manager received is 3 (Three) ...

here is the copy paste of terminal

==
[EMAIL PROTECTED] apps]$ ./snmptrapd -f -Le 172.29.5.102:1950
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
2005-05-06 23:50:03 NET-SNMP version 5.2 Started.
2005-05-06 23:50:27 172.29.5.102 [UDP: [172.29.5.102]:35205]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (124126425) 14 days, 8:47:44.25    SNMPv2-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti        WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs = INTEGER: 4221
NE-COPS WIMAX NOTIFICATION TESTING
TrapReception: 172.29.5.102 UDP: [172.29.5.102]:35205 SNMPv2-MIB::sysUpTime.0 =
14:8:47:44.25, SNMPv2-MIB::snmpTrapOID.0 =WIMAX-NOTIFICATION-TEST-MIB::wimax-not
i, WMAN-IF-MIB::wmanIfBsControllerActionsResetBs =4221
NE-COPS WIMAX NOTIFICATION TESTING
TrapReception: 172.29.5.102 UDP: [172.29.5.102]:35205 SNMPv2-MIB::sysUpTime.0 =
14:8:47:44.25, SNMPv2-MIB::snmpTrapOID.0 =WIMAX-NOTIFICATION-TEST-MIB::wimax-not
i, WMAN-IF-MIB::wmanIfBsControllerActionsResetBs =4221

=

sir, why the manager receives mutiple copies? i guess as traphandler is defined at two locations of snmptrapd.conf when it was twice. but no idea when it became Three times.

and now the shell scripts are running...but 

what to do for running a object file created from a c++ program???

sir, is that i have add that "run_exec_command" again with same parameters??


and also SNMP v3 works now ...shows the 'authentication failure message" after recompiling for the trap problem.

sir, but the "authentication failure" is received on the agent terminal.. is that should come in the manager -"snmptrapd" terminal..?

why this goes like this??

copy and paste of terminals
==
[EMAIL PROTECTED] agent]$ ./snmpd -r -f -L 172.29.5.102:1775
inside the init function ..start..
inside the initialize function
inside init ..after adding first data to columns
NET-SNMP version 5.2
Authentication failed for parthi


[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 172.29.5.102:1775 1.3.6.1.
2.1.10.184.1.1.5.1.1.2.1
WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion.1 = STRING: "1.32a"
[EMAIL PROTECTED] net-snmp-5.2]$

[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 -A "keytowimaxx" 172.29.5.
102:1775 1.3.6.1.2.1.10.184.1.1.5.1.1.2.1
snmpget: Authentication failure (incorrect password, community or key)
[EMAIL PROTECTED] net-snmp-5.2]$

==


with sincere thanks & love,
n.parthiban





AGENT EXT SIT ON NAILS

2005-05-28 Thread Parthiban Naliiamudali

 
Dear sir,

My sincere thanks to Mr.Robert sir, Mr.Dave sir and all the NET-SNMP Teamhelping and guiding me in doing my project work.

As i said in my first mail.. i am doing a project for my final semester MCA course regular. 
my project title is "Network Management for Broadband wireless access based on WiMAX and IEEE 802.16f"

sir, i have completed my project and currently preparing my documentation for my project work done... i request both Mr.Robert sir
and Mr.Dave sir.. their consent to add their names to my project
acknowledgement column

and also if you wish .. i will post my project abstract of one page... exactly stating what i have done using net-snmp 

kindly please do reply for this...


with sincere thanks & love,
n.parthiban.





AGENT EXT SIT ON NAILS

2005-06-09 Thread Parthiban Naliiamudali

Dear sir,

I sincerly Thank Mr.Robert sir and Mr.Dave sir for giving consent to add your name to my project acknowledgement page. sir.. here i have given my project -"Network Management for Broadband Wireless Access based on WiMAX and IEEE 802.16f " its abstract. it is very brief. Please kindly have look at it. and do give comments on it..

sir, after my university project exam is over by this month end.. i am interested in working further in the same project...

sir, i am in need of your guidelines and instructions further to work on this same project.
what additional things can i add to this project to enhance further?? 

i am very much interested to make it a good paper to present it in any technical forum with all your guidelines and advice..

so please do give me ideas to proceed further..


PROJECT ABSTRACT


     To keep phase with the fast growing WiMAX technology, a forward step is taken to place a footprint in to it. A detailed study is made on the IEEE & WiMAX specification for the upcoming standard - IEEE 802.16f that defines wmanIfMib - wireless MAN Interface MIB in response to the Network Management Task Group with the available drafts of IEEE 802.16f. A SNMP agent is build, which support this WiMAX MIB.

      To facilitate the task in the development SNMP tools, SNMP APIs & SNMP library of NET-SNMP package are in usage, which is available with Linux kernels. The package is completely written in C language. In the development process first of all a valid MIB file is generated from the available IEEE drafts. The MIB files are checked for validity and MIB parsing is done using the tools “SNMPTRANSLATE” and “MIB2C - is one to turn a MIB specification into C code” if so required.
The compiled & valid WMAN-IF-MIB MIB is added to the NET-SNMP tools to proceed on. The standard SNMP agent available with the package functionality is extended to support the new WMAN-IF-MIB MIB by writing the necessary C coding.The NET-SNMP package is featured with three methods for integrating external C code within the agent. The code can be included within the agent itself,statically configured and linked in when the agent is complied. Alternatively its possible to 
dynamically load MIB modules once the agent is running. Finally the agent can be configured to pass certain portions of the MIB tree off to one or more subagents.

       In the process of developing a completely WiMAX supported SNMP agent, the static method is preferred as a better choice. The required portion or a module from WMAN-IF-MIB is converted in the appropriate C codes by writing a C file and header (.h) file. The information needed to answer particular queries will be available from another running process or using variety of other sources in the real time scenario. In the implementation trails values are read from a static text file in a location with the appropriate initialization routine and handler routines written in the C file for WMAN-IF-MIB. The master agent is re-configured and recompiled to include the new module in to it.

     The tools such as SNMPGET, SNMPGETNEXT, SNMPSET, and SNMPWALK are used in testing the newly integrated WMAN-IF-MIB within the SNMP agent. The NET-SNMP package is featured with traps and  notification generation. The corresponding commands/tools are configured to use within. The package also has the support of SNMP version 3 protocols, which the WiMAX is intending to support. 

with sincere thanks and love,
n.parthiban.





Agent Ext Sit on Nails

2006-03-28 Thread Parthiban Naliiamudali

  
Dear Robert,David

I am using NET-SNMP on linux platform... and trying to implement a WMANIF-MIB (IEEE 802.16f) and in this trying to integrate this agent with an application for the mib values... for the same each time when I write a piece of code.. I need to do follow configure, compile and install .. Instead I am trying to write a makefile.. which will hold the object files seperately and will compile directly...
What are should be there in the makefile body???

Then I am also trying to send notifications through this agent.. 
What is the default MIB implemented with net-snmp agent having notification object ???

and also I am interested to know how many traps/notifications will our net-snmp process per sec.???

kindly help me sir

with Regards,
n.parthiban.





Re: AGENT EXT-SIT ON NAILS

2005-04-02 Thread Robert Story
On 28 Mar 2005 15:36:49 - Parthiban wrote:
PN> to integrate my wmanIfMib MIB to the agent, i have generated the c template
PN> code,using "mib2c tool" with the configuration file "mib2c.mfd.conf"

If you are using the MFD conf file, I suggest you use the latest CVS, as I'm
regularly making improvements.

PN> please kindly any of dear ones help me, where i have to write the code for
PN> reading the contentsfrom a text file for snmpget and 
PN> write the code for-  writing the contents back into a text file for snmpset

The XX_cache_load routine would be responsible for reading the file and
creating rows. Saving the file is a bit trickier, since you have to make sure
that the request was successful. This is handled automatically in the CVS
version, and the post_request routine now passes a result code so you can know
if it is ok to save the file.

PN> what are the other subsequent changes needed to be made for 
PN> making a snmpget,snmpset and snmpwalk on this mib table contents 
PN> and that should be on which of the files?
PN> 
PN> and also there is no MAke file generated for this table while running the
PN> mib2c tool... how  am i to test this along with agent running.

Run mib2c again, once with '-c mfd-makefile.m2c' and once with '-c
subagent.m2c'. This will let you make an AgentX sub-agent which you can run
with the snmpd master agent.

PN> and also a new file "wmanIfBsControllerStatusTable_doxygen.conf" which is
PN> not described in any of the tutorials,and online documentation. 
PN> 
PN> what is the use of this configuration file..? where am i to copy that
PN> file?

It is a configuration file for doxygen, which generates documentation from
source files. You can safely ignore this file, as I haven't focused a lot of
effort on keeping it up to date and testing.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
  unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


AGENT EXT-SIT ON NAILS -2

2005-04-11 Thread Parthiban Naliiamudali

Dear sir,

Myself Parthiban.N., student of III year M.C.A from india.
i have stated in detail in the previous mail.
[ AGENT EXT-SIT ON NAILS ]  

sir, i am thankful to Mr.Robert Story sir, who have guided me for my previous problems.thanks a lot sir. sir, as you have adviced i am working for mfd.conf from the CVS repository.i will let you know the
result soon.

Meanwhile  i have tried using the "mib2c -c mib2c.create-dataset.conf" method for extending the agent functionality.here the problem is too typical. i have added my codes for my MIB in to the c template file generated.by using (" mib2c -c mib2c.create-dataset.conf wmanIfBsControllerStatusTable ")
and even i got it compiled, there is no syntax error or linker errors during the make & make install.

But when i make a query through "snmpget" it gives 
                           
          "No Such Object available on this agent at this OID". 

sir, i have tried by giving some "fprintf(stderr," started")"   like this inside the c file .it prints those and even the debug message when debug token is given
please do kindly say me where would be a mistake?

sir, for your convenince i have given all the pages run on the terminal. i have given the terminal pages which is showing the error on giving "snmpget" with agent running on the other terminal with -f option.sir, i tried the same with a normal user and as well with the root user.while using as normal user it says it cannot read the config file from /var/ucd-snmp/snmpd.conf this because only my user
login doesnot have sufficient rights to those directories i suppose.

but my problem is even when the agent is run from a root user, the agent is not giving the value for the quried OID.

sir, i have attached below the wmanIfBSControllerStatusTable.c file along with the added code of mine for the data to my MIB (WMAN-IF-MIB - wmanIfBsControllerStatusTable).

sir, as you have given in the faq.. as a checklist. i tried those.

1) is the new module being compiled? 

yes, i have deleted the " .o " files and re-run the make . it is re creating the required file ".o" (wmanIfBsControllerStatusTable.o)

2)is it being included in the agent library?-(Run "nm" on the library and look for the names of the initialisation rountine and variable handlers)

yes , i have run the "nm wmanIfBsControllerStatusTable.o"  and it shows the initialise routines and the variable handlers

here i have pasted the output from the terminal.
[EMAIL PROTECTED] mibgroup]$ nm wmanIfBsControllerStatusTable.o
         U debugmsg
         U debugmsgtoken
         U fwrite
 T initialize_table_wmanIfBsControllerStatusTable
0188 T init_wmanIfBsControllerStatusTable
         U netsnmp_create_handler_registration
         U netsnmp_create_table_data_row
         U netsnmp_create_table_data_set
         U netsnmp_mark_row_column_writable
         U netsnmp_register_auto_data_table
         U netsnmp_register_table_data_set
         U netsnmp_set_row_column
         U netsnmp_table_dataset_add_row
         U netsnmp_table_set_add_indexes
         U netsnmp_table_set_multi_add_default_row
         U snmp_get_do_debugging
         U snmp_varlist_add_variable
         U stderr
0004 C table_set
02bc T wmanIfBsControllerStatusTable_handler
 d wmanIfBsControllerStatusTable_oid.0
[EMAIL PROTECTED] mibgroup]$
===
as per the manual page, all the "U" symbol represents undefined, i suppose. if so then where i am suppose to define these routines and how???

3) is the initialisation routine being run?

sir, i think the routine is getting start as the debug message at the program wmanIfBsControllerStatusTable.c is getting printed.

4) has the module being registered with the agent? 

yes, the registeration of the module is done in the file(program -wmanIfBsControllerStatusTable.c)


5) is the module handler actually being called at all?

sir, i am not sure of this question.

sir, you have mentioned to add a debugging code.. as a matter of course.. apart from the default debugmessage printing , i have added the "fprintf" to see that the routine is getting called or not. 

if any other debugging code has to be added, kindly do please mention that for me.

sir, kindly have a view of the  C file below sent for your review.
sir, i am using a Pentium - III PC with 128MB RAMand accessing RED HAT Linux server 9 using a telnet program as a normal user. i have used root user login for testing now and then. i am using NET-SNMP VERSION 5.2.

sir, in the C file below, lines started with ### are written for your understanding and the remaining are C codes.
###/*
 *wmanIfBsControllerStatusTable.c
 *--- 
 * 
 * Note: this file originally auto-gen

AGENT EXT SIT ON NAILS -3

2005-04-13 Thread Parthiban Naliiamudali

Dear sir,

As Mr.Dave Shield sir instructed, i tried out the "snmpgetnext" instead of the "snmpget" but i didnot get any thing useful. i have copy pasted the terminal output here below for your reference.kindly review the ouputs.

###=
[EMAIL PROTECTED] mibgroup]$ snmpget -c public -v 2c 172.29.5.102:1850 .
iso.org.dod.internet.mgmt.mib-2.transmission.wmanIfMib.wmanIfMibObjects.wmanIfBs
Objects.wmanIfBsController.wmanIfBsControllerStatusTable.wmanIfBsControllerStatu
sEntry.wmanIfBsControllerStatusRunningSwVersion

WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion = No Such Object available
 on this agent at this OID

[EMAIL PROTECTED] mibgroup]$ snmpgetnext -c public -v 2c 172.29.5.102:18
50 .iso.org.dod.internet.mgmt.mib-2.transmission.wmanIfMib.wmanIfMibObjects.wman
IfBsObjects.wmanIfBsController.wmanIfBsControllerStatusTable.wmanIfBsControllerS
tatusEntry.wmanIfBsControllerStatusRunningSwVersion

WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion = No more variables left i
n this MIB View (It is past the end of the MIB tree)

[EMAIL PROTECTED] mibgroup]$


###===

sir, kindly please any one you help me... where it goes wrong. sir if needed i can send the 
C file - ie the code added with the generated C template for mib2c -c mib2c.create-dataset.conf
wmanIfBsControllerStatusTable

sir, i have given the copy paste of terminal when " nm wmanIfBsContollerStatusTable.o " is run.

###

[EMAIL PROTECTED] mibgroup]$ nm wmanIfBsControllerStatusTable.o
         U debugmsg
         U debugmsgtoken
         U fwrite
 T initialize_table_wmanIfBsControllerStatusTable
0188 T init_wmanIfBsControllerStatusTable
         U netsnmp_create_handler_registration
         U netsnmp_create_table_data_row
         U netsnmp_create_table_data_set
         U netsnmp_mark_row_column_writable
         U netsnmp_register_auto_data_table
         U netsnmp_register_table_data_set
         U netsnmp_set_row_column
         U netsnmp_table_dataset_add_row
         U netsnmp_table_set_add_indexes
         U netsnmp_table_set_multi_add_default_row
         U snmp_get_do_debugging
         U snmp_varlist_add_variable
         U stderr
0004 C table_set
02bc T wmanIfBsControllerStatusTable_handler
 d wmanIfBsControllerStatusTable_oid.0
[EMAIL PROTECTED] mibgroup]$
###

sir, any thing wrong here..if so kindly cite me what is wrong and where  I have to correct it??


is this "U" refers to undefined? then where i should define? and how


Expecting your reply


with sincere thanks and love,
n.parthiban.







AGENT EXT SIT ON NAILS -4

2005-04-14 Thread Parthiban Naliiamudali

Dear sir,

I am very much thankful to Mr.Dave Shield sir for his guidelines and instruction. 

sir, but still my problem is NOT SOLVED completly.. 

i tried out the "snmpget" & "snmpgetnext" after setting the access control as you have instructed me in the previous mail[AGENT EXT SIT ON NAILS -3]

sir, i have included the following lines (directives) in the snmpd.conf file to set the access control at two locations,say

/usr/local/share/snmp/snmpd.conf  and then 

/home/parthiban/.snmp/snmpd.conf

#==

com2sec local localhost necops
com2sec mynet default necops

group myrwgroup v1 local
group myrwgroup v2c local

group myrogroup v1 mynet
group myrogroup v2c mynet


view all included .1.3.6.1.2.1.10.184.1 80


access myrogroup "" v1 noauth exact all none none
access myrogroup "" v2c noauth exact all none none

access myrwgroup "" v1 noauth exact all all none
access myrwgroup "" v2c noauth exact all all none

===

but i didnot get the values when i query using "snmpget" or "snmpwalk".instead now the error it show is 

"No Such Instance currently exists at this OID"

but it work for the "snmpnext"

i have copy pasted the terminal output here below for 
your reference.kindly review the ouputs.

#==
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 127.0.0.1:1250 1.3.6.1.2.1.10.184.1.1.5.1.1.2
WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion = No Such Instance currently exists at this OID

[EMAIL PROTECTED] net-snmp-5.2]$ snmpgetnext -c necops -v 2c 127.0.0.1:1250 1.3.6.1.2.1.10.184.1.1.5.1.1.2
WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion.1 = STRING: "1.32a"

[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 127.0.0.1:1250 1.3.6.1.2.1.10.184.1.1.5.1.1.3
WMAN-IF-MIB::wmanIfBsControllerStatusBackupSwVersion = No Such Instance currently exists at this OID

[EMAIL PROTECTED] net-snmp-5.2]$ snmpgetnext -c necops -v 2c 127.0.0.1:1250 1.3.6.1.2.1.10.184.1.1.5.1.1.3
WMAN-IF-MIB::wmanIfBsControllerStatusBackupSwVersion.1 = STRING: "1.42c"

[EMAIL PROTECTED] net-snmp-5.2]$ snmpwalk -c necops -v 2c 127.0.0.1:1250 1.3.6.1.2.1.10.184.1.1.5.1.1.1
WMAN-IF-MIB::wmanIfBsControllerStatusIndex = No Such Instance currently exists at this OID

#==sir, any thing wrong here..if so kindly cite me what is wrong and where  I have to correct it??


is this "directives" included are correct. now what should i do???  

sir, kindly give me the guidelines.

Expecting your reply


with sincere thanks and love,
n.parthiban.







AGENT EXT SIT ON NAILS -5

2005-04-14 Thread Parthiban Naliiamudali

Dear Sir,

IT WORKS !! IT WORKS...THANKS A LOT SIR ..Mr.DAVE.

sir, kindly but for the "snmpwalk" it gives ...again the same..
i have implemented using the mib2c tool with the below conf

"mib2c -c mib2c.create-dataset.conf wmanIfBsControllerStatusTable"

what am i do next? how can i get it for "snmpwalk"???

sir, please kindly give some alternative..
sir, here is the copy and paste of the terminal output
===
[EMAIL PROTECTED] net-snmp-5.2]$ snmpwalk -c necops -v 2c 172.29.5.102:1830 1.3.6.1.2.1.10.184.1.1.5.1.1.1
WMAN-IF-MIB::wmanIfBsControllerStatusIndex = No Such Instance currently exists at this OID

===OLD
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 172.29.5.102:1830 1.3.6.1.2.1.10.184.1.1.5.1.1.2
WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion = No Such Instance currently exists at this OID


==IT WORKS===
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 172.29.5.102:1830 1.3.6.1.2.1.10.184.1.1.5.1.1.2.1
WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion.1 = STRING: "1.32a"
===IT WORKS=


sir, then another doubt.. only in the scalar type leaf nodes, it is neccessary for us to specify a subidentifier like ".0" at the end..
is that for the table leaf node also we have to give the subidentifier
as ".1" at the end.. 
sir, please say  what is the concept behind this subidentifer...
where i can get to know this reason.???


sir, i have to keep on thanking you and the NET-SNMP TEAM as a whole ,
for me like students to study and explore ... you are helping a lot..
sir, i am grateful to you for making my academic project to keep moving by your guidelines


with sincere thanks & love,
n.parthiban





AGENT EXT SIT ON NAILS -6

2005-04-15 Thread Parthiban Naliiamudali

Dear sir,

sir,Mr.DAVE it works for "SNMPWALK"  also, i just recompiled once again then i found it working.. i didnot know what was the problem in the previous state? anyway now it works.sir, the new PROBLEM is i couldnot make a SNMPSET as the mib variables in the table has 
max-access as READ-ONLY.so, i added the other subsequent table 
wmanIfBsControllerActionsTable which is in the same object identifier.

sir, i used 
     "mib2c -c mib2c-create-dataset.conf wmanIfBsControllerActionsTable" to create a C template
and added my code for adding data to the variables.

here the PROBLEM is there is NO INDEX in the table and that, i added the value for the other variables as such and added the row to the table. now when i start the agent i get an expection thrown 
as "illegal data attempted to be added to table wmanIfBsControllerActionsTable"

sir, here is the copy and paste of the terminal output...
===
[EMAIL PROTECTED] agent]$ ./snmpd -r -L -f 172.29.5.102:1275

illegal data attempted to be added to table wmanIfBsControllerActionsTable
NET-SNMP version 5.2


===

here there is NO warnings or errors during make & make install.when i query the agent using 
SNMPGET..  "No Such Instance currently exists at this OID" and as Mr.DAvE sir instructed, i tried using the index or subidentifier ".1" again it gives the same.

and when SNMPGETNEXT is made, it shows some "UCD-SNMP-MIB" values.sir, what is wrong?

what to be done when there is no index in the table?how to implement it?

kindly give the instructions and guidelines.

with sincere thanks & love,
n.parthiban

here, the copy and paste of the terminal output.
===

==HERE WORKS FOR wmanIfBsControllerStatusTable=

[EMAIL PROTECTED] net-snmp-5.2]$ snmpgetnext -c necops -v 2c 172.29.5.102:1275 1.3.6.1.2.1.10.184.1.1.5.1.1.2

WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion.1 = STRING: "1.32a"

[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 172.29.5.102:1275 1.3.6.1.2.1.10.184.1.1.5.1.1.2.1

WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion.1 = STRING: "1.32a"

[EMAIL PROTECTED] net-snmp-5.2]$
===


HERE THE PROBLEM wmanIfBsControllerActionsTable=

[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 172.29.5.102:1275 1.3.6.1.2.1.10.184.1.1.5.3.1.1

WMAN-IF-MIB::wmanIfBsControllerActionsResetBs = No Such Instance currently exists at this OID

[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 172.29.5.102:1275 1.3.6.1.2.1.10.184.1.1.5.3.1.1.1

WMAN-IF-MIB::wmanIfBsControllerActionsResetBs.1 = No Such Instance currently exists at this OID

[EMAIL PROTECTED] net-snmp-5.2]$ snmpgetnext -c necops -v 2c 172.29.5.102:1275 1.3.6.1.2.1.10.184.1.1.5.3.1.1

UCD-SNMP-MIB::memIndex.0 = INTEGER: 0

[EMAIL PROTECTED] net-snmp-5.2]$
===

sir, for your convience, i have given the portion of the wmanIfMib -MIB file and also the description
of wmanIfBsControllerActionsEntry.
here, instead of index, "augments" is given.
===
A PORTION OF (wmanIfMib)MIB FILE IN THE TREE VIEW
===
  | 
  | 
  |-wmanIfBsController
     |-wmanIfBsControllerStatusTable
     |     |-wmanIfBsControllerStatusEntry
        |         |
     |       |-wmanIfBsControllerStatusIndex - INTEGER(2 - int, int32)Max access:     not-accessible
     |        |-wmanIfBsControllerStatusRunningSwVersion - OCTET STRING(4 - octets)Max access:read-only
     |          |-wmanIfBsControllerStatusBackupSwVersion - OCTET STRING(4 - octets)Max access:read-only
        |     
        |   
        +-wmanIfBsControllerConfigTable
        | 
     |-wmanIfBsControllerActionsTable
             |-wmanIfBsControllerActionsEntry
                  |
                  |-wmanIfBsControllerActionsResetBs - INTEGER(2 - int, int32)Max access:read-write
               |-wmanIfBsControllerActionsResetSector - INTEGER(2 - int, int32)Max access:read-write
                |-wmanIfBsControllerActionsSectorIfToReset - InterfaceIndex(2 - int, int32)Max access:read-write
             |-wmanIfBsControllerActionsRowStatus - RowStatus(2 - int, int32)Max acces

AGENT EXT SIT ON NAILS -7

2005-04-19 Thread Parthiban Naliiamudali

 
Dear sir,

Thansk to Mr.Robert Story sir for providing information about augumenting in the table index.

sir, now the PROBLEMS are... 

1)HOW TO CONFIGURE SNMPTRAPD.CONF ACCESS CONTROL? AND IS IT COMPULSORY TO RUN "SNMPTRAPD" AS ROOT?

PLEASE KINDLY SEE BELOW I TRIED ALL THESE...

sir, i tried to configure using the "snmpconf -g basic_setup" but it didnot get through...
it is not showing the option of which file to configure.and tried to search for the file and i am not able to locate the file.
here is the copy paste of the terminal

[EMAIL PROTECTED] apps]# ./snmptrapd -f -Le 172.29.5.102:1900
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
2005-04-20 10:08:59 NET-SNMP version 5.2 Started.
>
[3]+  Stopped                 ./snmptrapd -f -Le 172.29.5.102:1900

[EMAIL PROTECTED] apps]# 

[EMAIL PROTECTED] apps]# snmpconf -g basic_setup

The following installed configuration files were found:

   1:  ./snmpd.conf
   2:  /root/.snmp/snmpd.conf
   3:  /usr/local/share/snmp/snmpd.conf

Would you like me to read them in?  Their content will be merged with the
output files created by this session.

Valid answer examples: "all", "none","3","1,2,5"

Read in which (default = all): ò[3]   Killed                  ./snmptrapd -f -Le
 172.29.5.102:1900
[4]+  Stopped                 snmpconf -g basic_setup
[EMAIL PROTECTED] apps]#
=

because of this condition.. i am getting "send-trap:Timeout" 

here is that copy paste of the terminal

[EMAIL PROTECTED] agent]$ ./snmpd -r -L -f 172.29.5.102:1450
inside the init function ..start..
inside the initialize function
inside init ..after adding first data to columns
snmpd: send_trap: Timeout
snmpd: send_trap: Timeout
snmpd: send_trap: Timeout
snmpd: send_trap: Timeout
snmpd: send_trap: Timeout
snmpd: send_trap: Timeout
NET-SNMP version 5.2




2)SNMPSET IS NOT WORKING FOR A READ-WRITE OID.WHAT TO DO?


 sir, i have included the wmanIfMib in to the standard agent using

  "mib2c -c mib2c.create-dataset.conf wmanIfBsControllerActionsTable" implementation.and added my code for its variable values.

for the same table i am able to get the SNMPGET,SNMPGETNEXT and SNMPWALK.but the SNMPSET IS NOT WORKING.WHY?IT GIVES LIKE THIS- COPY PASTE OF TERMINAL
===

[EMAIL PROTECTED] net-snmp-5.2]$ snmpset -c necops -v 2c 172.29.5.102:14
50 1.3.6.1.2.1.10.184.1.1.5.3.1.1 i 333
Error in packet.
Reason: notWritable (That object does not support modification)

[EMAIL PROTECTED] net-snmp-5.2]$ snmpset -c necops -v 2c 172.29.5.102:14
50 1.3.6.1.2.1.10.184.1.1.5.3.1.1.1 i 333
Error in packet.
Reason: notWritable (That object does not support modification)

===

sir, for your reference here is the portion of my MIB file..showing the 

"table-WMANIFBSCONTROLLERACTIONSTABLE" with description

===
A PORTION OF (wmanIfMib)MIB FILE IN THE TREE VIEW
===
  | 
  | 
  |-wmanIfBsController
     |-wmanIfBsControllerStatusTable
     |     |-wmanIfBsControllerStatusEntry
        |         |
     |       |-wmanIfBsControllerStatusIndex - INTEGER(2 - int, int32)Max access:     not-accessible
     |        |-wmanIfBsControllerStatusRunningSwVersion - OCTET STRING(4 - octets)Max access:read-only
     |          |-wmanIfBsControllerStatusBackupSwVersion - OCTET STRING(4 - octets)Max access:read-only
        |     
        |   
        +-wmanIfBsControllerConfigTable
        | 
     |-wmanIfBsControllerActionsTable
             |-wmanIfBsControllerActionsEntry
                  |
                  |-wmanIfBsControllerActionsResetBs - INTEGER(2 - int, int32)Max access:read-write
               |-wmanIfBsControllerActionsResetSector - INTEGER(2 - int, int32)Max access:read-write
                |-wmanIfBsControllerActionsSectorIfToReset - InterfaceIndex(2 - int, int32)Max access:read-write
             |-wmanIfBsControllerActionsRowStatus - RowStatus(2 - int, int32)Max access:read-write

===
here is the copy paste

AGENT EXT SIT ON NAILS - 8

2005-04-20 Thread Parthiban Naliiamudali

Dear sir,

Thanks to Mr.DAVE sir for his concern to help me.. sir, here my TWO(2) PROBLEMS goes like this.kindly have a look at the below settings in my files and guide me please.

PLEASE DO SEE "AGENT EXT SIT ON NAILS-7" and your REPLIES.

1)FIRST PROBLEM:

>>DAVE sir:>>> WHAT TRAP-RELATED SETTING DO YOU HAVE IN YOUR SNMPD.CONF FILE?                (TRAPSINK/TRAP2SINK/INFORMSINK/TRAPSESS)

my settings:> In the /usr/local/share/snmp/snmpd.conf file

# SECTION: Trap Destinations

     trapsink  localhost necops 1950
     trapsink  localhost necops 1900

     trap2sink  localhost necops 1950
     trap2sink  localhost necops 1900

     informsink  localhost necops 1950
     informsink  localhost necops 1900

     trapcommunity  necops
     trapcommunity  necops

     authtrapenable  1
     authtrapenable  1


2)PROBLEM TWO:

 i have included the wmanIfMib in to the standard agent using
   "mib2c -c mib2c.create-dataset.conf
 and added my code for its variable values.
 
 for the same table i am able to get the SNMPGET,SNMPGETNEXT and
 SNMPWALK.but the SNMPSET IS NOT WORKING.WHY?

>>HOW DID YOU DECLARE THE RELEVANT OBJECTS?
>>WHAT DOES YOUR netsnmp_table_set_multi_add_default_row() CALL LOOK LIKE? 

Sir,my code looks  like this:

     netsnmp_table_set_multi_add_default_row(table_set,
           COLUMN_WMANIFBSCONTROLLERACTIONSRESETBS,
           ASN_INTEGER, 1, NULL, 0,
           COLUMN_WMANIFBSCONTROLLERACTIONSRESETSECTOR,
           ASN_INTEGER, 1, NULL, 0,
           COLUMN_WMANIFBSCONTROLLERACTIONSSECTORIFTORESET,
           ASN_INTEGER, 1, NULL, 0,
           COLUMN_WMANIFBSCONTROLLERACTIONSROWSTATUS,
           ASN_INTEGER, 1, NULL, 0, 0);

>>CAN YOU SUCCESSFULLY SET OTHER OBJECTS(say "sysLocation.0")

NO SIR, i am not able to set for the ("sysLocation.0") also. sir i have CHAGED THE ACCESS CONTROL TO WRITE FOR "PUBLIC" COMMUNITY.please do look at the ACCESS CONTROL in my file. is that correct.?

copy paste of the terminal with -d option.

[EMAIL PROTECTED] net-snmp-5.2]$ snmpset -c public -v 2c -d 172.29.5.102:1650 1.3.6.1.2.1.1.6 s "thirdfloor"

Sending 52 bytes to UDP: [172.29.5.102]:1650
: 30 32 02 01  01 04 06 70  75 62 6C 69  63 A3 25 02    02.public.%.
0016: 04 06 FC 23  36 02 01 00  02 01 00 30  17 30 15 06    ...#6..0.0..
0032: 07 2B 06 01  02 01 01 06  04 0A 74 68  69 72 64 66    .+thirdf
0048: 6C 6F 6F 72                                           loor


Received 52 bytes from UDP: [172.29.5.102]:1650
: 30 32 02 01  01 04 06 70  75 62 6C 69  63 A2 25 02    02.public.%.
0016: 04 06 FC 23  36 02 01 11  02 01 00 30  17 30 15 06    ...#6..0.0..
0032: 07 2B 06 01  02 01 01 06  04 0A 74 68  69 72 64 66    .+thirdf
0048: 6C 6F 6F 72                                           loor

Error in packet.
Reason: notWritable (That object does not support modification)
[EMAIL PROTECTED] net-snmp-5.2]$


>>HOW HAVE YOU CONFIGURED THE ACCESS CONTROL>

here is my ACCESS control setup in the /usr/local/share/snmp/snmpd.conf file

# SECTION: Access Control Setup
     rwuser  npar
     rwuser  npar auth

     rouser  npar
     rouser  npar auth

     rocommunity  comname localhost
     rocommunity  comname localhost
     rocommunity  necops localhost

     rwcommunity  comname localhost
     rwcommunity  necops localhost

# Unknown directives read in from other files by snmpconf

     com2sec notConfigUser  default       public

     group   notConfigGroup v1           notConfigUser
     group   notConfigGroup v2c           notConfigUser

     view    systemview    included   .1.3.6.1.2.1.1
     view    systemview    included   .1.3.6.1.2.1.25.1.1

     access  notConfigGroup ""      any       noauth    exact  systemview systemview
        none

     com2sec local localhost necops
     com2sec mynet default necops

     group myrwgroup v1 local
     group myrwgroup v2c local
     group myrogroup v1 mynet
     group myrogroup v2c mynet

     view all included .1.3.6.1.2.1.10.184.1 80

     access myrogroup "" v1 noauth exact all none none
     access myrogroup "" v2c noauth exact all none none
     access myrwgroup "" v1 noauth exact all all none
     access myrwgroup "" v2c noauth exact all all none
     access  notConfigGroup ""      any       noauth    exact  systemview systemview
        none
     access myrwgroup 

AGENT EXT SIT ON NAILS - 9

2005-04-21 Thread Parthiban Naliiamudali

Dear sir,

i am very much thankful to Mr.DAVE sir.. for your guidelines... sir.. here my project goeslike this...
sir, i tried as per your instruction...

1) IN THE TRAPS PROBLEM...

after setting the instruction, now i am NOT getting "send_Timeout" 
the "snmptrapd" gets and informs the agent start ...but
when i send a "snmptrap" it gives "Missing value/type" ...
here is the copy paste of the terminal..

[EMAIL PROTECTED] net-snmp-5.2]$ snmptrap -v 2c -c public 172.29.5.102:1
950 "" 1.3.6.1.2.1.1.6.0 s "just here"
s: Missing type/value for variable

[EMAIL PROTECTED] net-snmp-5.2]$ snmptrap -v 2c -c public 172.29.5.102:1
950 "" 1.3.6.1.2.1.10.184.1.1.5.3.1.1.1 i 777

i: Missing type/value for variable

[EMAIL PROTECTED] apps]$ ./snmptrapd -Le -f 172.29.5.102:1950
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
2005-04-21 14:45:40 NET-SNMP version 5.2 Started.

==
sir, i am not sure what to do next...???


2) IN THE SNMPSET PROBLEM... NEW DIMENSION...?

sir, as per your instruction when i set the access control.. i am ABLE TO WORK SNMPSET for my WMAN-IF-MIB variables and again it gives NEW ERROR FOR "sysLocation.0" ie "FAILED OBJECT"

here is the copy paste of the terminal..
==
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c public -v 2c 172.29.5.102:18
80 1.3.6.1.2.1.1.6.0
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)

[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 172.29.5.102:18
80 1.3.6.1.2.1.1.6.0
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)

[EMAIL PROTECTED] net-snmp-5.2]$ snmpset -c necops -v 2c 172.29.5.102:18
80 1.3.6.1.2.1.1.6.0 s "third floor"
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: SNMPv2-MIB::sysLocation.0

[EMAIL PROTECTED] net-snmp-5.2]$
==
sir, what is this error? and what am i to do next for SNMPSET???

sir, and in my WMAN-IF-MIB, i am able to make SNMPSET to the variables, but the agent is not storing the new value...
when i restart the agent.. only the old value is retrived

WHAT TO DO FOR MAKING THE AGENT STORE THE SNMPSET VALUE?

here is the copy paste of the terminal.
==
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c public -v 2c 172.29.5.102:18
80 1.3.6.1.2.1.10.184.1.1.5.3.1.1.1
SNMPv2-SMI::transmission.184.1.1.5.3.1.1.1 = INTEGER: 3

[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 172.29.5.102:18
80 1.3.6.1.2.1.10.184.1.1.5.3.1.1.1
SNMPv2-SMI::transmission.184.1.1.5.3.1.1.1 = INTEGER: 3

[EMAIL PROTECTED] net-snmp-5.2]$ snmpset -c necops -v 2c 172.29.5.102:18
80 1.3.6.1.2.1.10.184.1.1.5.3.1.1.1 i 993
SNMPv2-SMI::transmission.184.1.1.5.3.1.1.1 = INTEGER: 993

[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 172.29.5.102:18
80 1.3.6.1.2.1.10.184.1.1.5.3.1.1.1
SNMPv2-SMI::transmission.184.1.1.5.3.1.1.1 = INTEGER: 993

[EMAIL PROTECTED] net-snmp-5.2]$

---

[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -c necops -v 2c 172.29.5.102:13
30 1.3.6.1.2.1.10.184.1.1.5.3.1.1.1
SNMPv2-SMI::transmission.184.1.1.5.3.1.1.1 = INTEGER: 3
[EMAIL PROTECTED] net-snmp-5.2]$

==

sir, please do kindly give me instruction to proceed with

sir, it is really interesting and energizising to work with the NET-SNMP package in all yours guidelines

and i am also interested to work continusouly with your instructions... but i am bit unlucky for short period...
here in MY COLLEGE NETWORK MAINTENANCE is on and i will not be able to access my login to work... for a day...
sir, i will try your reply and respond back to you for other doubts on MONDAY.i feel very sorry for this delay..

Expecting your reply,

with sincere thanks & love,
n.parthiban.







AGENT EXT SIT ON NAILS - 10

2005-05-02 Thread Parthiban Naliiamudali

Dear Sir,

i am thankful to Mr.DAVE sir for his advice. Sir, Mr.DAVE at last i am able to send a SNMPTRAP now..sir, sorry for delay.
[ AGENT EXT SIT ON NAILS-9 ]

sir, as per your advice i studied the FAQ again and again and now
i am able to send a trap for my WMAN-IF-MIB integrated agent.for this i have written a new MIB file having a NOTIFICATION-TYPE only.and named it as"WiMAX-NOTIFICATION-TEST-MIB" copy & paste of terminal is given below.
=
[EMAIL PROTECTED] net-snmp-5.2]$ snmptrap -v 2c -c necops 172.29.5.102:1
950 '' WIMAX-NOTIFICATION-TEST-MIB::demonotifs \1.3.6.1.2.1.10.184.1.1.5.3.1.1 i  777

[EMAIL PROTECTED] net-snmp-5.2]$ snmptrap -v 2c -c necops 172.29.5.102:1
950 '' WIMAX-NOTIFICATION-TEST-MIB::demonotifs \1.3.6.1.2.1.10.184.1.1.5.3.1.2 i  7676

[EMAIL PROTECTED] net-snmp-5.2]$

[EMAIL PROTECTED] apps]$ ./snmptrapd -f -Le 172.29.5.102:1950
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
2005-05-02 16:31:45 NET-SNMP version 5.2 Started.
2005-05-02 20:02:39 172.29.5.102 [UDP: [172.29.5.102]:35145]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (88205049) 10 days, 5:00:50.49     SNMPv2-M
IB::snmpTrapOID.0 = OID: SNMPv2-SMI::transmission.184.25        SNMPv2-SMI::tran
smission.184.1.1.5.3.1.1 = INTEGER: 777
2005-05-02 20:19:05 172.29.5.102 [UDP: [172.29.5.102]:35147]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (88303593) 10 days, 5:17:15.93     SNMPv2-M
IB::snmpTrapOID.0 = OID: SNMPv2-SMI::transmission.184.25        SNMPv2-SMI::tran
smission.184.1.1.5.3.1.2 = INTEGER: 7676
=
sir, but a request many of the contents are bit technically COMPLEX where me like students are NOT able understand at a SINGLE READ.

sir, now my NEW queries are... sir, i infact studied the faq and the 
online material and doubt lies here.

sir, i studies NET-SNMP TUTORIAL -TRAPS given in the WEBSITE[ONLINE DOCUMENTATION]

sir, now i want to EXCUTE OTHER PROGRAM ON RECEPTION OF A TRAP.
say,  a SHELL SCRIPT.

1) WHERE TO PLACE THE SHELL SCRIPT PROGRAM.?

2) WHERE TO LOCATE "SNMPTRAPD.CONF" FILE FIRST?

3) HOW TO INCLUDE THE SHELL SCRIPT PROGRAM FILE NAME INSIDE THE "SNMPTRAPD.CONF"?


sir, please do kindly say me, i cannot understand that page well.

sir, my SECOND QUERY:

sir, when snmptrapd logs the traps send by snmptrap here,
it is NOT SHOWING MY MIB NAME [WMAN-IF-MIB] INSTEAD IT SHOWS THE PARENT NODE 
OR THE ROOT NODE NAMEBELOW IS COPY & PASTE OF IT...
==
2005-05-02 20:19:05 172.29.5.102 [UDP: [172.29.5.102]:35147]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (88303593) 10 days, 5:17:15.93     SNMPv2-M
IB::snmpTrapOID.0 = OID: SNMPv2-SMI::transmission.184.25        SNMPv2-SMI::tran
smission.184.1.1.5.3.1.2 = INTEGER: 7676
=

see here, in the received trap message, it shows "SNMPV2-SMI::transmission.184.25"

here it should actually should show me the MIB file name as "WIMAX-NOTIFICATION-TEST-MIB"

and also for "SNMPv2-SMI::transmission.184.1.1.5.3.1.2" should be as
"WMAN-IF-MIB::wmanIfBsControllerActionsResetSector"

WHY? WHAT TO DO FOR CHANGING IT?


sir, i wish to be your student always.. as it is very interesting to work with SNMP and WiMAX on your guidelines... thanks a lot for considering my requests.


with sincere thanks & love,
n.parthiban






AGENT EXT SIT ON NAILS - 11

2005-05-03 Thread Parthiban Naliiamudali

Dear sir,
sir, Mr.DAVE sir now i am able to get the correct names of my MIB when receiving the traps in the "snmptrapd" and for running a shell script on reception of a trap.. 
an ERROR IT IS SHOWING -"BROKEN PIPE" 
PLEASE SEE BELOW FOR WHAT I HAVE DONE

sir, when i send a trap message it receives it and shows "BROKEN PIPE" and also the "snmptrapd" gets KILLED or stoped itself.
here is the cOPY & PASTE OF TERMINAL
==
[EMAIL PROTECTED] net-snmp-5.2]$ snmptrap -v 2c -c necops 172.29.5.102:1
950 '' 1.3.6.1.2.1.10.184.25.35 \1.3.6.1.2.1.10.184.1.1.5.3.1.1.1 i 888
---

[EMAIL PROTECTED] apps]$ ./snmptrapd -f -Le 172.29.5.102:1950
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
2005-05-03 19:33:48 NET-SNMP version 5.2 Started.
2005-05-03 19:36:33 172.29.5.102 [UDP: [172.29.5.102]:35167]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (96687223) 11 days, 4:34:32.23     SNMPv2-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti        WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs.1 = INTEGER: 888
Broken pipe
[EMAIL PROTECTED] apps]$
=
I HAVE DONE THESE ALL --

sir, i have included the "traphandle" directive in the traphandler section as below inside the "SNMPTRAPD.CONF" FILE
===
# SECTION: Trap Handlers

traphandle  1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
===
sir, then i have my shell script program named "wimaxscript" which is in /home/parthiban it is same example program as you have given it Mr.DAVE sir, JUST TWO ECHO LINES ADDED
below is the shell script-"wimaxscript" program
==
#!/bin/sh
echo "WIMAX NOTIFICATION-TEST ON RECEPTION OF A TRAP"
read host
read ip
vars=
while read oid val
do
if [ "$vars" = ""]
then
vars="$oid = $val"
else
vars="$vars, $oid =$val"
fi
done
echo trap: $1 $host $ip $vars
echo "SCRIPT RUN SUCCESSFULLY"
==

WHAT IS WRONG? 
HOW TO MAKE THE SHELL SCRIPT RUN ON RECEPTION OF A TRAP.?

please do answer this...

SNMP V3 PROBLEM:
sir, i am getting "Timeout: No Response from 172.29.5.102:1545" when i use my SNMP V 3" but works for snmp v2c.
sir, I HAVE DONE THESE ALL:

sir, i have included in the following directives inside the snmp.conf file (ie) /home/parthiban/.snmp/snmp.conf file i have ADDED THESE
===
# SECTION: Default Authentication Options
defsecurityname  parthi
defsecuritylevel  authPriv
defauthpassphrase  "keytowimax"
defprivpassphrase  "keytowimax"


AND IN AGENT PART sir, i have included "createUser parthi MD5 keytowimax DES" 

inside the persistent stored snmpd.conf file (ie)/home/parthiban/perstore/snmpd.conf file

here is the copy & paste of the terminal
=
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 2c -c public 172.29.5.102:15
45 1.3.6.1.2.1.10.184.1.1.5.3.1.2.1
WMAN-IF-MIB::wmanIfBsControllerActionsResetSector.1 = INTEGER: 11
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 172.29.5.102:1545 1.3.6.1.
2.1.10.184.1.1.5.3.1.2.1
Timeout: No Response from 172.29.5.102:1545.
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 -l authPriv -u parthi -A "
keytowimax" -X "keytowimax" 172.29.5.102:1545 1.3.6.1.2.1.10.184.1.1.5.3.1.2.1
Timeout: No Response from 172.29.5.102:1545.
[EMAIL PROTECTED] net-snmp-5.2]$


WHAT ELSE SETTING I HAVE TO MAKE FOR GETTING SNMP V3 ?

SIR KINDLY PLEASE DO GIVE ME SOLUTIONS


sir, Mr.DAVE sir, thanks a lot for your guidelines..



with sincere thanks & love,
n.parthiban






AGENT EXT SIT ON NAILS -12

2005-05-03 Thread Parthiban Naliiamudali

Dear sir,
sir, Mr.DAVE  NO SIR it is NOT WORKING even WITHOUT TWO ECHO LINES ALSO
the snmptrapd is not working..it is again the same error "BROKEN PIPE"
COPY & PASTE OF TERMINAL
==

[EMAIL PROTECTED] net-snmp-5.2]$ snmptrap -v 2c -c necops 172.29.5.102:1
950 '' 1.3.6.1.2.1.10.184.25.35 \1.3.6.1.2.1.10.184.1.1.5.3.1.1 i 777
[EMAIL PROTECTED] net-snmp-5.2]$

---
[EMAIL PROTECTED] apps]$ ./snmptrapd -f -Le 172.29.5.102:1950
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
2005-05-03 21:24:30 NET-SNMP version 5.2 Started.
2005-05-03 21:26:21 172.29.5.102 [UDP: [172.29.5.102]:35169]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (97345910) 11 days, 6:24:19.10     SNMPv2-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti        WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs = INTEGER: 777
Broken pipe
[EMAIL PROTECTED] apps]$
==
now my shell script program -"wimaxscript" SAME AS GIVEN BY YOU IN EXAMPLE.
---
#!/bin/sh

read host
read ip
vars=

while read oid val
do
  if [ "$vars" = ""]
     vars="$oid = $val"
  else
    vars="$vars, $oid =$val"
  fi
done

echo trap: $1 $host $ip $vars
=================
sir, please say me what to do now???

sir my SNMP V3 PROBLEM DOUBT - [AGENT EXT SIT ON NAILS -11]

sir kindly please do give me solutions

with sincere thanks & love,
n.parthiban.






AGENT EXT SIT ON NAILS -13

2005-05-03 Thread Parthiban Naliiamudali

Dear sir,

sir, as Mr.ROBERT STORY sir said,"This is a known issue that has been fixed in CVS. You need to add one line of
code to snmptrapd.c to ignore SIGPIPE." [AGENT EXT SIT ON NAILS 11,12]

i REMOVED SNMPTRAPD.C from the /home/parthiban/net-snmp-5.2/apps
and ADDED THE SNMPTRAPD.C WHICH I GOT FROM CVS.

the CVS DETAILS is 
===
Revision 5.49 - (view) (download) (annotate) - [select for diffs] 
Fri Apr 29 16:14:13 2005 UTC (4 days, 13 hours ago) by dts12 
Branch: MAIN 
CVS Tags: HEAD 
Changes since 5.48: +15 -5 lines 
Diff to previous 5.48 
Patch #1149420 - use new external fd handler routines,
to pave the way for more integrated trap handlers.
==

and then i RECONFIGURED AND RECOMPILED THE ENTIRE NET-SNMP, NOW THE ERROR IT SHOWS IS

THIS IS SHOW AT THE END OF "MAKE" AFTER ISSUEING "./CONFIGURE --WITH -MIB-MODULES=WMANSRC"
===

/bin/sh ../libtool  --mode=compile gcc -I../include -I. -I../agent -I../agent/he
lpers -I../agent/mibgroup  -I../snmplib  -g -O2 -Dlinux  -c -o snmptrapd.lo snmp
trapd.c
rm -f .libs/snmptrapd.lo
gcc -I../include -I. -I../agent -I../agent/helpers -I../agent/mibgroup -I../snmp
lib -g -O2 -Dlinux -c snmptrapd.c  -fPIC -DPIC -o .libs/snmptrapd.lo
snmptrapd.c:95:47: net-snmp/library/fd_event_manager.h: No such file or director
y
snmptrapd.c: In function `main':
snmptrapd.c:645: warning: passing arg 1 of `snmp_log_syslogname' discards qualif
iers from pointer target type
make[1]: *** [snmptrapd.lo] Error 1
make[1]: Leaving directory `/home/parthiban/net-snmp-5.2/apps'
make: *** [subdirs] Error 1
[EMAIL PROTECTED] net-snmp-5.2]$ 
==

SIR NOW WHAT I AM TO DO GET THE "SNMPTRAPD" WITH "TRAPHANDLER"???

[AGENT EXT SIT ON NAILS -11,12]

SIR PLEASE DO KINDLY GIVE ME SOLUTIONS..and also for MY

 SNMP V3 PROBLEM [AGENT EXT SIT ON NAILS-11] 


please do kindly guide me for present TWO PROBLEMS...


with sincere thanks & love,
n.parthiban








Re: AGENT EXT SIT ON NAILS

2005-05-06 Thread Dave Shield
On Thu, 2005-05-05 at 18:12, Parthiban Naliiamudali wrote:
> as you said i added the single line of code to the previous 
> "snmptrapd.c" file after the lines with "signal"

No - we suggested that you add a single line of code.
Just one - not several copies.


> #ifdef SIGHUP
> RETSIGTYPE
> hup_handler(int sig)
> {
> reconfig = 1;
> signal(SIGHUP, hup_handler);
> signal(SIGPIPE, SIG_IGN);

Delete this - it's in the wrong place.

> }
> #endif


> line number --1132
> 
> signal(SIGTERM, term_handler);
> signal(SIGPIPE, SIG_IGN);
> #ifdef SIGHUP
> signal(SIGHUP, hup_handler);
> signal(SIGPIPE, SIG_IGN); 
> #endif
> signal(SIGINT, term_handler);
> signal(SIGPIPE, SIG_IGN);

That's better, but you don't need all of these.
Delete the first two SIGPIPE entries - just keep the last one.


> now there is no error after reception of trap.

Good.
That's one problem fixed.


> and also it is not running the "wimaxscript" a shell script program.

What is the relevant entry in your 'snmptrapd.conf' file?
What is the exact command used to send the trap?

You probably need to check that the script exists (and is executable).
What is the result of
ls -l /path/to/wimaxscript
?
(using the exact same path as listed in the snmptrapd.conf file)

Dave



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS

2005-05-06 Thread Dave Shield
On Thu, 2005-05-05 at 18:12, Parthiban Naliiamudali wrote:
> SNMP V3 problem
> 
> sir, i am getting "Timeout: No Response from 172.29.5.102:1545" when i
> use my SNMP V 3" but works for snmp v2c



> and in agent part sir, i have included "createUser parthi MD5
> keytowimax DES" inside the persistent stored snmpd.conf file
> (ie)/home/parthiban/perstore/snmpd.conf file

Are you sure that the agent is reading this file?
If you run the agent using

snmpd -f -Le -Dread_config

you should be able to see the config files it's reading in,
and the directives that it uses.  Check that your "createUser"
entry appears in that output.

> 
> here is the copy & paste of the terminal
> =
> $ snmpget -v 2c -c public 172.29.5.102:1545
>1.3.6.1.2.1.10.184.1.1.5.3.1.2.1
> WMAN-IF-MIB::wmanIfBsControllerActionsResetSector.1 = INTEGER: 11
> $ snmpget -v 3 172.29.5.102:1545
>1.3.6.1.2.1.10.184.1.1.5.3.1.2.1
> Timeout: No Response from 172.29.5.102:1545.

> what else setting i have to make for getting SNMP V3 run???

The one thing you haven't mentioned is access control.
What SNMPv3 access control settings have you got in the agent?
Anything that mentions either "user" or "usm"

Dave



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS

2005-05-06 Thread Dave Shield
On Fri, 2005-05-06 at 11:28, Parthiban Naliiamudali wrote:
> and also checked for script file(wimaxscript) exist and executable,
> and changed the permission for that file.
> 
> >>What is the result of ls -l /home/parthiban/wimaxscript
> ---
> $ ls -l /home/parthiban/wimaxscript 
> -rw-rw-r--1 parthiban parthiban ...

That won't have helped, certainly!


> $ chmod 777 wimaxscript


Why, oh *why* do people insist of giving global write permission
to files?  Our students are always doing this to their web
pages, as well.  Is it really that hard to use the symbolic forms?

chmod a+x wimaxscript

would have worked just as well, and wouldn't make a mockery of
Unix security mechanisms.
  [Sorry, but you just pressed a button!]



> traphandle  1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
> --
> 
> >>>What is the exact command used to send the trap?
> -
> $ snmptrap -v 2c -c necops 172.29.5.102:1950 ''
>  1.3.6.1.2.1.10.184.25.35 \1.3.6.1.2.1.10.184.1.1.5.3.1.1 i 

OK - that looks correct.


> the trap receiver at other window.
> -
> $ ./snmptrapd -f -Le 172.29.5.102:1950
> 2005-05-06 15:32:13 NET-SNMP version 5.2 Started.
> 2005-05-06 15:32:58 172.29.5.102 [UDP: [172.29.5.102]:35187]:
> SNMPv2-MIB::sysUpTime.0 = Timeticks: (121141969) 14 days, 0:30:19.69
> SNMPv2-MIB::snmpTrapOID.0 = 
>  OID:WIMAX-NOTIFICATION-TEST-MIB::wimax-noti

And what is the OID of "WIMAX-NOTIFICATION-TEST-MIB::wimax-noti" ?
Run
snmptranslate -On WIMAX-NOTIFICATION-TEST-MIB::wimax-noti


> what else has to be changed for running a script on reception of the
> trap

Not sure.
Assuming that the OID matches, then everything *looks* OK.

Try running the trap handler using

./snmptrapd -f -Le -Dsnmptrapd 172.29.5.102:1950

and send the trap again.
That should show whether the trap receiver is passing this
trap off to the 'command_receiver()' routine or not.
If it is, then something is going wrong with invoking the script.
If it isn't, then the problem lies with the traphandle entry,
in which case running

./snmptrapd -f -Le -Dread_config 172.29.5.102:1950

(and sending the trap yet again), might help indicate what.

Dave



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS

2005-05-06 Thread Dave Shield
On Fri, 2005-05-06 at 15:04, Parthiban Naliiamudali wrote:
> when the passphrase is wrong it is not giving "authentication failure"
> on the agent or on output. instead it gives "Timeout: No Response from
> 172.29.5.102:1225"
> 
> what would be wrong here?

No idea.


> $ ./snmptrapd -f -Le -Dsnmptrapd 172.29.5.102:1950

> snmptrapd: Trap OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti
> snmptrapd: print_handler
> snmptrapd: v2/3 format

> snmptrapd: get_traphandler matched (80999a8)
> snmptrapd: command_handler
> snmptrapd: token = '/home/parthiban/wimaxscript'
> snmptrapd: execute format

OK - so it *is* trying to invoke the script.
That's useful to know.


> and the other try is with the 
> 
> >>>running./snmptrapd -f -Le -Dread_config 172.29.5.102:1950

NO!  Please read what I wrote.
I suggested running this command if the first run indicated
that the trap receiver was *NOT* attempting to invoke your script.

It's clear from the output above that snmptrapd *DOES* know
about this script, so the read_config output is of no use at all.


Hmmm let's think.
OK - try the following:
   In the file 'apps/snmptrapd_handlers.c', there's a routine
'command_handler()', which contains a statement

run_exec_command(handler->token, rbuf, NULL, 0);

Change this to call 'run_shell_command' (with exactly the same 
parameters), and re-compile.  Does that make any difference?

Dave



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS

2005-05-09 Thread Dave Shield
On Fri, 2005-05-06 at 19:52, Parthiban Naliiamudali wrote:

> sir, i executed the "snmptrapd" and the "wimaxscript" file with just
> two echo statement like this
> here i received the output with twice the message, 

That's because you've got two 'snmptrapd.conf' files,
both of which register a handler for the same trap OID.

Have a look at the output of the -Dread_config run you posted
last week.  That includes:

/usr/local/share/snmp/snmptrapd.conf:27 examining:
traphandle  1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
/home/parthiban/.snmp/snmptrapd.conf:26 examining:
traphandle  1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript

*both* of which (later) register the same script to handle this trap.
That's why you get two copies of the output.



> and then i restrated the "snmptrapd"  manager with the "wimaxscript"
> file having your example program in it.
> by this time the message the "snmptrapd' manager received is 3 (Three)

> sir, why the manager receives mutiple copies? i guess as traphandler
> is defined at two locations of snmptrapd.conf when it was twice. but
> no idea when it became Three times.

That sounds likely.
Try running the '-Dread_config' version again, and have a look at the
output.  Look for where it might be reading in these handlers.

You should concentrate particularly on where it says:
   "traphandle: registering handler for:"
and see where it's reading those entries from.


Please do **NOT** just post the full debug output.  I expect you to
do the donkey work here.  If you're not sure quite what's happening,
post the relevant fragments of the debug output - from "examining
traphandle" to "registering handler" - but those three lines (repeated
as often as necessary) are all that's relevant here.


Dave



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS

2005-05-09 Thread Dave Shield
On Fri, 2005-05-06 at 19:52, Parthiban Naliiamudali wrote:
> and now the shell scripts are running...but 
> what to do for running a object file created from a c++ program???

Nothing.  That should work in just the same way.

> sir, is that i have add that "run_exec_command" again with same
> parameters??

No. The 'run_shell_command' call should handle either shell
scripts or binaries quite happily.  We probably should have
used that right from the start.


> and also SNMP v3 works now ...shows the 'authentication failure
> message" after recompiling for the trap problem.
> 
> sir, but the "authentication failure" is received on the agent
> terminal.. is that should come in the manager -"snmptrapd" terminal..?

No - that's the way SNMPv3 authentication works - I think.
(It's not really my area).   What's failing is probably the initial
engine discovery process. I suspect that the agent is never actually
getting as far as sending the (v3) trap at all.


Dave



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS

2005-06-08 Thread Robert Story
On 28 May 2005 15:24:17 - Parthiban wrote:
PN> My sincere thanks to Mr.Robert sir, Mr.Dave sir and all the NET-SNMP
PN> Teamhelping and guiding me in doing my project work.
PN> 
PN> As i said in my first mail.. i am doing a project for my final semester MCA
PN> course regular. my project title is "Network Management for Broadband
PN> wireless access based on WiMAX and IEEE 802.16f"
PN> 
PN> sir, i have completed my project and currently preparing my documentation
PN> for my project work done... i request both Mr.Robert sir and Mr.Dave sir..
PN> their consent to add their names to my project acknowledgement
PN> column

That's fine with me (even though Dave did all the work).

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
  unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Agent Ext Sit on Nails

2006-03-31 Thread Wes Hardaker
> On 28 Mar 2006 11:20:03 -, "Parthiban Naliiamudali" <[EMAIL 
> PROTECTED]> said:

Parthiban> I am using NET-SNMP on linux platform... and trying to
Parthiban> implement a WMANIF-MIB (IEEE 802.16f) and in this trying to
Parthiban> integrate this agent with an application for the mib
Parthiban> values... for the same each time when I write a piece of
Parthiban> code.. I need to do follow configure, compile and install
Parthiban> .. Instead I am trying to write a makefile.. which will
Parthiban> hold the object files seperately and will compile
Parthiban> directly...  What are should be there in the makefile
Parthiban> body???

there are some example makefiles in the tutorial:

http://www.net-snmp.org/tutorial/tutorial-5/toolkit/

Parthiban> Then I am also trying to send notifications through this
Parthiban> agent..  What is the default MIB implemented with net-snmp
Parthiban> agent having notification object ???

There is a notification sending example in the agent code:

  agent/mibgroup/examples/notification.c

Parthiban> and also I am interested to know how many
Parthiban> traps/notifications will our net-snmp process per sec.???

Can't help you there.  Test it and see.
-- 
Wes Hardaker
Sparta, Inc.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT-SIT ON NAILS -2

2005-04-11 Thread Dave Shield
On Mon, 2005-04-11 at 10:35, Parthiban Naliiamudali wrote:
> But when i make a query through "snmpget" it gives 

> $ snmpget -c public -v 2c 127.0.0.1:1650 
>   1.3.6.1.2.1.10.184.1.1.5.1.1.2
> WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion = 
>  No Such Object available on this agent at this OID

If you're using "snmpget", then you must give the exact
OID, *including* any instance or index subidentifiers.

For now, try using "snmpgetnext" on the same OID.
That's more likely to give you back something useful.

Dave



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS -3

2005-04-13 Thread Dave Shield
On Wed, 2005-04-13 at 08:26, Parthiban Naliiamudali wrote:
> $ snmpgetnext -c public -v 2c 172.29.5.102:1850
> .iso.org.dod.internet.mgmt.mib-2.transmission.wmanIfMib.wmanIfMibObjects.wman
> IfBsObjects.wmanIfBsController.wmanIfBsControllerStatusTable.wmanIfBsControllerS
> tatusEntry.wmanIfBsControllerStatusRunningSwVersion
> 
> WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion = No more
> variables left in this MIB View (It is past the end of the MIB tree)

Hmmm...  *nothing* comes after that point?
Not even the UCD version information?

That sounds as if there's a problem with access control,
if nothing else.

Check your access control settings - and review the FAQ entries:

   I can see the system group, but nothing else.  Why?
&  How do I configure access control?

Dave



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS -4

2005-04-14 Thread Dave Shield
On Thu, 2005-04-14 at 10:05, Parthiban Naliiamudali wrote:
> but i didnot get the values when i query using "snmpget" or
> "snmpwalk".

> $ snmpget -c necops -v 2c 127.0.0.1:1250
> 1.3.6.1.2.1.10.184.1.1.5.1.1.2
> WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion =
> No Such Instance currently exists at this OID

That's because you haven't included the instance subidentifier.
Note the response from the GetNext request:

> $ snmpgetnext -c necops -v 2c 127.0.0.1:1250
> 1.3.6.1.2.1.10.184.1.1.5.1.1.2
> WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion.1 =
> STRING: "1.32a"  ^^

It's a bit difficult to be certain without the MIB itself
(or numeric OID output), but try:

$ snmpget -c necops -v 2c 127.0.0.1:1250
1.3.6.1.2.1.10.184.1.1.5.1.1.2.1
  ^^

(same with 5.1.1.3 vs 5.1.1.3.1)


> $ snmpwalk -c necops -v 2c 127.0.0.1:1250
>1.3.6.1.2.1.10.184.1.1.5.1.1.1
> WMAN-IF-MIB::wmanIfBsControllerStatusIndex =
>No Such Instance currently exists at this OID

That one's a bit more worrying - it should have worked.
How have you implemented these objects?

Dave



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS -6

2005-04-15 Thread Robert Story
On 15 Apr 2005 15:23:17 - Parthiban wrote:
PN> sir, i used 
PN> "mib2c -c mib2c-create-dataset.conf wmanIfBsControllerActionsTable" to
PN> create a C template
PN> and added my code for adding data to the variables.
PN> 
PN> here the PROBLEM is there is NO INDEX in the table

Then it is an invalid table. It must either have an index,  or be an augmenting
table, in which case the index is the same as the index of the table it is
augmenting.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
  unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS -7

2005-04-20 Thread Dave Shield
On Wed, 2005-04-20 at 07:47, Parthiban Naliiamudali wrote:
> # ./snmptrapd -f -Le 172.29.5.102:1900
> Warning: no access control information configured.
> It's unlikely this agent can serve any useful purpose
> in this state.

Ignore that message.
It's not really relevant to 'snmptrapd'
(and has been suppressed in more recent releases)




> because of this condition.. i am getting "send-trap:Timeout" 

It won't be because of that, no.
I suspect the problem lies elsewhere.


> $ ./snmpd -r -L -f 172.29.5.102:1450
> inside the init function ..start..
> inside the initialize function
> inside init ..after adding first data to columns
> snmpd: send_trap: Timeout
> snmpd: send_trap: Timeout

What trap-related settings do you have in your snmpd.conf file?
(trapsink/trap2sink/informsink/trapsess) 



> i have included the wmanIfMib in to the standard agent using
>   "mib2c -c mib2c.create-dataset.conf
> and added my code for its variable values.
> 
> for the same table i am able to get the SNMPGET,SNMPGETNEXT and
> SNMPWALK.but the SNMPSET IS NOT WORKING.WHY?

How did you declare the relevant objects?
What does your
netsnmp_table_set_multi_add_default_row()
call look like?


How have you configured the access control?
Can you successfully SET other objects (say "sysLocation.0")

Dave



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS - 8

2005-04-21 Thread Dave Shield
On Thu, 2005-04-21 at 06:27, Parthiban Naliiamudali wrote:
> my settings:> In the /usr/local/share/snmp/snmpd.conf file
> 
> # SECTION: Trap Destinations
> 
>  trapsink  localhost necops 1950
>  trapsink  localhost necops 1900
> 
>  trap2sink  localhost necops 1950
>  trap2sink  localhost necops 1900
> 
>  informsink  localhost necops 1950
>  informsink  localhost necops 1900

So every time you ask for a notification to be generated,
the agent will actually send *SIX* copies?
I know that SNMP traps are regarded as an unreliable
mechanism, but six feels a bit excessive!!

I presume you have good reason for running two trap handlers,
listening on two different ports on the same machine.   But
there is no point in sending three copies of the same trap
to the same receive.

Decide whether you want to use SNMPv1 traps, SNMPv2c traps
or SNMPv2c informs, and delete the other two pairs from
this file.


>  trapcommunity  necops
>  trapcommunity  necops

You don't need two copies of this line.  Full Stop.
In fact, you don't even need one copy, since you're
specifying the community above.

>  authtrapenable  1
>  authtrapenable  1

Same here - you don't need two copies of this line.
Delete one.





> >>CAN YOU SUCCESSFULLY SET OTHER OBJECTS(say "sysLocation.0")
> 
> NO SIR, i am not able to set for the ("sysLocation.0") also.



> here is my ACCESS control setup in the
> /usr/local/share/snmp/snmpd.conf file
> 
> # SECTION: Access Control Setup
>  rwuser  npar
>  rwuser  npar auth
> 
>  rouser  npar
>  rouser  npar auth
> 
>  rocommunity  comname localhost
>  rocommunity  comname localhost
>  rocommunity  necops localhost
> 
>  rwcommunity  comname localhost
>  rwcommunity  necops localhost

Once again, you've got multiple copies of overlapping directives.
This is just going to cause confusion.

Please choose *ONE* of

rwuser  npar
rouser  npar

and *ONE* of

rocommunity  comname localhost
rwcommunity  comname localhost

and *ONE* of

rocommunity  necops localhost
rwcommunity  necops localhost

and delete the rest.

> 
> # Unknown directives read in from other files by snmpconf
> 
>  com2sec notConfigUser  default  public
> 
>  group  notConfigGroup v1  notConfigUser
>  group  notConfigGroup v2c  notConfigUser
> 
>  viewsystemviewincluded  .1.3.6.1.2.1.1
>  viewsystemviewincluded  .1.3.6.1.2.1.25.1.1
> 
>  access  notConfigGroup ""  any  noauthexact  
>systemview systemview none

Yes - that should allow "public" write access.
But only to the system group - not to your wmanIfMib

>  com2sec local localhost necops
>  com2sec mynet default necops

But you've already defined "necops" behaviour above
(using the "rocommunity"/"rwcommunity" tokens).

Yet again, you're duplicating the same configuration,
which will just cause confusion.

*EITHER* use the "r[ow]community" directive, *OR* use
com2sec/group/view/access.   Do *NOT* try to mix them.



> sir, in this file all the contents(SECTIONS) such as "System
> Information Setup,Access Control Setup Trap Destinations, Extending
> the Agent and Unknown directives read " are present TWICE.second set
> of these information are given after first one.

Why?!?

It sounds as if you'd do better to start again from scratch.
Move this file out of the way, and create a new version
containing the following:

rocommunity public
rwcommunity necops

trap2sink  localhost necops 1950

Then try:

snmpget -c public -v2c localhost  sysLocation.0
snmpget -c necops -v2c localhost  sysLocation.0
snmpset -c necops -v2c localhost  sysLocation.0 s "third floor"

snmpget -c necops -v2c localhost  \
WMAN-IF-MIB::wmanIfBsControllerActionsResetBs.1

snmpset -c necops -v2c localhost  \
WMAN-IF-MIB::wmanIfBsControllerActionsResetBs.1 i 333

Dave



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS - 9

2005-04-21 Thread Dave Shield
On Thu, 2005-04-21 at 11:00, Parthiban Naliiamudali wrote:
> when i send a "snmptrap" it gives "Missing value/type" ...
> here is the copy paste of the terminal..
> 
> $ snmptrap -v 2c -c public 172.29.5.102:1950 ""
>1.3.6.1.2.1.1.6.0 s "just here"
> s: Missing type/value for variable

What you're actually missing is the trap itself!

Remember that an SNMPv2c trap uses an OID to specify
which notification is being transmitted, followed by
(zero or more) varbinds - OID/type/value triplets.

You've got the varbind (sysLocation.0="just here")
but you haven't specified the trap OID which should
come before it.

That's confusing the snmptrap command



> when i set the access control.. i am ABLE TO WORK SNMPSET for my
> WMAN-IF-MIB variables

Good.
That's working then.

> again it gives NEW ERROR FOR "sysLocation.0" ie "FAILED OBJECT"

Don't worry about it - the only reason for trying sysLocation was
as part of checking the access control settings.
What you originally wanted to do was set the WMAN-IF-MIB variables,
which are now working.


> sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)

If you want to get this working as well, please read the FAQ.
In particular the entry "I still can't change sysLocation"

Then have a look at the file mentioned here.

In fact, you should probably read through the FAQ anyway.
A lot of what you have been asking is covered there already.

Dave



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS - 10

2005-05-03 Thread Dave Shield
On Mon, 2005-05-02 at 16:34, Parthiban Naliiamudali wrote:
> sir, now i want to EXCUTE OTHER PROGRAM ON RECEPTION OF A TRAP.
> say,  a SHELL SCRIPT.
> 
> 1) WHERE TO PLACE THE SHELL SCRIPT PROGRAM.?

Doesn't matter - put it wherever you like.

> 2) WHERE TO LOCATE "SNMPTRAPD.CONF" FILE FIRST?

If you compiled this from source, probably
   /usr/local/etc/snmptrapd.conf

If you're using a pre-compiled version, probably
   /etc/snmp/snmpd.conf

Try running "snmptrapd -Dread_config -f -Le"
and see where it's looking.

> 3) HOW TO INCLUDE THE SHELL SCRIPT PROGRAM FILE NAME INSIDE THE
> "SNMPTRAPD.CONF"?

traphandle  THETRAPOID  /path/to/shell/script




> sir, when snmptrapd logs the traps send by snmptrap here,
> it is NOT SHOWING MY MIB NAME [WMAN-IF-MIB] INSTEAD IT SHOWS THE
> PARENT NODE OR THE ROOT NODE NAME

The "snmptrapd" daemon hasn't loaded your WMAN-IF-MIB file.
Try starting it using

snmptrapd -m +WMAN-IF-MIB:WIMAX-NOTIFICATION-TEST-MIB .

Dave



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS - 11

2005-05-03 Thread Dave Shield
On Tue, 2005-05-03 at 16:06, Parthiban Naliiamudali wrote:

> sir, then i have my shell script program named "wimaxscript" which is
> in /home/parthiban it is same example program as you have given it
> Mr.DAVE sir, JUST TWO ECHO LINES ADDED

And does it work if you *don't* add those two lines?

Dave



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS -12

2005-05-03 Thread Robert Story
On 3 May 2005 16:05:47 - Parthiban wrote:
PN> sir, Mr.DAVE  NO SIR it is NOT WORKING even WITHOUT TWO ECHO LINES ALSO
PN> the snmptrapd is not working..it is again the same error "BROKEN PIPE"

This is a known issue that has been fixed in CVS. You need to add one line of
code to snmptrapd.c to ignore SIGPIPE.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
  unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: AGENT EXT SIT ON NAILS -13

2005-05-05 Thread Dave Shield
On Wed, 2005-05-04 at 07:39, Parthiban Naliiamudali wrote:
> i REMOVED SNMPTRAPD.C from the /home/parthiban/net-snmp-5.2/apps
> and ADDED THE SNMPTRAPD.C WHICH I GOT FROM CVS.

No - that's not safe.
If you're working with the CVS tree, then you need to work
with the *whole* of the CVS tree.   You can't reliably take
individual files from that and slot them into an earlier
code set.

Robert> You need to add one line of
Robert> code to snmptrapd.c to ignore SIGPIPE.

The code that Robert's referring to is simply

signal(SIGPIPE, SIG_IGN);

Restore the previous version of snmptrapd.c, and add this
line immediately after the other 'signal' lines.


Dave

PS: Two other requests:
 - Could you please keep the same subject on your messages.
 There's no need to keep a running count of how many
 times you've asked us for assistance.  We're not going
 to be charging you for any of this :-)
 - Could you please NOT SHOUT
 Reading text in all caps is surprisingly tiring.
Thanks



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users