473,411 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

snmpwalk

I couldn't find in depth info anywhere else so...

I use PHP to query switches and routers in my network management
software (http://nedi.web.psi.ch).

PHP assign it's own indexes on a snmpwalk:

$ifip = snmpwalk("$_GET[ip]","$comm","1.3.6.1.2.1.4.20.1.1");

so $ifip[0] would be the first interface, but on the real device the
index starts with 1!
Using snmprealwalk("$_GET[ip]","$comm","1.3.6.1.2.1.4.20.1.1"); does
basically what I want, but adds "IF-MIB::ifIndex.". Since it's not even
numerical (like 1.3.6.1.2.1), I never know how much I'd have to substr etc.

Is there a way around this? Could an option be implemented to use real
indexes directly?

Hope this makes sense somehow...
-Remo
Jul 17 '05 #1
0 1407

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: WIWA | last post by:
I have recently installed pySNMP 3.3.2 and use Python 2.2.2. Thanks to Peter Hansen, I succeeded to install pySNMP properly. I'm not completely new to SNMP (I know the basics), but I'm new to...
0
by: WIWA | last post by:
Hi, I have installed pySNMP. I want to make an application where I read out all the OIDs of a MIB of a particular device. In other words, I want to do an SNMPwalk for a certain MIB. I can do...
2
by: Axel Scheepers | last post by:
Hi All, Python is so great. I've been creating a small set of objects to get some stats from our adsl routers. So far it works great and fast. However, in the shell script I created over a year...
4
by: Roy Smith | last post by:
There's been some talk recently about the relative speeds of the various python SNMP libraries. I just did a little benchmarking, and got some surprising results. I downloaded pysnmp-3.4.2 and...
1
by: Francesco Ciocchetti | last post by:
Hi all ml. I'm tryng to use TwistedSnmp to make query and walk directly inside my python code. The problem i'm facing is that any time there is an hexadecimal value to be returned by the...
4
by: Antal Rutz | last post by:
Hi, All! I'm new to threading. I have some design questions: Task: I collect data and store them in an RDBMS (mysql or pgsql) The question is how to do that with threading? The...
2
by: Christian Hammers | last post by:
Hello How can I do the following command with PHP? $ snmpwalk -Ir -On myhost \ 'ASCEND-MIBINET-MIB::internetProfile-Active."cir-1-26"' ..1.3.6.1.4.1.529.23.1.1.1.2.8.99.105.114.45.49.45.50.54...
0
by: Antal Rutz | last post by:
Hi all, I'd like to collect snmp data from varoius network devices parallel. First I tried with my own threadpool class then I gave a try to Christopher Arndt's threadpool.py...
1
by: tigerwang1974 | last post by:
Hi, I had installed net-snmp-5.1.4 source package and php-4.3.9 source package complied with snmp options on my solaris9 server. I wrote a php script using snmpwalk() function to get some OIDs,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.