« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for sysDescr (0.001 sec.)
SNMP::get — SNMP オブジェクトを取得する | PHP 8.3 12316
SNMP::get (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::get — SNMP オブジェクトを取得する 説明 public function SNMP::get ( array | string $objectId , bool $preserveKeys = false ): mixed objectId で指定した SNMP オブジェクトを GET クエリで取得します。 ... 列でリクエストすると結果は連想配列で返されます。 <?php $session = new SNMP ( SNMP :: VERSION_1 , "127.0.0.1" , "public" ); $sysdescr = $session -> get ( "sysDescr.0" ); echo " $sysdescr \n" ; $sysdescr = $session -> get (array( "sysDescr.0" )); print_r ( ... $sysdescr ); ?> 上の例の出力は、 たとえば以下のようになります。 STRING: Test server Array ( [SNMPv2-MIB::sysDescr.0] => STRING: Test ... 例2 複数の SNMP オブジェクト $session = new SNMP(SNMP::VERSION_1, "127.0.0.1", "public"); $results = $session->get(array("sysDescr.0", "sysName.0")); print_r($results); $session->close(); 上の例の出力は、 たとえば以下のようになります。 Array ( [SNMPv2-M ...
https://man.mtool.work/php/8.3/snmp.get.html
SNMP::getnext — 指定したオブジェクト ID に続く SNMP オブジェクトを取得する | PH... 8691
SNMP::getnext (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::getnext — 指定したオブジェクト ID に続く SNMP オブジェクトを取得する 説明 public function SNMP::getnext ( array | string $objectId ): mixed objectId で指定したオブジェクトに続く SNMP オブジ ... 列でリクエストすると結果は連想配列で返されます。 <?php $session = new SNMP ( SNMP :: VERSION_1 , "127.0.0.1" , "public" ); $nsysdescr = $session -> getnext ( "sysDescr.0" ); echo " $nsysdescr \n" ; $nsysdescr = $session -> getnext (array( "sysDescr.0" )); ... print_r ( $nsysdescr ); ?> 上の例の出力は、 たとえば以下のようになります。 OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 Array ( [SNMPv2-MIB::sysObject ... ブジェクト <?php $session = new SNMP ( SNMP :: VERSION_1 , "127.0.0.1" , "public" ); $results = $session -> getnext (array( "sysDescr.0" , "sysName.0" )); print_r ( $results ); $session -> close (); ?> 上の例の出力は、 たとえば以下のようになります。 Array ...
https://man.mtool.work/php/8.3/snmp.getnext.html
SNMP::__construct — リモート SNMP エージェントへのセッションを表す SNMP インス... 8543
SNMP::__construct (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::__construct — リモート SNMP エージェントへのセッションを表す SNMP インスタンスを作成する 説明 public function SNMP::__construct ( int $version , string $hostname , string $community , i ... した場合です。 例 例1 ホストの物理的な位置を取得 <?php $session = new SNMP ( SNMP :: VERSION_1 , "127.0.0.1" , "public" ); $sysdescr = $session -> get ( "sysDescr.0" ); echo " $sysdescr \n" ; ?> 上の例の出力は、 たとえば以下のようになります。 STRING: Test ...
https://man.mtool.work/php/8.3/snmp.construct.html
SNMP::walk — SNMP オブジェクトのサブツリーを取得する | PHP 8.3 7397
SNMP::walk (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::walk — SNMP オブジェクトのサブツリーを取得する 説明 public function SNMP::walk ( array | string $objectId , bool $suffixAsKey = false , int $maxRepetitions = -1 , int $nonRepeaters = -1 ): arr ... ." ); print_r ( $fulltree ); $session -> close (); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [SNMPv2-MIB::sysDescr.0] => STRING: Test server [SNMPv2-MIB::sysObjectID.0] => OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 [DISMAN-EVENT-MIB::sysUpTim ...
https://man.mtool.work/php/8.3/snmp.walk.html
PREV 1 NEXT