';
+
+ echo ' | ';
+ echo ''.substr($c['location'],0,3).' | ';
+ echo ' | ';
+ echo '#'.$c['serial'].' | ';
+ echo ''.$c['hostname'].' | ';
echo ''.$c['ip'].' | ';
if($c['mtime']) { echo ''.date('Y-m-d, H:i:s',$c['mtime']).' | '; }
//if($c['mtime']) { echo ''.$c['mtime'].' | '; }
- else echo ' | ';
+ else echo ' | ';
- if($c['online'])
+ if($showversion=='on')
{
- if($showversion=='on')
- {
- $pubkey = mysql_query('select public_key from ssh_auth_clients where serial='.$c['serial'].'');
- while ($row = mysql_fetch_row ($pubkey)) {
-
- # schreiben der .ssh/known_hosts file mit dem public rsa key des client,
- # um die "yes" abfrage zu vermeiden
- $hostfile = fopen ($home."/.ssh/known_hosts","w");
- fwrite($hostfile,$c['ip']." ".$row[0],strlen($row[0])+strlen($c['ip'])+1);
- fclose($hostfile);
-
- $osver = exec($sshcmd.' '.$c['ip'].' \'os_ver=$('.$osver[0].'';
- echo ''.$osver[1].' | ';
- }
+ // get alx version info for
+ $alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$c['serial']);
+ $alxver = $alxinfo[os];
+ $alxutils = $alxinfo[utils];
+
+// if( $alxver == '')
+// {
+// if($c['online'])
+// {
+// //$alxinfo = @sshdo('os_ver=$('.$alxver.'';
+ echo ''.$alxutils.' | ';
}
echo '';
- if($c['online'])
- {
- echo '';
- echo '';
- echo '';
+ if($c['online'])
+ {
+ echo '';
+ echo '';
+ echo '';
+ echo '';
}
- else echo '';
+ else echo '';
echo ' | ';
- echo '
';
- }
- echo '