snmp - Finding mail queue using snmpwalk in php -
i want write script in php
, same snmpwalk
command in linux
. want find queue mail using that. inputs host ip address , mib
value.
the command in linux:
snmpwalk -v2c -cmta@rel@y 10.234.125.250 .1.3.6.1.4.1.9999.44.1
the result is:
iso.3.6.1.4.1.9999.44.1.4.1.2.9.47.98.105.110.47.98.97.115.104.1 = string: "45"
i want queue value result (that 45 in above example)
i read snmprealwalk , snmpget functions, didn't want.
basically, snmp walk implementation in php looks this:
<?php $a = snmpwalk("10.234.125.250", "mta@rel@y", ".1.3.6.1.4.1.9999.44.1"); foreach ($a $val) { echo "$val\n"; } ?>
Comments
Post a Comment