Re: rocommunity and rwcommunity

2008-04-25 Thread Dave Shield
2008/4/25 Wang, John [EMAIL PROTECTED]: I just wondered if multiple rocommunity (or rwcommunity) directives can be used without specifying optional SOURCE, so that the agent can support multiple read-only community (or read-write community) strings. a) Suck it and See b) Yes Dave

Re: SNMP Basic DataTypes - query?

2008-04-25 Thread Dave Shield
2008/4/25 Amit Gupta [EMAIL PROTECTED]: My question is, what are the values that can be stored in OCTET STRING Data Type Arbitrary binary data. (i.e. not just printable strings) i.e. Can we store spaces, tabs, quotes, newlines in OCTET STRING? Yes. Dave

Some kind of microprocessor?

2008-04-25 Thread Diogo Oliveira
Hello everyone. I've got a doubt and was wondering wheter u could help me. I'm using net-snmp to manage my network with snmpv3, but some of my devices (switches) only support snmpv2c. Is there some kind of microcontroler or firmware update that can let me manage these devices with snmpv3 security

something about reading kenel information ?

2008-04-25 Thread qugjie
hi,everyone: Thanks to your help the last question have been resloved, but the new one appeared. I'm extending the net-snmp Agent, OS core is linux 2.6.22 , CPU is MIPS architecture. I want to read something about the kenel space. This can be done

Re: something about reading kenel information ?

2008-04-25 Thread Dave Shield
2008/4/25 qugjie [EMAIL PROTECTED]: #ifdef UDPSTAT_SYMBOL (this macro is define in file include/net-snmp/system/generic.h ) auto_nlist(UDPSTAT_SYMBOL, 0, 0); #endif what has done this routine ? This locates the UDPSTAT_SYMBOL within the running kernel, ready for when it will

Re: Some kind of microprocessor?

2008-04-25 Thread Dave Shield
2008/4/24 Diogo Oliveira [EMAIL PROTECTED]: some of my devices (switches) only support snmpv2c. Is there some kind of microcontroler or firmware update that can let me manage these devices with snmpv3 security features? That's not something we

How can i get the secific trap notification if i want to monitor the ifUcastPkts of eth2

2008-04-25 Thread ema
hello,everyone! backgroud: net-snmp-5.4.1 on fc6 eth2 is the network interface i want to monitor, the oid of eh2's ifUcastPkts is .1.3.6.1.2.1.2.2.1.11.4 here's the case: /root/.snmp/snmpd.conf:(i use the traditional access control) rwuser ema trapcommunity public trap2sink 192.168.1.100

Re: How can i get the secific trap notification if i want to monitor the ifUcastPkts of eth2

2008-04-25 Thread Dave Shield
2008/4/25 ema [EMAIL PROTECTED]: rwuser ema agentSecName ema Have you got an entry createUser ema anywhere? monitor -r 30 -u ema -e ifInUcastPktsNum eth2InUcastPkts .1.3.6.1.2.1.2.2.1.11.4 290 300 You probably want to add '-I' to that line, since you're monitoring a

Re: Some kind of microprocessor?

2008-04-25 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. ]

Agent is down

2008-04-25 Thread Renju Mathew
Hi all, I used net-snmp API 's wrote an snmpset function... In the case of server (snmp-agent) down or unknown server , how can I check the agent status, before I send the PDU ?? I'm getting the time out response from snmp_synch_response function. Is there any way to know it before I send data

Re: Agent is down

2008-04-25 Thread Dave Shield
2008/4/25 Renju Mathew [EMAIL PROTECTED]: I used net-snmp API 's wrote an snmpset function… In the case of server (snmp-agent) down or unknown server , how can I check the agent status, before I send the PDU ?? By sending a GET request? I'm getting the time out response from

Out of range

2008-04-25 Thread Jayanthi.Pachaiyappan
Hi All, I am facing a problem when working with tables. My table has 6 instances of its own. That is it has 6 rows created statically. My table has a ifindex which acts as a iterator. When i am performing set operation for out of range condition. I get seg fault. Can any of you help me in this

Re: something about reading kenel information ?

2008-04-25 Thread qugjie
There are some line In the AGENT.txt file as follow: 727 line Alternatively, there may be ioctl calls on suitable devices, specific system calls, or special files that can be read to provide the necessary information. There is some examples through reading special files get info?

Re: Agent is down

2008-04-25 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. ]

Re: something about reading kenel information ?

2008-04-25 Thread Dave Shield
2008/4/25 qugjie [EMAIL PROTECTED]: There is some examples through reading special files get info? There are *hundreds* of examples of this approach. Please see the files I mentioned earlier. Dave - This SF.net email is

PERL module

2008-04-25 Thread Raghavendra Prasad
What is a PERL module in Net-SNMP package? kindly explain. Is it possible to parse MIB file using a PERL script? if possible I plan to generate template source code(like mib2c parsing using configuration files like mib2.scalar.conf) Kindly reply, Raghavendra

RE: OID information

2008-04-25 Thread Ron Rader
From: john decot [mailto:[EMAIL PROTECTED] I want know the link status of each ethernet port. I would be grateful to learn how to generate OID for device through snmp Assuming that your switch is up and running, and that you can ping its management port successfully, and that you have the

Re: OID information

2008-04-25 Thread Dave Shield
2008/4/25 Ron Rader [EMAIL PROTECTED]: and how to send trap information regarding link status. But you can conceivably generate these traps with the proper configuration entries in your snmpd.conf file. You can send traps regarding links status of your *local* systems (i.e. those running

RE: IF-MIB population

2008-04-25 Thread Ron Rader
From: Ron Rader How does the agent determine the state of ifAdminStatus and ifOperStatus? Is there another /proc file that reflects the state of these interfaces, not simply their existence? I wanted to update the list with my progress (answering my own questions!) and hopefully close

running snmpd

2008-04-25 Thread Jelena Savic
Hi, I have a script which starts up snmpd and then another process which talks to snmpd I have traced the snmpd, and the parent process forks and exits before the socket is ready.. Is there a way that i can notify my process when snmpd is ready without arbitrarily sleeping for some time

RE: running snmpd

2008-04-25 Thread Mike Ayers
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jelena Savic I have a script which starts up snmpd and then another process which talks to snmpd I have traced the snmpd, and the parent process forks and exits before the socket is ready.. Is there a way that i can

Re: How can i get the secific trap notification if i want to monitor the ifUcastPkts of eth2

2008-04-25 Thread ema
How can i get the specific trap notification if i want to monitor the ifUcastPkts of eth2 thank you for your suggestions! i reset the user ema at /var/net-snmp/snmpd.conf: createUser ema MD5 password and add -I to the 'monitor' directive when i setup snmpd using snmpd -f -Le -d