Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snmpgetnext(3) [php man page]

SNMPGETNEXT(3)								 1							    SNMPGETNEXT(3)

snmpgetnext - Fetch theSNMPobject which follows the given object id

SYNOPSIS
string snmpgetnext (string $host, string $community, string $object_id, [int $timeout = 1000000], [int $retries = 5]) DESCRIPTION
The snmpgetnext(3) function is used to read the value of the SNMP object that follows the specified $object_id. 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 SNMP object value on success or FALSE on error. In case of an error, an E_WARNING message is shown. EXAMPLES
Example #1 Using snmpgetnext(3) <?php $nameOfSecondInterface = snmpgetnetxt('localhost', 'public', 'IF-MIB::ifName.1'; ?> SEE ALSO
snmpget(3), snmpwalk(3). PHP Documentation Group SNMPGETNEXT(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

10 More Discussions You Might Find Interesting

1. Red Hat

RHEL 3 - how to change the SNMP community strings?

I have edited the snmpd.conf file on RHEL3, I changed: com2sec notConfigUser default public to : com2sec notConfigUser default new_string_name BUT, when my security guy scans the box, is still answers to public, I restarted snmpd. Is there more to this than just changing... (0 Replies)
Discussion started by: BG_JrAdmin
0 Replies

2. What is on Your Mind?

Whatr is the Unix command ?

Hello everybody i am a new member of this community I just wanted to know that what is the unix command to empty the content of a file. Thank You All. (1 Reply)
Discussion started by: hellotosatish
1 Replies

3. Infrastructure Monitoring

SNMP Issue

When my server is restarted, SNMP does not start automatically. It needs to be started manually everytime the server is restarted. (1 Reply)
Discussion started by: shahdeo
1 Replies

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

5. UNIX for Dummies Questions & Answers

Bits:____Banking

Hey community just wondering what is the bits banking in our account used for? (1 Reply)
Discussion started by: mgyeah
1 Replies

6. UNIX for Advanced & Expert Users

SNMP syntax question

Hello, I need to create an snmp.comf file that defines 2 IPs to the same community string. Do I need to have 2 community strings with the same name and diff't IPs? Or should I have 1 string and list the IPs? (comma seperated?) Example: rocommunity EC_8000_RO arguments EC_8000_RO... (2 Replies)
Discussion started by: felbvts
2 Replies

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

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

9. AIX

Disabling SNMP in AIX 7.1

Hi, I am planning to disable SNMP in our AIX LPARs. wanted to see by disabling in a test LPAR. before that, I would like to check disabling this SNMP will impact any of our application or database in anyway. what kind of other software depends on these SNMP daemons ? Can you please let me... (9 Replies)
Discussion started by: system.engineer
9 Replies

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