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

SNMP3_REAL_WALK(3)							 1							SNMP3_REAL_WALK(3)

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

SYNOPSIS
array snmp3_real_walk (string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, string $object_id, [string $timeout = 1000000], [string $retries = 5]) DESCRIPTION
The snmp3_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 $sec_name - the security name, usually some kind of username o $sec_level - the security level (noAuthNoPriv|authNoPriv|authPriv) o $auth_protocol - the authentication protocol (MD5 or SHA) o $auth_passphrase - the authentication pass phrase o $priv_protocol - the privacy protocol (DES or AES) o $priv_passphrase - the privacy pass phrase o $object_id - The SNMP object id. 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 snmp3_real_walk(3) <?php var_export(snmp3_real_walk('localhost', 'james', 'authPriv', 'SHA', 'secret007', 'AES', 'secret007', '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 SNMP3_REAL_WALK(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