I have some problem wen install the packe t net-snmp-5.4-1.src.rpm

2007-02-09 Thread bahamute
Hello :
 
I have some problem wen install the packet : net-snmp-5.4-1.src.rpm (I 
download from www.net-snmp.org) .
First time , I log with root ,when I install it , it display like below:
 
[EMAIL PROTECTED] tmp]# rpm -ivh net-snmp-5.4-1.src.rpm
   1:net-snmp   warning: user hardaker does not exist - using root
### [100%]
warning: user hardaker does not exist - using root
[EMAIL PROTECTED] tmp]#

   So I  add a new user : hardaker . when I log with hardaker:
 
[EMAIL PROTECTED] tmp]$ rpm -ivh net-snmp-5.4-1.src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES
[EMAIL PROTECTED] tmp]$ 
 
   Now  I change the promission of the files
 
[EMAIL PROTECTED] tmp]# chmod 0666 /usr

[EMAIL PROTECTED] tmp]# su hardaker
bash: id: command not found
bash: id: command not found
bash: dircolors: command not found
[EMAIL PROTECTED] tmp]$
[EMAIL PROTECTED] tmp]$
[EMAIL PROTECTED] tmp]$
[EMAIL PROTECTED] tmp]$ rpm -ivh net-snmp-5.4-1.src.rpm
rpm: error while loading shared libraries: librpm-4.4.so: cannot open shared obj
ect file: Permission denied

  I want to know why I can not install it correctly ?
   
  Because my machine could not install a compiler . if I install the packet 
: net-snmp-5.4-1.src.rpm , can my subagent  run in this machine ?(I compile 
subagent at another machine which have compiler).
  
 Thank you !!
  Good wishs for you!


 
 
 
 
 
 
 

 
 
 -
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: receiving authentication failures through agentx

2007-02-09 Thread Dave Shield
On 09/02/07, Alex Jones [EMAIL PROTECTED] wrote:
 The only issue with this is that we'd like to know the username and
 source IP address of the offending packet.

 It doesn't look like this is available from the AUTH_FAIL trap.

Correct.
Though there is a submission in the Patches tracker to add this
feature.   See 
http://sourceforge.net/tracker/index.php?func=detailaid=559312group_id=12694atid=312694

But remember that the offending packet may not have an IP address
(e.g. if it was received over a different transport), or a username
(if it was using a different security model than USM).

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: ERROR IN PACKET

2007-02-09 Thread Dave Shield
On 09/02/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  DURING SNMPWALK COMMAND  I GOT THIS ERROR..WHAT IS THE SOLUTION..

 Error in packet.
 Reason: (genError) A general failure occured


The agent didn't like something about the request.

A somewhat vague answer, I know - but it matches the level
of detail you gave in your original question.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: I have some problem wen install the packe t net-snmp-5.4-1.src.rpm

2007-02-09 Thread Dave Shield
On 09/02/07, bahamute [EMAIL PROTECTED] wrote:
 I have some problem wen install the packet : net-snmp-5.4-1.src.rpm
 (I download from www.net-snmp.org) .
 First time , I log with root ,when I install it , it display like below:

 [EMAIL PROTECTED] tmp]# rpm -ivh net-snmp-5.4-1.src.rpm
1:net-snmp   warning: user hardaker does not exist - using
 root
 ### [100%]
 warning: user hardaker does not exist - using root

That's a warning - you can safely ignore it.
Installing and compiling source RPMs is easiest done as root.


Now  I change the promission of the files

 [EMAIL PROTECTED] tmp]# chmod 0666 /usr

Noo!!!
Don't go fiddling about with the permissions of your system.
You're likely to break the security much more that way.

Just install the software as root, and everything should be fine.


Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: Sending notification

2007-02-09 Thread Treesa Fairy Joseph
I tried it and it is working fine.. Thanks ..

