(PHP 4, PHP 5, PHP 7, PHP 8)
snmp3_get — Fetch an SNMP object
说明
snmp3_get(
string $hostname,
string $security_name,
string $security_level,
string $auth_protocol,
string $auth_passphrase,
string $privacy_protocol,
string $privacy_passphrase,
array|string $object_id,
int $timeout = -1,
int $retries = -1
): mixed
| 版本 | 说明 |
|---|---|
| 8.1.0 | The auth_protocol now accepts "SHA256" and "SHA512" when supported by libnetsnmp. |
<?php
$nameOfSecondInterface = snmp3_get('localhost', 'james', 'authPriv', 'SHA', 'secret007', 'AES', 'secret007', 'IF-MIB::ifName.2');
?>