7.8. remove

7.8.1. remove appliance

rocks remove appliance {name}

Remove an appliance definition from the system. This can be called with just the appliance or it can be further qualified by supplying the root XML node name and/or the graph XML file name.

arguments

name

The name of the appliance.

examples

# rocks remove appliance compute

Removes the compute appliance from the database.

7.8.2. remove distribution

rocks remove distribution {distribution}

Remove a distribution specification from the database.

arguments

distribution

Distribution name.

examples

# rocks remove distribution rocks-optiputer

Removes the distribution named "rocks-optiputer" from the database.

7.8.3. remove host

rocks remove host {host...}

Remove a host from the database. This command will remove all related database rows for each specified host.

arguments

host

List of hosts to remove from the databavse.

examples

# rocks remove host compute-0-0

Remove the compute-0-0 from the database.

7.8.4. remove host bootflags

rocks remove host bootflags {host...}

Remove the kernel boot flags for a list of hosts.

arguments

host

List of hosts to remove kernel boot flag definitions. If no hosts are listed, then the global definition is removed.

examples

# rocks remove host bootflags compute-0-0

Remove the kernel boot flags definition for compute-0-0.

7.8.5. remove host interface

rocks remove host interface {host} {iface} [iface=string]

Remove a network interface definition for a host.

arguments

host

One or more named hosts.

iface

Interface that should be removed. This may be a logical interface or the mac address of the interface.

parameters

[iface=string]

Can be used in place of the iface argument.

examples

# rocks remove host interface compute-0-0 eth1

Removes the interface eth1 on host compute-0-0.

# rocks remove host interface compute-0-0 compute-0-1 iface=eth1

Removes the interface eth1 on hosts compute-0-0 and compute-0-1.

7.8.6. remove host partition

rocks remove host partition {host...} [partition=string]

Remove a partition definitions from a host.

arguments

host

A list of one or more host names.

parameters

[partition=string]

A single partition to remove from this host. If no partition is specified, then all partitions from the host are removed.

examples

# rocks remove host partition compute-0-0

Remove all partitions from compute-0-0.

# rocks remove host partition compute-0-0 partition=/export

Remove only the /export partition from compute-0-0.

7.8.7. remove host pxeaction

rocks remove host pxeaction {host...} [action=string]

Remove a pxeaction specification for a list of hosts.

arguments

host

List of hosts to remove pxeaction definitions. If no hosts are listed, then the global definition that matches the 'action=name' is removed.

parameters

[action=string]

The label name for the pxeaction. You can see the pxeaction label names by executing: 'rocks list host pxeaction'.

examples

# rocks remove host pxeaction compute-0-0 action=os

Remove the 'os' pxeaction for compute-0-0.

7.8.8. remove host pxeboot

rocks remove host pxeboot {host...}

Removes the PXE boot configuration for a host

arguments

host

One or more named hosts.

examples

# rocks remove host pxeboot compute-0-0

Removes the PXE boot configuration for host compute-0-0.

# rocks remove host pxeboot compute-0-0 compute-0-1

Removes the PXE boot configuration for hosts compute-0-0 and compute-0-1.

7.8.9. remove network

rocks remove network {network...}

Remove network definition from the system. If there are still nodes defined in the database that are assigned to the network name you are trying to remove, the command will not remove the network definition and print a message saying it cannot remove the network.

arguments

network

One or more network names.

examples

# rocks remove network private

Remove network info for the network named 'private'.

7.8.10. remove var

rocks remove var {service} {component} [appliance=string] [component=string] [service=string]

Removes variables in the Rocks key/value database. Variables are defined as a quad of (Appliance, Service, Component, Value). Within a node XML file, values can be retrieved as <var name="Service_Component"/>.

arguments

service

The 'service' of the variable to remove.

component

The 'component' of the variable to remove.

parameters

[appliance=string]

If supplied, remove the Service_Component variable that is associated with this appliance.

[component=string]

Can be used in place of component argument.

[service=string]

Can be used in place of service argument.

examples

# rocks remove var service=Condor component=Master

Remove the variable Condor_Master from the database.

# rocks remove var service=Condor component=Master appliance=compute

Remove the variable Condor_Master that is associated with the compute appliance.