On Thu, 8 Feb 2007 11:05:51 +, Dave Shield wrote
 On 08/02/07, Treesa Fairy Joseph [EMAIL PROTECTED] wrote:
  The site says how to compile it if u r compiling from the
  source, It says When this module is compiled into the agent
  (run configure with --with-mib-modules=examples/notification).
  But my agent is already running from the rpms. Then how to
  incorporate this code to my agent. What are the steps for this.
 
 You're probably looking at using a Dynamically Loadable Module.
 
 See
 http://www.net-snmp.org/tutorial/tutorial-5/toolkit/dlmod/index.html
 
 for more info.
 
 Dave
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your 
 job easier. Download IBM WebSphere Application Server v.1.0.1 based 
 on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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


--
Open WebMail Project (http://openwebmail.org)


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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


starting snmpd with multiple configuration files

2007-02-09 Thread Amita Mhaskar
Hi,
 
I tried starting snmpd from net-snmp-5.3.1 by specifying multiple configuration 
files. The syntaxes that I tried  are as follows:
 
1) /opt/internal/bin/snmpd -p /opt/internal/var/run/snmpd.pid -c 
/ffs/etc/snmpd.conf,/usr/local/share/snmp/snmpd_persistent.conf
2) /opt/internal/bin/snmpd -p /opt/internal/var/run/snmpd.pid -c 
/ffs/etc/snmpd.conf, /usr/local/share/snmp/snmpd_persistent.conf
3) /opt/internal/bin/snmpd -p /opt/internal/var/run/snmpd.pid -c 
/ffs/etc/snmpd.conf, /usr/local/share/snmp/snmpd_persistent.conf
4) /opt/internal/bin/snmpd -p /opt/internal/var/run/snmpd.pid -c 
/ffs/etc/snmpd.conf, /usr/local/share/snmp/snmpd.conf
5) /opt/internal/bin/snmpd -p /opt/internal/var/run/snmpd.pid -c 
/ffs/etc/snmpd.conf, /usr/local/share/snmp/snmpd.conf
 
Is there something wrong with the syntax ? 
 
When I start snmpd with any of these syntaxes, it does not respond to any 
commands like snmpwalk etc..
 
Thanks in advance for your help.
 
Regards,
Amita
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: starting snmpd with multiple configuration files

2007-02-09 Thread Dave Shield
On 09/02/07, Amita Mhaskar [EMAIL PROTECTED] wrote:
 I tried starting snmpd from net-snmp-5.3.1 by specifying multiple
 configuration files.

 1) /opt/internal/bin/snmpd -p /opt/internal/var/run/snmpd.pid -c
 /ffs/etc/snmpd.conf,/usr/local/share/snmp/snmpd_persistent.conf

That would work - either as it stands, or with quotes around the
filenames.  The others (with spaces between the files) won't.



 When I start snmpd with any of these syntaxes, it does not respond to any
 commands like snmpwalk etc..

That's probably more to do with what access configuration you've
got in these files, and how you are querying the agent.

 /opt/internal/bin/snmpd -p /opt/internal/var/run/snmpd.pid
  -c /ffs/etc/snmpd.conf,/usr/local/share/snmp/snmpd_persistent.conf
  -f  -Le  -Dread_config

to see what configuration is actually being read in.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: Preventing users from writing into SnmoUsmMib and SnmpVacmMib

2007-02-09 Thread Dave Shield
On 08/02/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Once I have all these details, I will be writing these details into
 snmpd.conf and will be sending a SIGHUP signal to re-read the snmpd.conf.

Why not just update the USM and VACM tables directly?
That way there would be no need to touch the snmpd.conf file,
or restart the agent?
   It would even be possible to run this application remotely,
rather than forcing everything to be run on the one system.

That would also handle your problems regarding the switch restarting.
since this information would be saved and restored by the agent
automatically.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: Sending traps with dynamic destinations

