Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 8:20 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Mon May 12, 2008 11:45 pm 
Offline
Newbie

Joined: Sun Aug 06, 2006 7:44 am
Posts: 9
I use the "PDF-Report (Full)" function of OpenAudIT as part of my Disaster Recovery plan. The information it provides is outstanding, and the format is fantastic.

I work in a rather small environment(~15 servers) and would love to be able to have the system report ran for all of the servers with a single command. My php skills are sorely lacking... Here is the snippet of code in the script that i think needs be modified:

[code]//Get the pc's to display
//actually only one
if(isset($_REQUEST["pc"]) AND $_REQUEST["pc"]!=""){
$pc=$_REQUEST["pc"];
$_GET["pc"]=$_REQUEST["pc"];
$sql = "SELECT system_uuid, system_timestamp, system_name FROM system WHERE system_uuid = '$pc' OR system_name = '$pc' ";
$result = mysql_query($sql, $db);

$i=0;
if ($myrow = mysql_fetch_array($result)){
do{
$systems_array[$i]=array("pc"=>$myrow["system_uuid"],
"system_timestamp"=>$myrow["system_timestamp"],
);
$i++;
}while ($myrow = mysql_fetch_array($result));
}
}else{
$systems_array[0]=array("pc"=>"","system_timestamp"=>"",);[/code]

It appears that the looping code is in place, it just needs to be modified to loop through a group of machines. Is this something that would be easy to do? Can someone point me in the right direction to make this happen?



Thanks in advance for any advice :)



jonz


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group