RE: OID for MIBs

2017-07-13 Thread Robson, Alan
: Thursday, July 13, 2017 7:57 AM To: Robson, Alan Cc: net-snmp-users@lists.sourceforge.net Subject: Re: OID for MIBs Hi Alan, Thank you for the clarification. I am working in enterprise-1 and hence defined private mib for their products with iso.3.6.1.4.1.PEN1.1 and now the enterprise-1 has bee

RE: OID for MIBs

2017-07-13 Thread Robson, Alan
iso.3.6.1.4.1 signifies an enterprise. The next number is the Private Enterprise Number (PEN), anything after that is up to the enterprise to define the meaning of. So yes and no (but mostly no !). If the first enterprise number (PEN) belongs to your organization (ie. you work for

RE: Is it possible to set up many SNMP agents managing the same MIB on the same machine?

2017-07-11 Thread Robson, Alan
If you control the MIB structure would it work for you to structure your MIB to contain tables ? ie. when you read, say, CPU usage you will read a CPU usage table with an entry for each machine - one MIB, one agent, multiple entries. From: daniele [mailto:daniele.salvo...@gmail.com] Sent:

RE: Need help with snmptrapd command

2016-07-19 Thread Robson, Alan
Maybe you could wrap the snmptrap executable in a shell script. ie. Make a shell script called snmptrap that reads in the commandline variables and then calls the “real” snmptrap with the additional port information added. Put the snmptrap shell script somewhere in the path ahead of the real

RE: subagents

2016-01-13 Thread Robson, Alan
or in the packet. Alan From: Pushpa Thimmaiah [mailto:pushpa.thimma...@gmail.com] Sent: Wednesday, January 13, 2016 2:34 AM To: Robson, Alan Cc: net-snmp-users@lists.sourceforge.net Subject: Re: subagents Hi , Adding to previous mail, I found one difference between agentxtrap and snmptrap. agentxtrap can

RE: subagents

2016-01-12 Thread Robson, Alan
Snmpd will respond to snmp requests for the MIB variables it understands. But if you add new software that has a MIB of its own, snmpd cannot respond because it has no knowledge of the new software or its internal state. Someone can write an snmp subagent that will respond to requests about the

RE: NET-SNMP-EXTEND-MIB.txt

2015-11-06 Thread Robson, Alan
This will probably answer many of your questions: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sect-System_Monitoring_Tools-Net-SNMP-Extending.html You should also look into a pass script:

RE: Another question for: Writing a Subagent

2015-08-16 Thread Robson, Alan
How come your subagent can’t wait for a request to come in from the manager and check the file at that time ? For example, if the file contains data upon which the response is based, subagent waits for the poll, then opens the file, calculates and sends the response. Or are you trying to keep

RE: Are MIB files also used for converting SNMP GetResponse *values*?

2015-07-13 Thread Robson, Alan
more. Could you please give an example. Are you using the command line snmpget tool ? Many thanks Alan -Original Message- From: Martin T [mailto:m4rtn...@gmail.com] Sent: Monday, July 13, 2015 6:54 AM To: Robson, Alan Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Are MIB files

RE: Are MIB files also used for converting SNMP GetResponse *values*?

2015-07-10 Thread Robson, Alan
Look for display hints in, for example, the TC MIB here: https://tools.ietf.org/html/rfc2579 Alan -Original Message- From: Martin T [mailto:m4rtn...@gmail.com] Sent: Friday, July 10, 2015 8:16 AM To: net-snmp-users@lists.sourceforge.net Subject: Are MIB files also used for converting

RE: purpose of MIB files in SNMP management stations

2015-07-09 Thread Robson, Alan
in the traditional sense. For example, you can send a trap from the commandline of a machine that is not running snmpd. Alan -Original Message- From: Martin T [mailto:m4rtn...@gmail.com] Sent: Thursday, July 09, 2015 2:00 AM To: Robson, Alan Cc: stua...@alleninstitute.org; net-snmp-users

RE: correlation of MIB files and MIB support on SNMP agents

2015-07-09 Thread Robson, Alan
I have had a little experience building subagents with mib2c. mib2c will provide a skeleton of an agent/subagent and it's up to the developer to fill in the implementation-specific details (from your example, mib2c will make a stub function for you to fill in with a real implementation of a

RE: purpose of MIB files in SNMP management stations

2015-07-08 Thread Robson, Alan
and is certainly nowhere to be found in the SNMP packet if you were to capture it and pull it apart with wireshark or tcpdump. Cheers Alan -Original Message- From: Martin T [mailto:m4rtn...@gmail.com] Sent: Wednesday, July 08, 2015 8:43 AM To: Robson, Alan Cc: stua...@alleninstitute.org; net-snmp

RE: purpose of MIB files in SNMP management stations

2015-07-08 Thread Robson, Alan
They can help associate notifications that indicate alarm conditions with notifications that indicate that the same alarm has cleared. In the normal run of events, the MIB text file is the only way one would learn what notifications are supported without reading the source code since walking

RE: query in mib2c

2014-11-25 Thread Robson, Alan
Hi Janki Did MIB2C also create any files for you that ended with the words: …_data_get.c or …_data_access.c ? I ask because when I ran MIB2C it generated these files to give me an opportunity to write functions that would be called when the SNMP agent wanted to fetch a value to return to the

RE: Experimenta OIDs usage

2014-05-13 Thread Robson, Alan
/local/bin/snmp_extender.py, line 4, in module OID = sys.argv[2].strip() IndexError: list index out of range M.AMJAD +92-345-9208119 On Friday, 9 May 2014, 21:45, Robson, Alan alan.rob...@viasat.commailto:alan.rob...@viasat.com wrote: This page: http://net-snmp.sourceforge.net/docs/man

RE: Experimenta OIDs usage

2014-05-09 Thread Robson, Alan
This page: http://net-snmp.sourceforge.net/docs/man/snmpd.conf.html#lbAZ describes how the snmp agent can be extended with a simple script. Here is a very bad example of a script that I saved in the file /usr/local/bin/snmp_extender.py ... #! /usr/bin/python -u import sys # OID is passed with

RE: SNMP Protocol

2014-04-10 Thread Robson, Alan
I have them on the network manager so that I can refer to OIDs by name instead of just the numbers. And I used them on the network device when I compiled an SNMP subagent using “MIB for DUMMIES”. But in truth you don’t need a MIB file anywhere, you can just refer to objects by their numeric ID.

RE: SNMP Protocol

2014-04-10 Thread Robson, Alan
The Management Information Base (MIB) will be hard coded into the program running on the network device (The SNMP agent). This SNMP agent can use any technique it likes to store its information (for example, my snmp agent stores all its information in mysql). A file describing the MIB

snmpwalk from root does not reach subagent

2013-06-29 Thread Robson, Alan
Hi all, This seems like such a basic thing, so I apologize if I've missed a previous response. I've successfully implemented a subagent for my custom MIB. I can snmpwalk it if I specify a suitable starting point in my custom MIB, I can snmpget objects etc. It all works just fine. However if