Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snmp2_getnext(3) [php man page]

SNMP2_GETNEXT(3)							 1							  SNMP2_GETNEXT(3)

snmp2_getnext - Fetch theSNMPobject which follows the given object id

SYNOPSIS
string snmp2_getnext (string $host, string $community, string $object_id, [string $timeout = 1000000], [string $retries = 5]) DESCRIPTION
The snmp2_get_next(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 snmp2_get_next(3) <?php $nameOfSecondInterface = snmp2_get_next('localhost', 'public', 'IF-MIB::ifName.1'; ?> SEE ALSO
snmp2_get(3), snmp2_walk(3). PHP Documentation Group SNMP2_GETNEXT(3)

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

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

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

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

7. Red Hat

Can't boot RHEL7.2 due to "Start Job is Running"

Dear community, as already done tons of times, I prepare the RedHat installation on VMWare, then clone it with clonezilla, and finally restore it on final server. Due to different hrdware, I have to boot from rhel-server-7.4-x86_64-boot.iso cd and rewrite the initramfs that contains the hardware... (3 Replies)
Discussion started by: Lord Spectre
3 Replies

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