2007-02-09 Thread Dave Shield
[ First - *please* don't mail me privately, without copying
 any responses to the mailing list.  I don't have the time
 or inclination to offer private, unpaid, SNMP consultancy.
 Keep discussions to the list, where others can both learn
 and offer advice.  Thanks.   ]

On 08/02/07, jin zhou [EMAIL PROTECTED] wrote:
   Thank you .But I find it is boring when the trap receivers is not just
 only 1,while I should revaluate the session variable to send traps to
 different receivers for many times.Can session.peername include several
 destinations or is there any way to resolve this problem?

For each destination, you'll need to open a new session.
But you can use the same template for each of them.
Something like:

session.version = SNMP_VERSION2c;
session.community = public;

session.remotepeer = trapdest1:162;
ss1 = snmp_open( session );
session.remotepeer = trapdest2:162;
ss2 = snmp_open( session );
session.remotepeer = trapdest3:162;
ss3 = snmp_open( session );

pdu = snmp_pdu_create(SNMP_MSG_TRAP2);
snmp_send( ss1, pdu );
snmp_send( ss2, pdu );
snmp_send( ss3, pdu );


If you're going to be sending several traps to the same destinations,
then you could re-use the ss1,ss2,ss3  structures from one time
to the next - rather than re-creating them every time.



Note that the code above is a gross oversimplification, and is
almost certainly not correct (as well as being incomplete).  But
it should give you the basic idea.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: Problem using net-snmp as subagent (Error in packet)

2007-02-09 Thread Dave Shield
On 08/02/07, Johnny Ljunggren [EMAIL PROTECTED] wrote:
  I'm pretty sure that the problem lies in the encoding of the OID .0.0,

 Any progress?

Sorry - paid work got in the way :-(

Can you try turning on packet dumps in the subagent
and issue a GET request for one of the offending instances.

What does the response packet look like?

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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


SNMP GET ERROR

2007-02-09 Thread [EMAIL PROTECTED]
HI..

DURING SNMPGET OPERATION I GOT THIS RESULT..
SNMPD ALSO RUNNING...

snmpget -v 2c -c public localhost .1.3.6.1.2.1.10.184.1.1.1.1.1.6
WMAN-IF-MIB::wmanIfBsSfCsSpecification = No Such Instance currently exists
at this OID

THIS IS MY CONF FILE...

ANY CHANGES IN CONF FILE..PLEASE LET ME KNOW

com2sec local localhost   public
com2sec mynetwork 192.168.2.0/24  public


# Second, map the security names into group names:

#   sec.model  sec.name
group MyRWGroup v1 local
group MyRWGroup v2clocal
group MyRWGroup usmlocal

group MyROGroup v1 mynetwork
group MyROGroup v2cmynetwork
group MyROGroup usmmynetwork


# Third, create a view for us to let the groups have rights to:

#   incl/excl subtree  mask
view allincluded  .1   80


# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

#context sec.model sec.level match  read   write  notif
access MyROGroup   any   noauthexact  allnone   none
access MyRWGroup   any   noauthexact  allallnone



mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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


auditing of SETs

2007-02-09 Thread Alex Jones
Hello all.

Another thing that I'm interested in doing is auditing of SETs (ie when
a USM user sets a particular OID, log the username and source IP address
of the packet along with the OID which was set.)

These OIDs are registered via AgentX, and in trying to get this auditing
to work it doesn't look like the username and source IP address of the
packet are being preserved across AgentX.  When the callback function is
called in my subagent, I can't find this information there.

Does this sound right?

Alex

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: SNMP GET ERROR

2007-02-09 Thread Dave Shield
On 09/02/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 snmpget -v 2c -c public localhost .1.3.6.1.2.1.10.184.1.1.1.1.1.6
 WMAN-IF-MIB::wmanIfBsSfCsSpecification = No Such Instance currently exists
 at this OID

