Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snmprealwalk(3) [php man page]

SNMPREALWALK(3) 							 1							   SNMPREALWALK(3)

snmprealwalk - Return all objects including their respective object ID within the specified one

SYNOPSIS
array snmprealwalk (string $host, string $community, string $object_id, [int $timeout = 1000000], [int $retries = 5]) DESCRIPTION
The snmprealwalk(3) function is used to traverse over a number of SNMP objects starting from $object_id and return not only their values but also their object ids. PARAMETERS
o $host -The hostname of the SNMP agent (server). o $community -The read community. o $object_id -The SNMP object id which precedes the wanted one. 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 of the SNMP object ids and their values on success or FALSE on error. In case of an error, an E_WARNING mes- sage is shown. EXAMPLES
Example #1 Using snmprealwalk(3) <?php print_r(snmprealwalk("localhost", "public", "IF-MIB::ifName")); ?> The above will output something like: Array ( [IF-MIB::ifName.1] => STRING: lo [IF-MIB::ifName.2] => STRING: eth0 [IF-MIB::ifName.3] => STRING: eth2 [IF-MIB::ifName.4] => STRING: sit0 [IF-MIB::ifName.5] => STRING: sixxs ) SEE ALSO
snmpwalk(3). PHP Documentation Group SNMPREALWALK(3)

Check Out this Related Man Page

SNMPWALK(3)								 1							       SNMPWALK(3)

snmpwalk - Fetch all theSNMPobjects from an agent

SYNOPSIS
array snmpwalk (string $hostname, string $community, string $object_id, [int $timeout = 1000000], [int $retries = 5]) DESCRIPTION
snmpwalk(3) function is used to read all the values from an SNMP agent specified by the $hostname. PARAMETERS
o $hostname - 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 snmpwalk(3) Example <?php $a = snmpwalk("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
snmprealwalk(3). PHP Documentation Group SNMPWALK(3)
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk

hi, i 'm trynig to get information from a line but i have some problems: my input is this line (for example): IP-MIB::ipNetToMediaPhysAddress.4.10.0.0.1 = STRING: 0:6:8a:45:6d:5 and i want to have only this: 10.0.0.1 0:6:8a:45:6d:5 i tried with awk but but there are two FS in the... (3 Replies)
Discussion started by: mips
3 Replies

2. HP-UX

HP O/S MIB file?

HI all, please let me know where i can find the HP OS system MIB file.? Thanks in advance. Rgds, Jagadeesh. (2 Replies)
Discussion started by: bjagadeesh
2 Replies

3. UNIX for Advanced & Expert Users

MIB issue

can someone please help me out with this. why do i keep getting a "No Such Instance..." error message? The MIB file is in the proper directory and with the proper permissions. What could be wrong? I restarted snmpd already. Thank you. snmpwalk -v2c -c AH$%FJY ferenty01.blah.net... (0 Replies)
Discussion started by: SkySmart
0 Replies

4. AIX

Help in Understanding ISMP

Hi, Good day to everyone. This is my first time joining the community and wanted to say thanks in advance for all your help and assistance. First, I am not expert in AIX and UNIX but I do know a thing or two and I have a simple question regarding ISMP. We are using AIX 5.3 and a couple... (0 Replies)
Discussion started by: lgalang
0 Replies

5. 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