Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snmp2_real_walk(3) [php man page]

SNMP2_REAL_WALK(3)							 1							SNMP2_REAL_WALK(3)

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

SYNOPSIS
array snmp2_real_walk (string $host, string $community, string $object_id, [string $timeout = 1000000], [string $retries = 5]) DESCRIPTION
The snmp2_real_walk(3) function is used to traverse over a number of SNMP objects starting from $object_id and return not only their val- ues 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 snmp2_real_walk(3) <?php print_r(snmp2_real_walk("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
snmp2_walk(3). PHP Documentation Group SNMP2_REAL_WALK(3)

Check Out this Related 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)
Man Page

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

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