It would be a lot easier to help you if you supplied a copy of the WMAN-IF-MIB
file.   But I strongly suspect that you've forgotten
.1.3.6.1.2.1.10.184.1.1.1.1.1.6
is the OID of wmanIfBsSfCsSpecification itself.  In which case, you've forgotten
the index value.

That would fit with the error you're getting - the agent seems to know about the
MIB object, but doesn't like the index value you've asked for.  (Or not asked
for, if I'm right in my guess).


Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: auditing of SETs

2007-02-09 Thread Dave Shield
On 09/02/07, Alex Jones [EMAIL PROTECTED] wrote:

   it doesn't look like the username and source IP address of the
 packet are being preserved across AgentX.

That's correct.
An AgentX subagent does not have access to this information.
It's not part of the AgentX protocol.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: SNMP GET ERROR

2007-02-09 Thread Dave Shield
On 09/02/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
HERE I HAVE ATTACHED MY WMAN-IF MIB- TXT FILE FRO YOUR REFERENCE..
 PLEASE FIND ATTACHED FILE...

Thanks.

That's confirmed my guess.
.1.3.6.1.2.1.10.184.1.1.1.1.1.6  is indeed the OID of the MIB object
WMAN-IF-MIB::wmanIfBsSfCsSpecification

 THEN..WHICH IS CORRECT SNMPGET COMMAND..
 snmpget -v 2c -c public localhost .1.3.6.1.2.1.10.184.1.1.1.1.1.6

 THIS COMMAND IS WRONG...

Yes - you're missing the index values.
It should be something like:

  .1.3.6.1.2.1.10.184.1.1.1.1.1.6.1.1

where the last two numbers are the ifIndex and wmanIfBsSfId values.
But I can't tell you what numbers to use here - since it depends on
the setup of your system.

Try
snmpgetnext -v 2c -c public localhost .1.3.6.1.2.1.10.184.1.1.1.1.1.6

which should give you the first such entry.

Dave

PS:  Please DON'T SHOUT :-)  Thanks

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: I have some problem wen install the packe t net-snmp-5.4-1.src.rpm

2007-02-09 Thread Thomas Anders
bahamute wrote:
 [EMAIL PROTECTED] tmp]# rpm -ivh net-snmp-5.4-1.src.rpm
[...]

   I want to know why I can not install it correctly ?

   Because my machine could not install a compiler . if I install the 
 packet : net-snmp-5.4-1.src.rpm , can my subagent  run in this machine ?(I 
 compile subagent at another machine which have compiler).

Please be aware that you *will* need a compiler for building a binary package
from a source RPM.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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


Table dataset problem

2007-02-09 Thread Pilt
Hello all

I'm writing a module based on the create-dataset.conf template.
Here's the piece of the code:

netsnmp_table_data_set *table_set; // global

void
initialize_table_commTable(void)
{
static oid commTable_oid[] = {1,3,6,1,4,1,27142,1,10,1};
size_t commTable_oid_len = OID_LENGTH(commTable_oid);
int one = 1;

table_set = netsnmp_create_table_data_set(commTable);
table_set-allow_creation = 1;
table_set-rowstatus_column = COLUMN_COMMROWSTATUS;

netsnmp_table_set_add_indexes(table_set,
   ASN_INTEGER,  /* index: commIndex */
   0);
netsnmp_table_set_multi_add_default_row(table_set,
COLUMN_COMMINDEX,ASN_INTEGER, 0,
NULL, 0,
COLUMN_COMMFROMTS, ASN_INTEGER, 1,
NULL, 0,
COLUMN_COMMTOTS, ASN_INTEGER, 1,
NULL, 0,
COLUMN_COMMCOUNTTS, ASN_INTEGER, 1,
one, sizeof(one),
COLUMN_COMMMODE, ASN_INTEGER, 1,
one, sizeof(one),
COLUMN_COMMROWSTATUS, ASN_INTEGER, 
1,
NULL, 0,
  0);

netsnmp_register_table_data_set(
netsnmp_create_handler_registration(commTable, NULL, commTable_oid, 
commTable_oid_len, HANDLER_CAN_RWRITE),
table_set, NULL);

populate_table(); // filling the 'table_set'
}

