开发者

How can I dump a loaded mib out of PHP

开发者 https://www.devze.com 2022-12-26 23:42 出处:网络
I loaded a mib into PHP with a ton of OIDs. I\'d like some way to dump those out and run开发者_如何学运维 through them. I didn\'t find any way on the php website docs to do that.If you loaded it into

I loaded a mib into PHP with a ton of OIDs. I'd like some way to dump those out and run开发者_如何学运维 through them. I didn't find any way on the php website docs to do that.


If you loaded it into a PHP variable you can dum it via

print_r($var);

If not: Could you provide some code, so we can see how you load them into PHP?


try the SNMP extension.

there is a function called snmp_read_mib which could be the right for you.

i think the package is called php5-snmp.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号