FOG Sql
-
hi!
How can i properly remove a host and all others files( Adress Mac, Serial number, β¦) in fog with sql request ?
-
there are two ways.
mysql use fog truncate table hosts; truncate table hostMAC;
mysql use fog delete from table hosts where 1; delete from table hostMAC where 1;
-
thaks.
-
Hello,
Why when I delete a hots on fog 1.2.0 in GUI, all the table with a hosts are not delete ?
For example in table inventory when a host is delete, this is not delete in the inventory table and another table why ?
I think when a host is deleted, the host must be deleted in the following table :
hosts, hostmac, greenfog, groupmembers, hostautologout, hostscreensetting, inventory, modulestatusbyhosts, nfsfailures, pendingmacs, printerassoc, sheduledTasks,snapinassoc, snapinjob, usertracking, imaginlog.We delete a host with a script python with with url : βhttp://localhost/fog/management/index.php?node=host&sub=delete&id=%sβ
Where β%sβ is a hostid.Sorry for my bad english.
-
@jc35 We should ask the @Developers to see if this is done in the current Trunk versions or not, letβs see what they say.
-
@Wayne-Workman YUP.