snmp in PHP
| From: | sonia at metanetworks dot org | Date: | Thu, 28 Sep 2000 22:09:00 +0000 |
| Subject: | snmp in PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17978@lists.php.net to get a copy of this message | ||
Can anyone help me in using SNMP in PHP code?
I have the perl script working. But I don't know how to do the equivalent
thing in PHP. I have been searching on the web for an hour. Unfortunately
I haven't found anything helpful.
In my perl script, I have something like this:
my $sess = new SNMP::Session ( DestHost => $host, Community => $comm,
RemotePort => $port );
my $vars = new SNMP::VarList([USER],[SYSTEM],[INFO]);
for (@vals = $sess->getnext($vars); ...) {
print("vals[0] vals[1] vals[2]");
}
thank you
---Sonia