search cancel

GhostCast Server command-line options

book

Article ID: 151797

calendar_today

Updated On:

Products

Ghost Solution Suite

Issue/Introduction

You want to know which switches I can use with the GhostCast Server.

Resolution

You can run the Symantec GhostCast Server from the command line by including switches with C:\Program Files\Symantec\Ghost\ghostsrv.exe. Use a batch file or third-party scheduler application to start the server.

The syntax for running GhostCast Server is as follows: ghostsrv filename session [options]

Below you find the available switches for the GhostCast Server.

Please note that the variable within the brackets has to be replaced with the desired number rather than being added to the command.

Example: If you want to set the GhostCast Server to wait for 10 clients, it would be -N10 and not -Ncount10!

Switch
Description
-N Starts the GhostCast transmission after N count clients have joined the session.
-T Starts sending to a session automatically after a specified time (24-hour hh:mm format) with a maximum of 24 hours.
-O Starts transmission minutes after the last client connection.
-L Creates a log file specifying log level E, S, W, I, or A.

The log level X can be E (errors), S (statistics), W (warnings), I (information), or A (all) in increasing order of logging detail.

-F Specifies log file name for the -L option and is by default, Ghostlog.txt.
-C Closes ghostsrv application after GhostCast session completion.
-D Uses create from client mode. Restore to client is the default.
-R Restarts the GhostCast session on completion and waits for client connections again after GhostCasting is complete.
-P Specifies partition mode operation. If restoring to clients, the partition number must be given. If creating an image from client, no partition number is required.
-U Forces the multicast mode, as follows:
    • -UM (Multicast)
    • -UU (Unicast)
    • -UD (Directed Broadcast)
-M Sets the multicast address to xxx.xxx.xxx.xxx. Addresses between 224.0.2.0 - 239.255.255.255 are valid.
-M Specifies a range of multicast addresses. The address is chosen from within this range. Addresses between 224.0.2.0 - 239.255.255.255 are valid.
-DISK Specifies the client disk number to which to restore or create the image file.
-PART Specifies the client partition number to which to restore or create the image file.
-G Specifies switches to include in the command line and those used by the Ghost application.
-HL Sets the maximum amount of bandwidth consumed while restoring an image, where xxx is the number of megabytes per minute.
-HD Sets the maximum amount of bandwidth consumed while creating an image, where xxx is the number of megabytes per minute.
-TTL Sets the multicasting time to live.


Example 1.  Launches GhostCast Server session 123 to restore image.gho to disk one of a machine after 3 machines connect to session 123.

ghostsrv.exe c:\image.gho 123 -Disk1 -N3

Example 2. Launches GhostCast Server session 124 to create an image named image.gho of disk 1 when a machine connects to session 124.

ghostsrv.exe c:\image.gho 124 -Disk1 -D


Attachments

GhostCast.chm get_app