❦ 31 juillet 2020 17:51 +02, He Da-Luo:
> I'm developing an agent using the library Net-SNMP agent. Most of it works
> fine but the requests from "snmptable" (bulk requests).
> When the Net-SNMP agent gets a "get next request"(snmpwalk) that reaches
> the end of a column or my table, my handler
❦ 5 juillet 2013 14:44 CEST, Michael Schwartzkopff mi...@schwartzkopff.org :
I wanted to program a perl subagent and I copied a sample from
https://github.com/vincentbernat/extend-netsnmp/blob/master/agentx-
perl/ethtool-stats.pl
to my machine. When starting the subagent the output after
❦ 26 décembre 2012 10:54 CET, Akshat Kakkar the_aks...@yahoo.co.in :
How can I get BRIDGE-MIB implementation in linux ?
It is already shipped as an AgentX subagent in NetSNMP. Search for
snmp-bridge-mib. Alternatively, I have made a patch to include it in
Net-SNMP:
❦ 5 décembre 2012 04:57 CET, Zheng, Wenjie (Barclay)
barclay.zh...@alcatel-lucent.com :
By studying and testing SNMP performance these days, I found that X-agent is
not efficient as I expected:
SNMP sub-agent mode slows down the total time of getbulk, by change
the SNMP agent architecture
❦ 3 octobre 2012 08:26 CEST, Yoshio KAWAMO kawamo.yos...@lab.ntt.co.jp :
Would you please tell me how to check what version of the
Net-SNMP is installed on server machines?
You can query UCD-SNMP-MIB::versionTag.0.
--
Don't use conditional branches as a substitute for a logical expression.
myself through the network with snmp_synch_response() and will get
stuck since I won't be in a state where I can process incoming requests.
--
Vincent Bernat ☯ http://vincent.bernat.im
Use recursive procedures for recursively-defined data structures.
- The Elements of Programming
() are pretty complex.
--
Vincent Bernat ☯ http://vincent.bernat.im
/* James M doesn't say fuck enough. */
2.4.3 linux/net/core/netfilter.c
--
Live Security Virtual Conference
Exclusive live event will cover all
with it.
The second one does not have such a documentation. What is its purpose
(I don't understand what a delegated session is)? Can I call it only
when a timeout occurs? Or should I call it when any SNMP event occurs
(timeout or SNMP socket ready to be read)?
--
Vincent Bernat ☯ http
Hi!
I am using snmp_select_info() + select() + run_alarms() +
netsnmp_check_outstanding_agent_requests() in a program acting as a
subagent. It is important for me to avoid any blocking since the program
should be able to send a packet every second. It appears that run_alarms()
can block. I have
Hi!
I have a program based on a select() loop. I have integrated netsnmp into
this loop.
The original code is:
select(nfds + 1, rfds, NULL, NULL, tv);
The new code is:
snmpblock = 0;
memcpy(snmptv, tv, sizeof(struct timeval));
snmp_select_info(nfds, rfds, snmptv, snmpblock);
if (snmpblock ==
OoO Pendant le journal télévisé du mardi 01 septembre 2009, vers 20:31,
Jared Smith (jarsmith) jarsm...@cisco.com disait :
snmpwalk ?v2c ?c public host locationInMyMIB
works and walks through my mib as would be expected however if I do:
snmpwalk ?v2c ?c public host
If you don't
OoO En ce début d'après-midi nuageux du lundi 17 août 2009, vers 14:49,
Szymon Klimuk szkb...@wp.pl disait :
Is there any MIB subtree that stores information about the closest
neighbors of routers/switches, I mean devices derectly connected to
router/switch?
You can check LLDP protocol.
OoO En cette nuit nuageuse du mardi 18 août 2009, vers 01:10, Szymon
szkb...@wp.pl disait :
but my question was if there is any subtree in standard MIBs?
LLDP is an IETF standard and comes with a MIB. However, there is no MIB
module shipped with NetSNMP with this functionality.
--
BOFH
On Wed, 5 Aug 2009 10:13:41 +0100, François Dumont
francoisdumon...@gmail.com wrote:
I tried :.join(%02x % ord(a) for a in HardwareAddress) but I got the
error ord() expected a character, but string of length 6 found.
Yes, try:
:.join(%02x % ord(a) for a in HardwareAddress[0])
I missed the
On Wed, 5 Aug 2009 12:47:20 +0100, François Dumont
francoisdumon...@gmail.com wrote:
Ok, it works.
The result is 186:190:186:190:250:206. Would it be possible to have the
same
result in hexadecimal ? If not, I can go with that.
It should be hexadecimal. Didn't you use %02d instead of %02x?
OoO Lors de la soirée naissante du mardi 04 août 2009, vers 18:47,
François Dumont francoisdumon...@gmail.com disait :
oid = netsnmp.Varbind('rbAuBaseStationId', '1')
HardwareAddress = netsnmp.snmpget(oid, DestHost = RadioID, Community =
public, Version = 2)
print
OoO Pendant le temps de midi du vendredi 31 juillet 2009, vers 12:49,
François Dumont francoisdumon...@gmail.com disait :
import netsnmp
oid = netsnmp.Varbind('rbAuConfiguredBaseStationId', '1', 'ba be 00 00 fa
ce')
rbAuConfiguredBaseStationId = netsnmp.snmpset(oid,
OoO En cette fin de nuit blanche du vendredi 17 juillet 2009, vers
05:42, X Z b...@live.com disait :
I got the following error from snmptrapd:
snmptrapd -f -Le -F %02.2h:%02.2j TRAP%w.%q from %A\n
NET-SNMP version 5.3.2.2
couldn't open udp:162 -- errno 13 (Permission denied)
Anyone
OoO Lors de la soirée naissante du mercredi 15 juillet 2009, vers 17:34,
François Dumont francoisdumon...@gmail.com disait :
You say (Vincent Bernat) that it is a problem with my MIB module, and I
believe
you. But I have installed an SNMP-based GUI (Loriot Pro), just to verify, and
I
can
OoO En ce début d'après-midi ensoleillé du mercredi 15 juillet 2009,
vers 15:48, François Dumont francoisdumon...@gmail.com disait :
I still have this problem of set. I tried to analyze the packets with
Wireshark
(I started 2 captures with both my python script and a simple snmpset in
OoO Lors de la soirée naissante du mercredi 15 juillet 2009, vers 17:34,
François Dumont francoisdumon...@gmail.com disait :
You say (Vincent Bernat) that it is a problem with my MIB module, and I
believe
you. But I have installed an SNMP-based GUI (Loriot Pro), just to verify, and
I
can
OoO En cette fin de matinée radieuse du vendredi 10 juillet 2009, vers
11:00, François Dumont francoisdumon...@gmail.com disait :
First of all, these types are given by the MIB, but when I print them in my
python script with :
value = rbQoSProfileName
print(type(value))
OoO Pendant le temps de midi du jeudi 09 juillet 2009, vers 12:11, Dave
Shield d.t.shi...@liverpool.ac.uk disait :
I'm using the library libsnmp-python available in the depositories of
Ubuntu. The version of this library is 5.4.1~dfsg-4ubuntu4.2.
Hmmm this code affected by this patch
OoO Lors de la soirée naissante du mercredi 08 juillet 2009, vers 18:50,
François Dumont francoisdumon...@gmail.com disait :
Two information to add to my problem :
First, I didn't notice that, but the problem appears only with enumerated
types.
Secondly, I have debugged the script with pdb
OoO Pendant le repas du mercredi 01 juillet 2009, vers 19:23, François
Dumont francoisdumon...@gmail.com disait :
import netsnmp
oid = ipIfConfigIpAddress
Version = 2
DestHost = 10.0.0.1
Communuty = private
result = netsnmp.snmpwalk(oid, Version = Version,
OoO En cette fin de matinée radieuse du mercredi 01 juillet 2009, vers
11:37, malar vizhi malar...@gmail.com disait :
Thanks for your quick response.So you mean to say,
y -- result at T1
x -- result at T2
t -- T2 - T1
Final result will be a percentage of that corresponding object. Am
OoO En ce début d'après-midi nuageux du mardi 23 juin 2009, vers 14:03,
Dmitry Melekhov d...@belkam.com disait :
import netsnmp
oid = netsnmp.VarList(netsnmp.Varbind('.1.3.6.1.2.1.2.2.1.2'))
result = netsnmp.snmpwalk(oid,
Version = 2,
DestHost=192.168.22.253,
Community=public)
OoO Lors de la soirée naissante du mardi 23 juin 2009, vers 18:27, Param
Srinivas prmsr...@gmail.com disait :
Here's my question . I would like linux (redhat 5) to receive snmp traps from
other windows server and also vmware environment.
So in the installed net-snmp pakage. Then started the
OoO Peu avant le début de l'après-midi du mardi 16 juin 2009, vers
13:57, Joan Landry joan.lan...@overturenetworks.com disait :
I am trying to port net-snmp to an embedded platform and have been
able to use ./configure and make to cross compile the code. Now I am
not sure what
OoO Lors de la soirée naissante du mardi 16 juin 2009, vers 18:10,
Manish Gupta mani...@niksun.com disait :
We are using net-snmp version 5.3.1_3 and trying to set the value of
sysobjectid through snmpd.conf file , but it is not setting the value and
snmpwalk always shows the default
OoO En ce début d'après-midi ensoleillé du lundi 08 juin 2009, vers
15:57, PoWah Wong wong_po...@yahoo.ca disait :
In C.
Did you look at this example?
http://www.net-snmp.org/dev/agent/notification_8c-example.html
The last variable binding in this example is an ASN_OCTET_STR. You
OoO En cette fin de nuit blanche du mardi 09 juin 2009, vers 05:14,
Joshua Tolley eggyk...@gmail.com disait :
I've noticed that mib2c's generated code makes calls to
netsnmp_table_set_add_indexes() something like this one:
netsnmp_table_set_add_indexes(table_set,
ASN_OCTET_STR, /*
OoO En cette soirée bien amorcée du vendredi 05 juin 2009, vers 22:33,
PoWah Wong wong_po...@yahoo.ca disait :
If my trap is defined as follows, how to initialize certExpiry to a
valid DisplayString?
In C or with snmptrap?
--
BOFH excuse #51:
Cosmic ray particles crashed through the hard
Hi!
I don't quite understand the rule to apply when an OCTET STRING is used
as an index of a table. It seems that when several string are used as
index, each string should be prefixed by its length (when converting to
an OID). However, when the string comes in last position, no length is
OoO En cette matinée pluvieuse du vendredi 05 juin 2009, vers 10:30,
Dave Shield d.t.shi...@liverpool.ac.uk disait :
I don't quite understand the rule to apply when an OCTET STRING is used
as an index of a table. It seems that when several string are used as
index, each string should
OoO En cette matinée ensoleillée du vendredi 29 mai 2009, vers 09:41,
Dave Shield d.t.shi...@liverpool.ac.uk disait :
I would strongly suggest that you don't waste your time on the
old UCD way of doing things. The newer handlers are much
much more powerful. You really want to be using
Hi!
To write a value, we need to assign a function to write_method. The
function will be called several time with a different action each time
(RESERVE1, RESERVE2, ACTION, COMMIT, UNDO, FREE). The function will also
have access to OID to be written and to the value from GET.
Looking at
Hi!
I have read a bit NetSNMP sources and I think I have found some
interesting bits to answer myself.
BTW, why is there a lookup before each action? I mean, the workflow is:
var_atEntry lookups the entry and sets write_method.
write_arp is called with action == RESERVE1
OoO En cette fin de matinée radieuse du mardi 26 mai 2009, vers 11:54,
Dave Shield d.t.shi...@liverpool.ac.uk disait :
snmpset -v 2c -c private 192.168.2.241 \
Q-BRIDGE-MIB::dot1qVlanStaticRowStatus = createAndGo \
Q-BRIDGE-MIB::dot1qVlanStaticName = vlan6
You need to specify an
OoO Peu avant le début de l'après-midi du samedi 23 mai 2009, vers
13:17, m. kh kh12...@yahoo.fr disait :
# snmpset -v 2c -c private 192.168.2.241
Q-BRIDGE-MIB::dot1qVlanStaticRowStatus = createAndGo
Q-BRIDGE-MIB::dot1qVlanStaticName = vlan6
Error in packet.
Reason:
OoO Pendant le temps de midi du jeudi 21 mai 2009, vers 12:37, m. kh
kh12...@yahoo.fr disait :
i use Q-BRIDGE-MIB to create vlan in switch ,the request to create vlan is :
# snmpset -v2c -c private 192.168.2.241 1.3.6.1.2.1.17.7.1.4.3.1.1.6 s vlan6
but the result is :
Error in packet.
OoO En ce début d'après-midi nuageux du mardi 20 janvier 2009, vers
14:17, Renju Mathew m.re...@teles.com disait :
I would like to connect multiple subagents to a single master agent
How can I configure this in snmpd.conf?
There is nothing to do. Several subagents can connect to master
OoO En cette nuit nuageuse du dimanche 04 janvier 2009, vers 01:32,
Nikos Balkanas nbalka...@gmail.com disait :
It is a TCP/IP socket. I am afraid i don't follow you. Sockets do not have
any rights. Anyone can read/write to them. That's what makes Internet
work.
Bydefault, this
OoO Pendant le temps de midi du dimanche 04 janvier 2009, vers 12:58, je
disais:
Since you are on Unix, unix socket should be the default
(/var/agentx/master). With just master agentx in your configuration
file, don't you get a socket at /var/agentx/master? If not, do you
OoO Peu avant le début de l'après-midi du dimanche 04 janvier 2009, vers
13:51, Nikos Balkanas nbalka...@gmail.com disait :
1) Default agentx configuration (master agentx) is TCP:705 from
anywhere. This is not the default Unix socket as told in th man
pages. It should be restricted in the
OoO En ce début d'après-midi nuageux du dimanche 04 janvier 2009, vers
14:57, Nikos Balkanas nbalka...@gmail.com disait :
So, you say that even in Linux, given the Unix socket credentials
support, agentx doesn't support it?
Yes. But Linux will check permission of the socket, so you can use
OoO Pendant le temps de midi du dimanche 04 janvier 2009, vers 12:23,
Nikos Balkanas nbalka...@gmail.com disait :
I tried these suggestions. localhost works fine. Couldn't get, though,
unix sockets to work.
It creates the unix socket OK, but the example-daemon fails to connect:
Warning:
OoO En ce début d'après-midi nuageux du samedi 03 janvier 2009, vers
14:36, Bart Cornelissen bart.cornelis...@uhasselt.be disait :
1) Subagenthttp://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent
2) Shared object
OoO En ce début de soirée du samedi 03 janvier 2009, vers 21:34, Nikos
Balkanas nbalka...@gmail.com disait :
Yes, but there are security concerns. Agentx doesn't require authentication
and opens up TCP 705. Anyone with access to port 705 on your server can
hijack your snmpd master agent,
OoO En ce début de soirée du lundi 22 décembre 2008, vers 21:34, Hui
Zhang hzh...@tippingpoint.com disait :
Hi,
I have problem to run the snmptrapd from Net-Snmp 5.4.2.1 when I tried to bind
the same port for IPv4 and IPv6. I built it using --disable-agent and
--enable-ipv6.
OoO En cette aube naissante du dimanche 21 décembre 2008, vers 07:56,
Lucian Romi romi.luc...@gmail.com disait :
My code
u_char response[1];
case MODE_GET:
response[0] = 0x69;
snmp_set_var_typed_value(requests-requestvb, ASN_OCTET_STR,
OoO En ce début d'après-midi nuageux du samedi 15 novembre 2008, vers
14:15, je disais:
I am writing some kind of application (https://trac.luffy.cx/lldpd) that
behaves like an AgentX using NetSNMP API. I would like to do some
privilege separation and chrooting. However, NetSNMP
OoO En cette matinée pluvieuse du dimanche 16 novembre 2008, vers 10:16,
je disais:
[privilege separation]
Would it be possible to write a custom transport which inherits and
replaces Unix one with a netsnmp_unix_transport() function that will
handle correctly the opening of the
Hi!
I am writing some kind of application (https://trac.luffy.cx/lldpd) that
behaves like an AgentX using NetSNMP API. I would like to do some
privilege separation and chrooting. However, NetSNMP API do a lot of
things that makes the task a bit difficult:
- It tries to read a lot
54 matches
Mail list logo