From: cajus Date: Fri, 11 Jul 2008 13:19:22 +0000 (+0000) Subject: Updated client script with opsi calls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=542d3e795f8366d58de8311efa3d422e52a3d430;p=gosa.git Updated client script with opsi calls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11611 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index bcf4ced0d..2ca8ffae4 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -33,7 +33,7 @@ for($count = 1; $count <= $zahl; $count++) # jobdb update #$data = "
gosa_update_status_jobdb_entry
GOSA GOSA 1 19700101000000
"; - $data = "
gosa_update_status_jobdb_entry
GOSAGOSA 00:01:6c:9d:b9:fa processing update
"; + #$data = "
gosa_update_status_jobdb_entry
GOSAGOSA 00:01:6c:9d:b9:fa processing update
"; # jobdb query #$data = "
gosa_query_jobdb
GOSA GOSAandgt0le5
"; @@ -114,6 +114,41 @@ for($count = 1; $count <= $zahl; $count++) #$data = "
gosa_network_completition
GOSA GOSA localhost
"; + ######## + # Opsi testing + + # Get all netboot products + #$data = "
gosa_opsi_get_netboot_products
GOSA 00:01:6c:9d:aa:16
"; + + # Get netboot product for specific host + # --> + #$data = "
gosa_opsi_get_netboot_products
GOSA 00:01:6c:9d:aa:16 limux-cl-2.intranet.gonicus.de
"; + + # Get all localboot products + $data = "
gosa_opsi_get_local_products
GOSA 00:01:6c:9d:aa:16
"; + + # Get localboot product for specific host + #$data = "
gosa_opsi_get_local_products
GOSA 00:01:6c:9d:aa:16 limux-cl-2.intranet.gonicus.de
"; + + # Get product properties - global + $data = "
gosa_opsi_get_product_properties
GOSA 00:01:6c:9d:aa:16 winxppro
"; + + # Get product properties - per host + #$data = "
gosa_opsi_get_product_properties
GOSA 00:01:6c:9d:aa:16 firefox limux-cl-2.intranet.gonicus.de
"; + + # Set product properties - global + #$data = "
gosa_opsi_set_product_properties
GOSA 00:01:6c:9d:aa:16 winxppro askbeforeinstfalse
"; + + # Set product properties - per host + #$data = "
gosa_opsi_set_product_properties
GOSA 00:01:6c:9d:aa:16 limux-cl-2.intranet.gonicus.de winxppro askbeforeinstfalse
"; + + # Get hardware inventory + #$data = "
gosa_opsi_get_client_hardware
GOSA 00:01:6c:9d:aa:16 limux-cl-2.intranet.gonicus.de
"; + + # Get software inventory + #$data = "
gosa_opsi_get_client_software
GOSA 00:01:6c:9d:aa:16 limux-cl-2.intranet.gonicus.de
"; + + $sock->write($data); $answer = "nothing"; $answer = $sock->read();