« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for sysdescr (0.003 sec.)
SNMP オブジェクトを取得する 12055
« SNMP::__construct SNMP::getErrno » PHP Manual SNMP SNMP オブジェクトを取得する 検索 SNMP::get (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::get — SNMP オブジェクトを取得する 説明 public function SNMP::get ( array | string $objectId , bool $preserv ... 列でリクエストすると結果は連想配列で返されます。 <?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 オブジェクトを取得する 12001
« SNMP::__construct SNMP::getErrno » PHP Manual SNMP SNMP オブジェクトを取得する 検索 SNMP::get (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::get — SNMP オブジェクトを取得する 説明 public function SNMP::get ( array | string $objectId , bool $preserv ... 列でリクエストすると結果は連想配列で返されます。 <?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
指定したオブジェクト ID に続く SNMP オブジェクトを取得する 8748
« SNMP::getError SNMP::set » PHP Manual SNMP 指定したオブジェクト ID に続く SNMP オブジェクトを取得する 検索 SNMP::getnext (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::getnext — 指定したオブジェクト ID に続く SNMP オブジェクトを取得する 説明 public ... 列でリクエストすると結果は連想配列で返されます。 <?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
指定したオブジェクト ID に続く SNMP オブジェクトを取得する 8748
« SNMP::getError SNMP::set » PHP Manual SNMP 指定したオブジェクト ID に続く SNMP オブジェクトを取得する 検索 SNMP::getnext (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::getnext — 指定したオブジェクト ID に続く SNMP オブジェクトを取得する 説明 public ... 列でリクエストすると結果は連想配列で返されます。 <?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 エージェントへのセッションを表す SNMP インスタンスを作成する 8061
« SNMP::close SNMP::get » PHP Manual SNMP リモート SNMP エージェントへのセッションを表す SNMP インスタンスを作成する 検索 SNMP::__construct (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::__construct — リモート SNMP エージェントへのセッションを表す SN ... した場合です。 例 例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 エージェントへのセッションを表す SNMP インスタンスを作成する 8061
« SNMP::close SNMP::get » PHP Manual SNMP リモート SNMP エージェントへのセッションを表す SNMP インスタンスを作成する 検索 SNMP::__construct (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::__construct — リモート SNMP エージェントへのセッションを表す SN ... した場合です。 例 例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 オブジェクトのサブツリーを取得する 7265
« SNMP::setSecurity SNMPException » PHP Manual SNMP SNMP オブジェクトのサブツリーを取得する 検索 SNMP::walk (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::walk — SNMP オブジェクトのサブツリーを取得する 説明 public function SNMP::walk ( array | string ... ." ); 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
SNMP オブジェクトのサブツリーを取得する 7265
« SNMP::setSecurity SNMPException » PHP Manual SNMP SNMP オブジェクトのサブツリーを取得する 検索 SNMP::walk (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::walk — SNMP オブジェクトのサブツリーを取得する 説明 public function SNMP::walk ( array | string ... ." ); 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