From 542d3e795f8366d58de8311efa3d422e52a3d430 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 11 Jul 2008 13:19:22 +0000 Subject: [PATCH] Updated client script with opsi calls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11611 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/tests/client.php | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) 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(); -- 2.30.2