[PHP] PHP SNMP

2006-05-23 Thread Pavleck, Jeremy D.
Greetings, Seem to have a bit of a problem I can't figure out. I'm trying to query servers via SNMP with PHP's snmpget function. Everything seems to work fine, no problems at all - except I'd like the web page to print the string value instead of the numeric value (I.E. OK for the Compaq Drive

[PHP] Going through 2 arrays at once

2006-05-23 Thread Pavleck, Jeremy D.
Greetings, PHP Rookie here with a quick question - how do I go through 2 arrays at once with different keys? I'd like to combine these 2 arrays into one: for ( $i = 0; $i sizeof($logicalDrive); $i++) { echo $arrLogDrive[$i]br /\n; } for (reset($logicalDrive); $i =

RE: [PHP] Going through 2 arrays at once

2006-05-23 Thread Pavleck, Jeremy D.
, Jeremy D. Cc: PHP LIST Subject: Re: [PHP] Going through 2 arrays at once Pavleck, Jeremy D. wrote: how do I go through 2 arrays at once with different keys? for ( $i = 0; $i sizeof($logicalDrive); $i++) { echo $arrLogDrive[$i]br /\n; } for (reset($logicalDrive); $i = key

[PHP] Escaping double quotes

2006-05-25 Thread Pavleck, Jeremy D.
So I'm writing this page (PHP Newbie here) and it checks to see if a var is set, if it isn't it spits out the form info like so: echo form action=myform.php method=post; Now is there a way to 'wrap' that so I don't have to escape quotes? Something like perls 'qq' function is what I'm looking for.

[PHP] Best way to handle multiple snmpgets

2006-05-26 Thread Pavleck, Jeremy D.
Greetings, I'm creating a more or less 'dashboard' where people can enter the server name, then I'll snmpget a bunch of different oids and show the status of the device. Now the problem is snmpget doesn't allow multiple OIDs in one go, so I have to snmpget(server, community, oid1);,

[PHP] Long one here, but hopefully someone took their Adderall

2006-05-30 Thread Pavleck, Jeremy D.
I also have a strong suspicion this webmail will be sending this HTML formatted, so I apologize in advance. Anyway, here it goes! Greetings All! I'm trying to build a webpage that will pull out server information using snmpget and snmpwalkoid, among other things. Most of the things I poll are