もし(のsnmpwalk(の$ this - > host_address。 ':'。!の$ this - >ポート、ます$ this->コミュニティ、 '1.3.6.1.4.1.140.625.360.1.65')= FALSE)
{
の$ this - > data_fetched =「はい」。
$データ=のsnmpwalk(。。の$ this - > host_address ':'の$ this - >ポート、ます$ this->コミュニティ、 '1.3.6.1.4.1.140.625.360.1.65');
//ますprint_r($データ)。
IF(STRLEN($データ[0])== 0)
{
$データ[0] = '<スパンID = "no_data_received">データなし</スパン>を受信していません'。
}
他
{
($データ[0] == 'STRING:')であれば
{
$データ[0] = '<スパンID = "no_data_received">データが受信されない</スパン>';
}
他
{
IF(substr_count($データ[0]、 'STRING: ')> 0)
{
$データ[0]のsubstr($データ[0]、strlenを('文字列を' =($データstrlenを、)[0 ]))。
}
他
{
$データ[0] = $データ[0]。
}
$ data_lower = strtolower($データ[0])。
//ますprint_r($のdata_lower)。
(substr_count($のdata_lower、 'のWebLogic')> 0)であれば
{
の$ this - > OPERATING_SYSTEM = 'のWebLogic'。
}
IF(substr_count($ data_lower、 '8.1')> 0)
{
の$ this - >バージョン= '8.1'。
}
IF(substr_count($ data_lower、「10.3.6.0 ')> 0)
{
の$ this - >バージョン= '10 .3.6.0'。
}
(substr_count($のdata_lower、 '10.3.3.0')の場合>
}
IF(substr_count($ data_lower、 '10.3 ')> 0)
{
の$ this - >バージョン= '10 .3'。
}
//プリントます$ this->バージョン。
}
}
}
PHP SNMPは、コードセグメントのWEBLOGICのバージョン番号を取得します
おすすめ
転載: blog.csdn.net/allway2/article/details/94611406
ランキング