Here is the list of example classes present in
javaapi.zip and
a short description of what each one does.
- TestAbortingActivities.java
- Shows ways of cancelling a task that has been registered. This
test shows both cancelling the whole task, and cancelling the task
on only one specific task target.
- TestAbortingActivitiesForHost.java
- Shows an example of cancelling all tasks for a specific target.
- TestActRepl.java
- Shows how to run a task on a child, even
if it has been created by connecting to the parent server.
First a task template is
created on the parent server
and then it is replicated to the child workstation
by performing an object copy task. This ensures that when running
a task that uses the template, the child server
has this information. Afterward a task is scheduled that uses the task template in
question. If the target boots
off the child server,
it will not succeed unless the object copy task of the task template to
the parent server
was successful.
- TestAddRemoveHost.java
- Shows a very basic example of adding or removing targets.
- TestAgentScript.java
- Runs a Rembo-C script on an target running
the web interface extension.
- TestBlackDevAndMod.java
- Displays information that you can retrieve about black-listed
PCI devices and models.
- TestBootCDCreation.java
- Creates a bootable CD from a target running
the web interface extension.
You can use the bootable CD to start the deployment engine on a target without
using PXE.
- TestCloneFromImageFile.java
- This is an example showing capturing a cloned system profile from
a reference image. The reference file can be a Windows Vista WIM image, or a Solaris Flash
file. This is basically an example of using the Java API for what you can do using the new profile
wizard if you select the option "Cloning from a reference file". Rembo
toolkit files can also be cloned into system profiles, however for
these it's best to look at the example TestToolkitProfileCreation
- TestCloneHost.java
- This example shows how to capture a cloned system profile from
a reference workstation - Java API
equivalent to running the new profile wizard and choosing "Cloning
from a reference workstation". This is the preferred way to capture
a system profile from a target,
and should be used in place of the example class TestRBImageCaptureTemplate
- TestImageManagement.java
- Copies objects (task templates, system profiles, or software modules)
from one OS deployment server to
another. To run this test you must have multipleOS deployment servers working
together in your environment.
- TestLinuxPreboot.java
- Boots a LinPE image on a target PXE target.
- TestMultiServer.java
- Provides information about how to setup a multi-server environment.
Also shows a specific multi-boot server scenario
of creating a task template, moves it to another server, and changes
the scope so that the other server becomes the owner of the object.
- TestOpenActivity.java
- Runs an open task: this task runs once and only once on all targets that
PXE boot off the OS deployment server.
- TestPassword.java
- This test class tries connecting to the OS deployment server using
the Java API without supplying
a password - typically this is not allowed, as an APISecret (java
api password) needs to be setup in config.csv - however, if you use
the method in config.csv of supplying "APITrusted" and list the targets that
you trust, and then do not supply an APISecret - you can test that
those specific targets can
connect to the OS deployment server without
a password with this example.
- TestRADExport.java
- Exports object(s) to a RAD file using the Java API.
- TestRADImport.java
- Imports a RAD file using the Java API.
- TestRBCustomTemplate.java
- Runs a custom Rembo-C script on a PXE target.
- TestRBCustomTemplateUsingVariant.java
- Similar to TestRBCustomTemplate, but also demonstrates
the use of a variant to override parameters from the template during
task registration without modifying the template itself.
- TestRBDeviceBlankingTemplate.java
- Performs military grade device blanking of a hard drive on a
PXE target.
Note: Run
this test with caution as it blanks disks.
- TestRBEvents.java
- Monitors events: you can run this test while other tests are running
to monitor their progress.
- TestRBHosts
- Illustrates some properties of RBHost that can
be gathered with the Java API.
- TestRBImageCaptureTemplate.java
- Refer to the TestCloneHost.java example for details.
- TestRBLogFileLines.java
- This class shows some examples of how to retrieve the contents
of log files from the OS deployment server through
the Java API.
- TestCloneHost.java
- Creates a system profile cloned from a reference computer ( a
PXE target).
- TestRBOSDeployment.java
- Deploys an OS configuration to
a PXE target with
some customization.
- TestRBOSRestoreTemplate.java
- Restores a system profile to a PXE target.
- TestRBPrebootExecuteTemplate.java
- Boots a DOS image on a PXE target.
- TestRBServerConfig.java
- Displays information about the OS configuration of
the OS deployment server that
you can retrieve and modify using the Java API.
- TestRBServerReset.java
- Restarts the OS deployment server through
the Java API.
- TestRBServerStatus.java
- Gets the status of the OS deployment server through
the Java API.
- TestSoftwareComponentCreation.java
- Creates software modules using
the Java API.
This example requires a target running
the web interface extension.
- TestStress.java
- Runs many tasks and does inefficient polling to put a heavy load
on the OS deployment server.
- TestStressSmart.java
- Shows a better method than TestStress.java for
event polling.
- TestSubnets.java
- This test shows some of the subnet information available using
the Java API, and how to probe
the subnet again for multicast capability, change the multicast status
and so on.
- TestToolkitProfileCreation.java
- Creates a system profile from an already existing Rembo Toolkit
image.
- TestUnattendedProfileCreation.java
- Creates an unattended system profile from CD/DVD media.
- TestWinPE.java
- Boots a WinPE image on a PXE target.
- TestWinPE2.java
- Boots a WinPE2 image on a PXE target
- TestWinPE2Update.java
- This example shows how to update drivers in an existing WinPE2
image.