Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snmpwalkoid(3) [php man page]

SNMPWALKOID(3)								 1							    SNMPWALKOID(3)

snmpwalkoid - Query for a tree of information about a network entity

SYNOPSIS
array snmpwalkoid (string $hostname, string $community, string $object_id, [int $timeout = 1000000], [int $retries = 5]) DESCRIPTION
snmpwalkoid(3) function is used to read all object ids and their respective values from an SNMP agent specified by $hostname. The existence of snmpwalkoid(3) and snmpwalk(3) has historical reasons. Both functions are provided for backward compatibility. Use snm- prealwalk(3) instead. PARAMETERS
o $hostname - The SNMP agent. o $community - The read community. o $object_id - If NULL, $object_id is taken as the root of the SNMP objects tree and all objects under that tree are returned as an array. If $object_id is specified, all the SNMP objects below that $object_id are returned. o $timeout - The number of microseconds until the first timeout. o $retries - The number of times to retry if timeouts occur. RETURN VALUES
Returns an associative array with object ids and their respective object value starting from the $object_id as root or FALSE on error. EXAMPLES
Example #1 snmpwalkoid(3) Example <?php $a = snmpwalkoid("127.0.0.1", "public", ""); for (reset($a); $i = key($a); next($a)) { echo "$i: $a[$i]<br /> "; } ?> Above function call would return all the SNMP objects from the SNMP agent running on localhost. One can step through the values with a loop SEE ALSO
snmpwalk(3). PHP Documentation Group SNMPWALKOID(3)

Check Out this Related Man Page

SNMP2_WALK(3)								 1							     SNMP2_WALK(3)

snmp2_walk - Fetch all theSNMPobjects from an agent

SYNOPSIS
array snmp2_walk (string $host, string $community, string $object_id, [string $timeout = 1000000], [string $retries = 5]) DESCRIPTION
snmp2_walk(3) function is used to read all the values from an SNMP agent specified by the $hostname. PARAMETERS
o $host - The SNMP agent (server). o $community - The read community. o $object_id - If NULL, $object_id is taken as the root of the SNMP objects tree and all objects under that tree are returned as an array. If $object_id is specified, all the SNMP objects below that $object_id are returned. o $timeout - The number of microseconds until the first timeout. o $retries - The number of times to retry if timeouts occur. RETURN VALUES
Returns an array of SNMP object values starting from the $object_id as root or FALSE on error. EXAMPLES
Example #1 snm2_pwalk(3) Example <?php $a = snmp2_walk("127.0.0.1", "public", ""); foreach ($a as $val) { echo "$val "; } ?> Above function call would return all the SNMP objects from the SNMP agent running on localhost. One can step through the values with a loop SEE ALSO
snmp2_real_walk(3). PHP Documentation Group SNMP2_WALK(3)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Monitoring CPU usage on AIX 5.3 with SNMP

Hi I would like to monitor CPU usage ( %) , memory utilization and such on an AIX 5.3 with snmp. How would I do that ? :confused: If I do "snmpwalk -c public -v1 hosttomonitor" I get nothing about the CPU. I've done this on Linux ( not much trouble doing it on linux ) but I'm having a hard... (2 Replies)
Discussion started by: art
2 Replies

2. Shell Programming and Scripting

exit out of a while loop with error

im running a while loop as a file watcher, with incremental counter on the retries..however when the retries reach it's limit i want it exit and echo and error and stop the batch. Im not sure the code i have will do that already... Here is what i have that works: #!/usr/bin/ksh count=0... (2 Replies)
Discussion started by: sigh2010
2 Replies

3. Shell Programming and Scripting

snmpwalk timeout

can somoene please tell me how to tell snmpwalk how many seconds it has to timeout? i searched the web for this but i can't find it. i'm incorporating this into a script, and I'd like to have snmpwalk timeout within a certain amount of seconds. the -t option doesn't seem to work because... (1 Reply)
Discussion started by: SkySmart
1 Replies

4. Infrastructure Monitoring

Monitoring CPU Usage with SNMP

Can someone please tell me how to calculate the CPU usage from what one gets back from snmpwalk? I have searched and dug through the internet and apparently, no one has the answer to this? i can use snmpwalk to pull out relevant information about cpu. but i have no clue what values are to be... (1 Reply)
Discussion started by: SkySmart
1 Replies

5. Shell Programming and Scripting

Need help with SNMP perl script

I want to have a script that takes the following: Runs this Command: snmpwalk -v 1 -c public devicename 1.3.2.1.15.1.1.3 which returns the following: SNMPv2-SMI::mib-2.10.1.3.3.54.124.178.134 = INTEGER: 6 SNMPv2-SMI::mib-2.10.1.1.3.62.52.16.38 = INTEGER: 6... (1 Reply)
Discussion started by: streetfighter2
1 Replies

6. Infrastructure Monitoring

SNMP Monitoring

Hi, I have below IP address configured in my server. Recently i installed SNMP in Linux 64x bit. While checking the snmp using snmpwalk i get Time out error for all IP except loopback IP(127.0.0.1). How to make all my IPs listen to SNMP eth0 BOOTPROTO=static DEVICE=eth0... (1 Reply)
Discussion started by: Paulwintech
1 Replies

7. What is on Your Mind?

An Introduction to new Member

Hi guys, I am glad to be the part of this community. Hope my presence will be of great use for the people in this community. (2 Replies)
Discussion started by: subsystems
2 Replies