wwsh(1) | General Commands Manual | wwsh(1) |
NAME¶
wwsh - Warewulf command line shell interface
SYNOPSIS¶
wwsh [wwsh options] [command] [object] [command options]
DESCRIPTION¶
Welcome to the Warewulf shell interface. This application allows you to interact with the Warewulf backend database and modules via a single interface.
OPTIONS¶
wwsh options:
-d, --debug
--help
-v, --verbose
-q, --quiet
-y, --yes, --noask
COMMANDS¶
bootstrap
dhcp
events
exit
file
help
node
object
output
provision
pxe
quit
ssh
vnfs
bootstrap¶
Usage¶
wwsh bootstrap <command> [options] [targets]
Summary¶
This interface allows you to manage your bootstrap images within the Warewulf data store.
Commands¶
import
export
delete
list
(re)build
help
Options¶
-n, --name
-1
Examples¶
Warewulf> bootstrap import /path/to/name.wwbs --name=bootstrap Warewulf> bootstrap export bootstrap1 bootstrap2 /tmp/exported_bootstrap/ Warewulf> bootstrap list
dhcp¶
Usage¶
wwsh dhcp <command>
Summary¶
The DHCP command configures/reconfigures the DHCP service.
Commands¶
update
restart
help
events¶
Usage¶
wwsh events [command]
Summary¶
Control how/if events are handled.
Commands¶
enable
disable
help
file¶
Usage¶
wwsh file <command> [options] [targets]
Summary¶
The file command is used for manipulating file objects. It allows you to import, export, create, and modify files within the Warewulf data store. File objects may be used to supply files to nodes at provision time, dynamically create files or scripts based on Warewulf data and more.
Commands¶
import
export
edit
new
set
show
list
(re)sync
delete
help
Options¶
-l, --lookup
-p, --program
-D, --path
-o, --origin
-m, --mode
-u, --uid
-g, --gid
-n, --name
--interpreter
Note¶
Use "UNDEF" to erase the current contents of a given field.
Examples¶
Warewulf> file import /path/to/file/to/import --name=hosts-file Warewulf> file import /path/to/file/to/import/with/given-name Warewulf> file edit given-name Warewulf> file set given-name --origin=UNDEF --mode=0700 Warewulf> file set hosts-file --path=/etc/hosts --mode=0644 --uid=0 Warewulf> file list Warewulf> file delete name123 given-name
node¶
Usage¶
wwsh node <command> [options] [targets]
Summary¶
The node command is used for viewing and manipulating node objects.
Commands¶
new
set
list
delete
clone
help
Targets¶
The target(s) specify which node(s) will be affected by the chosen action(s). By default, node(s) will be identified by their name(s). Use the --lookup option to specify another property (e.g., "hwaddr" or "groups").
All targets can be bracket expanded as follows:
n00[0-99] All nodes from n0000 through n0099 (inclusive).
n00[00,10-99] n0000 and all nodes from n0010 through n0099.
Options¶
-l, --lookup
-1
-g, --groups
--groupadd
--groupdel
-D, --netdev
--netdel
--netrename
-I, --ipaddr
-M, --netmask
-N, --network
-G, --gateway
-H, --hwaddr
-f, --fqdn
-m, --mtu
-p, --hwprefix
-c, --cluster
--domain
-n, --name
-e, --enabled
Examples¶
Warewulf> node new n0000 --netdev=eth0 --hwaddr=xx:xx:xx:xx:xx:xx Warewulf> node set n0000 -D eth0 -I 10.0.0.10 -G 10.0.0.1 Warewulf> node set n0000 --netdev=eth0 --netmask=255.255.255.0 Warewulf> node set --groupadd=mygroup,hello,bye --cluster=mycluster n0000 Warewulf> node set --groupdel=bye --set=vnfs=sl6.vnfs Warewulf> node list xx:xx:xx:xx:xx:xx --lookup=hwaddr Warewulf> node print --lookup=groups mygroup hello group123 Warewulf> node clone n0000 new0000 Warewulf> node set --enabled=false n0000
object¶
Usage¶
wwsh object <command> [options] [targets]
Summary¶
The object command provides an interface for generically manipulating all object types within the Warewulf data store.
Commands¶
modify
delete
dump
canonicalize
help
Options¶
-l, --lookup
-t, --type
-p, --print
-s, --set
-a, --add
-D, --del
Examples¶
Warewulf> object print -p :all Warewulf> object print -p _id,name,_type
Warning¶
This command is VERY POWERFUL. It is primarily intended for. developers and power users. Please use CAREFULLY, if at all Data. stores which are corrupted by misuse of this command may not be recoverable.
USE AT YOUR OWN RISK!
output¶
Usage¶
wwsh output [command]
Summary¶
This command sets the desired command output verbosity level.
Commands¶
normal
quiet
verbose
debug
Examples¶
Warewulf> output verbose Warewulf> output normal
provision¶
Usage¶
wwsh provision <command> [options] [targets]
Summary¶
The provision command is used for setting node provisioning attributes.
Commands¶
set
list
help
Targets¶
The target is the specification for the node you wish to act on. All targets can be bracket expanded as follows:
n00[0-99] inclusively all nodes from n0000 to n0099.
n00[00,10-99] n0000 and inclusively all nodes from n0010 to n0099.
Options¶
-l, --lookup
-b, --bootstrap
-V, --vnfs
--validate
--master
--files
--fileadd
--filedel
--preshell
--postshell
--postnetdown
--bootlocal
--console
--kargs
--pxelinux
--selinux
--dformat
--dpartition
-f, --filesys
--bootloader
Examples¶
Warewulf> provision set n000[0-4] --bootstrap=2.6.30-12.x86_64 Warewulf> provision set n00[00-99] --fileadd=ifcfg-eth0 Warewulf> provision set -l=cluster mycluster --vnfs=rhel-6.0 Warewulf> provision set -l=group mygroup hello group123 Warewulf> provision set n00[0-4] --console=ttyS1,57600 --kargs="noacpi" Warewulf> provision list n00[00-99]
pxe¶
Usage¶
wwsh pxe <command> [options] [targets]
Summary¶
Manage PXE configuration.
Commands¶
update
help
Targets¶
The target is the specification for the node you wish to act on. All targets can be bracket expanded as follows:
n00[0-99] inclusively all nodes from n0000 to n0099.
n00[00,10-99] n0000 and inclusively all nodes from n0010 to n0099.
Options¶
-l, --lookup
Examples¶
Warewulf> pxe update Warewulf> pxe update n000[0-4]
ssh¶
Usage¶
wwsh ssh [nodes/targets] [command]
Summary¶
Run ssh connections to node(s) in parallel by either node names, group or any other known lookup.
Targets¶
The target(s) specify which node(s) will be affected by the chosen action(s). By default, node(s) will be identified by their name(s).. Use the --lookup option to specify another property (e.g., "hwaddr" or "groups").
All targets can be bracket expanded as follows:
n00[0-99] All nodes from n0000 through n0099 (inclusive).
n00[00,10-99] n0000 and all nodes from n0010 through n0099.
Options¶
-l, --lookup
-a, --allnodes
Examples¶
Warewulf> ssh n00[00-49] hostname Warewulf> ssh -l groups compute,interactive hostname
vnfs¶
Usage¶
wwsh vnfs <command> [options] [targets]
Summary¶
This interface allows you to manage your VNFS images within the Warewulf data store.
Commands¶
import
export
delete
list
set
help
Targets¶
The target is the specification for the VNFS you wish to operate on.
Options¶
-n, --name
-c, --chroot
-1
Examples¶
Warewulf> vnfs import /path/to/name.vnfs --name=vnfs1 Warewulf> vnfs export vnfs1 vnfs2 /tmp/exported_vnfs/ Warewulf> vnfs list
Dec 21 2017 | Warewulf 3.8 |