void
init_comm(void)
{
initialize_table_commTable();
snmp_log(LOG_DEBUG, init done\n);
}
-
I've compiled this into .so and added dlmod line to snmpd.conf. But I get No 
Such Object available on this agent at this OID message though I see my log 
message in logs which means the module did loaded.

So does this piece of code process get/walk/set requests self-dependently or I 
_am_ to use suggested commTable_handler() and write code for all requests?
Or there are other errors?

PS sorry for long snippet but I'm really stuck.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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


Problems with tables

2007-02-09 Thread Rheaume Ed

 I seem to have a problem with some of my table requests extending
 beyond the end of the table and accessing a different OID tree (as
 highlighted in red and with an arrow).  When I run snmpd in debug I
 can see the following output when I make a request for table
 5271.3.105.4.3.2.2.2.1:
 
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.3.105.4.3.2.2.2.1,
 tp-end SNMPv2-SMI::enterprises.5271.3.105.4.3.
 2.2.2.2, 
 :
 :
 :
 snmp_agent: tp-start
 SNMPv2-SMI::enterprises.5271.3.105.4.3.2.2.4.4.1, tp-end
 SNMPv2-SMI::enterprises.5271.3.135.1.1.1.0,   --
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.3.135.1.1.1.0,
 tp-end SNMPv2-SMI::enterprises.5271.3.135.1.1.1.1,
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.3.135.1.1.1.0,
 tp-end SNMPv2-SMI::enterprises.5271.3.135.1.1.1.1, 
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.3.135.1.1.1.1,
 tp-end SNMPv2-SMI::enterprises.5271.3.135.1.1.2, 
 :
 :
 :
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.3.135.2.6.1,
 tp-end SNMPv2-SMI::enterprises.5271.3.142.1.1.1.0,  --
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.3.142.1.1.1.0,
 tp-end SNMPv2-SMI::enterprises.5271.3.142.1.1.1.1,
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.3.142.1.1.1.0,
 tp-end SNMPv2-SMI::enterprises.5271.3.142.1.1.1.1,
 :
 :
 :
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.3.142.2.6.1,
 tp-end SNMPv2-SMI::enterprises.5271.4.5.1.1.1.0, --
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.4.5.1.1.1.0,
 tp-end SNMPv2-SMI::enterprises.5271.4.5.1.1.1.1, 
 snmp_agent: tp-start SNMPv2-SMI::enterprises.5271.4.5.1.1.1.0,
 tp-end SNMPv2-SMI::enterprises.5271.4.5.1.1.1.1, 
 :
 :
 :
 snmp_agent: tp-start NET-SNMP-AGENT-MIB::nsModuleTable, tp-end
 NET-SNMP-AGENT-MIB::nsMibRegistry.2, 
 snmp_agent: tp-start NET-SNMP-AGENT-MIB::nsModuleTable, tp-end
 NET-SNMP-AGENT-MIB::nsMibRegistry.2, 
 snmp_agent: tp-start NET-SNMP-AGENT-MIB::nsModuleTable, tp-end
 NET-SNMP-AGENT-MIB::nsMibRegistry.2,
 
 Our subagent returns NULL when it reaches the end of a table.  It
 seems to work correctly on some of our tables and on others it
 continues to step beyond the end of the table.  Any idea why it would
 do this?
 
 I could probably resolve this by setting the enterprises.5271.3.105.4
 OID value in the snmpd.conf file for the rocommunity and therefore
 restricting access to only this OID, but it this the correct way to
 resolve this?
 
 Thanks,
 Ed
 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: Problem using net-snmp as subagent (Error in packet)

2007-02-09 Thread Johnny Ljunggren

