downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SNMP::walk> <SNMP::set
[edit] Last updated: Fri, 07 Jun 2013

view this page in

SNMP::setSecurity

(PHP 5 >= 5.4.0)

SNMP::setSecurityConfigures security-related SNMPv3 session parameters

Açıklama

bool SNMP::setSecurity ( string $sec_level [, string $auth_protocol = [, string $auth_passphrase = [, string $priv_protocol = [, string $priv_passphrase = [, string $contextName = [, string $contextEngineID = ]]]]]] )

setSecurity configures security-related session parameters used in SNMP protocol version 3

Değiştirgeler

sec_level

the security level (noAuthNoPriv|authNoPriv|authPriv)

auth_protocol

the authentication protocol (MD5 or SHA)

auth_passphrase

the authentication pass phrase

priv_protocol

the privacy protocol (DES or AES)

priv_passphrase

the privacy pass phrase

contextName

the context name

contextEngineID

the context EngineID

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Örnekler

Örnek 1 SNMP::setSecurity() example

<?php
  $session 
= new SNMP(SNMP::VERSION_3$hostname$rwuser$timeout$retries);
  
$session->setSecurity('authPriv''MD5'$auth_pass'AES'$priv_pass'''aeeeff');
?>

Ayrıca Bakınız



add a note add a note User Contributed Notes SNMP::setSecurity - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites