RE: [PHP] php, snmp, and mibs
| From: | ..s.c.o.t.t.. [gts] | Date: | Tue, 08 May 2001 20:32:22 +0000 |
| Subject: | RE: [PHP] php, snmp, and mibs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51977@lists.php.net to get a copy of this message | ||
as someone else suggested... a regexp is probably the
thing you want.
since i have no idea what the format of a MIB is,
i cannot give you any example.
but to find dotted num's, use something akin to this:
preg_match_all('/(\d+)(?=\.?)/', $MIB, $matches);
> -----Original Message-----
> From: Mike Backes [mailto:herrfelix@yahoo.com]
> Sent: Tuesday, May 08, 2001 2:28 PM
> To: php-general@lists.php.net
> Subject: [PHP] php, snmp, and mibs
>
>
> Hi,
> Sorry if this is a repeat question, I just can't seem to find an answer to
> this question.
>
> I am running php4 on NT. I've been able to connect to some network equipment
> with the snmp commands, and retrieve the results. But it's the list of
> values, which can be tough to correspond to the MIB. Is there a way to get
> at least the x.x.x.x.x.x from a MIB file into an array of some kind, or even
> better, to get the object names and such into an array?
>
> Thanks for any information,
> Mike
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>