Dave Shield wrote:
  I'm pretty sure that the problem lies in the encoding of the OID .0.0,

 Any progress?

 Sorry - paid work got in the way :-(

No worries. BTW: I'm willing to pay to get this sorted though.

 Can you try turning on packet dumps in the subagent
 and issue a GET request for one of the offending instances.

How do I do that? I'll see if I can figure it out myself too.
FYI: snmpd is the subagent.

-- 
Johnny Ljunggren, Navtek AS


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: auditing of SETs

2007-02-09 Thread Alex Jones
Thanks Dave.

So, possible solutions to this are:

1) move MIBs into the agent itself, and not use AgentX
2) modify AgentX itself to pass this information through
3) something else?

Alex

On Fri, 2007-02-09 at 11:35 +, Dave Shield wrote:
 On 09/02/07, Alex Jones [EMAIL PROTECTED] wrote:
 
it doesn't look like the username and source IP address of the
  packet are being preserved across AgentX.
 
 That's correct.
 An AgentX subagent does not have access to this information.
 It's not part of the AgentX protocol.
 
 Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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: auditing of SETs

2007-02-09 Thread Dave Shield
On 09/02/07, Alex Jones [EMAIL PROTECTED] wrote:
 So, possible solutions to this are:

 1) move MIBs into the agent itself, and not use AgentX

Yes.

 2) modify AgentX itself to pass this information through

No.
It's a standard - you can't just change it!

 3) something else?

See 1)

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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


perl / translateObj

2007-02-09 Thread Stuart Kendrick
hi,

i would like to translate an OID into an Object Value:

guru snmptranslate .1.3.6.1.4.1.9600.1.1.5.1.1.1.48
INFORMANT-STD::cpuInstance.0
guru

when i try this in Perl, i don't see the results i was expecting:

guru cat test
#!/usr/bin/perl
use strict;
use warnings;
use SNMP;
use Perl6::Say;
say SNMP::translateObj('.1.3.6.1.4.1.9600.1.1.5.1.1.1.48');

guru ./test
cpuInstance.1.48
guru

what does it take to persuade Perl to translate that .1.48 into .0 ?

--sk

stuart kendrick
fhcrc



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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


CPU counters (ssCpuRaw*) on machines with multiple CPUs?

2007-02-09 Thread kabbalah74-unsec
I'm wondering if there are any plans to implement the ssCpuRaw* counters in the 
UCD-SNMP MIB on a per CPU basis?
I found a few posts about this in the archives, but nothing recently. 

Regards,
Krisztian













-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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++] Best way to update sysContact++

2007-02-09 Thread Johnny Ljunggren

Hello

What is the best way of updating sysContact and siblings during run-time?
I'm trying to read snmpd.conf to get syscontact/syslocation and then set
those values for my agent.

snip some code

I may be mistaken but I'm not sure how that example is applicable in my
situation. I have used the AgentX subagent example as the basis of my
agent and that add the sysGroup class (mib.add(sysGroup(...))) which again
adds sysContact etc. There are no set methods in this class and I could
find no other ways to do this.
I checked the mailinglist and found one entry from August 2005 asking the
same but unfortunately no reply.

thanks
-- 
Johnny Ljunggren, Navtek AS


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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


REGARDING PARSING FUNCTION

2007-02-09 Thread [EMAIL PROTECTED]
HI..

   I HAVE ONE DOUBT IN USING PARSING FUNCTION...
NOW MY OID IS  1.3.6.1.2.1.10.184  

I WANT TO CHANGE MY OID LIKE THIS 1_3_6_1_2_1_10_184...SO I DONT KNOW HOW
TO USE THIS FUCNTION...AND WHERE I HAVE TO CHANGE AND WHICH FILE IN
SNMP...PLEASE LET ME KNOW 


mail2web - Check your email from the web at
http://link.mail2web.com/mail2web



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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