yum install aims2clientSRPMs can be found on AFS
/afs/cern.ch/project/linux/dev/aims2project/client/
aims2client --helpFor more detailed information, execute either of the following.
man aims2client perldoc aims2client
klist
. If you have no Kerberos credentials, then you should run kinit
.
If you have not done so already, please install the Perl Kerberos 5 libraries and run kinit
again.
If you experience problems with Kerberos, please contact Linux.Support@CERNNOSPAMPLEASE.CH
EGROUP_LINUXSUPPORT
) will be have permission to interact with any Linux device.
Linux Support cannot be used for all interactions with devices. This feature is merely enabled to help resolve problems quickly.
EGROUP_SYSADMINS
), permission is granted.
LXPLUS204
the Network Database lists the RESPONSIBLE as fs.administrator@cern.ch
. In this example, this maps to a service account so it is unlikely that the user will be the FS Administrator. The entry fs.administrator.cern.ch
has been defined in AIMS as mapping to two e-groups, it-fio-dep-fs
and it-fio-dep-fd
. Should the user requesting the installation be defined in either of these e-groups, permission will be granted.
To define a new e-group relationship, please contact Linux.Support@CERNNOSPAMPLEASE.CH with the RESPONSIBLE/MAIN USER and the name(s) of the e-group(s) to map. Please be aware that due to technical limitations with the e-groups interface this mapping may take between 24-48 hours to fully propagate.
--egroups
options. This is discussed later.
aims2client addhost lxplus204
To register the device LXPLUS204 with a Kickstart file:
aims2client addhost lxplus204 --kickstart /afs/cern.ch/project/linux/lxplus204.ks
To provide Anaconda/Kernel append options for your device:
aims2client addhost lxplus204 --kopts "ksdevice=bootif ramdisk_size=36000"
To display information about LXPLUS204:
aims2client showhost lxplus204
To display information about ALL registered lxplus nodes:
aims2client showhost lxplus*
To remove LXPLUS204:
aims2client remhost lxplus204
To show the Kickstart file for LXPLUS204:
aims2client showks lxplus204
To sync the Kickstart file for LXPLUS204:
aims2client updateks lxplus204
To update the Kickstart file for LXPLUS204:
aims2client updateks lxplus204 --kickstart /new/kickstart/path
To enable lxplus204 for installation with SLC5 x86_64:
aims2client pxeon lxplus204 SLC5_x86_64
To display information about SLC5_x86_64:
aims2client showimage slc5_x86_64
To see what else is available for installation:
aims2client showimage all
aims2client addhost HOSTNAME [--kickstart=S] [--kopts=S] [--pxe] [--name=S]To register your host for installation, you must provide the HOSTNAME of the device as given in the Network Database. AIMS2 will then register each interface (hardware address) that is listed in the network database for that HOSTNAME. Only interfaces that are registered should be able to obtain DHCP leases on the CERN network. Should you provide the name of an INTERFACE ALIAS, only the hardware address(es) for that interface will be registered. To provide a Kickstart file for your installation you should use the
--kickstart PATH
option, where PATH
is either a http:// source, somewhere readable (by linuxsoft.cern.ch) within /afs/cern.ch/, − (STDIN) or a local file. The following examples are valid PATHs:
−−kopts
option.
A useful example of using sing the --kopts
option is when your device has multiple network interfaces but you are not sure which one has a cable connected or which one is being raised first. During an the installation of a RedHat based image, if Anaconda is unable to decide which interface to use for the installation, you can provide the option ksdevice=eth0
which instructs Anaconda to use interface eth0
for its installation. Other options for this command include bootif
which selects the interface used to boot the vmlinuz/initrd, link
which is the first interface found with a link established or the MAC address of the interface. Not providing this option to a multiple interface device will cause Anaconda to stop until the user selects the correct interface to use, thus your installation will not be as automated as you would have hoped.
You can also use Anaconda options to redirect the installation output, such as to a serial console. For example, the following options could be used.
console=ttyS0,9600 console=ttyS1,9600 console=tty0The following links provide more information on the available Anaconda options. The magic variable IPAPPEND 2 for use with BOOTIF is set by default.
addhost
command, if you provide the -pxe
and -name=NAME
options your device will be enabled for installation using the PXE target NAME
. If you do not provide this options the PXE state of your device will not change. To enable the device, see the pxeon
command later on this page.
aims2client addhost lxplus[204-209] --kickstart lxplus_example.ks --kopts "ksdevice=bootif cmdline"The client will parse
lxplus[204-209]
and the result will be devices lxplus204 through to lxplus209 being registered with same Kickstart file and Kernel append options.
aims2client remhost --hostname=STo remove (de-register) a host from the installation database you should use the
remhost
command, provide the HOSTNAME of the device.
aims2client showhost HOSTNAMETo show information about a particular host, you can use the
showhost
command, providing the HOSTNAME
of the device.
The server will return the results for each interface it has registered for that host. The information contained in the reply includes the interface address, the PXE status of the host, the PXE image to be provided to the host (if defined), Anaconda options which should be passed at work and some time stamp information to create an audit trail.
It should be possible to use the client to build an exact audit trail of the host, from when it was registered, booted, downloaded it’s Kickstart and installed successfully.
HOSTNAME
supports basic wildcards. Consider the following example
showhost --hostname lxb67*
Please note, in some terminals it is necessary to escape * with either \* or "*"
aims2client showks HOSTNAMEThe
showks
command will print to STDOUT the Kickstart file, if register, for HOSTNAME
Also displayed is where the Kickstart file was sourced from, who by and when.
aims2client updateks HOSTNAME --kickstart [SOURCE]If only
HOSTNAME
is provided, AIMS will update the Kickstart file from the previously given source. If the Kickstart was previously uploaded through the client and not linked too, the Kickstart cannot be updated through this method unless SOURCE
is provided. The same rule applies if no Kickstart has been defined.
If SOURCE
is provided, the Kickstart file is updated from SOURCE
Please refer to to the addhost
command for valid SOURCE
options.
addimage --name=S --arch=S --description=S --vmlinuz=S [--initrd=S] [--kopts=S] [--egroups=S]The option
--name=NAME
is for the name (alias) of your PXE boot media. When defining a name for you media, try to use the distro-arch combination and try to use a name which is meaningful to other users.
Options --initrd=path
and --vmlinuz=path
refer to the file system locations of your image and kernel respectively. These locations must be readable by the AIMS2 servers. Some users choose to use their AFS public/scratch directories.
If you want to check the uploaded boot media files, please refer to:
--kopts
option.
These options will then be used when installing this media. An example is the providing of noipv6
for Scientific Linux 5. It's OK to duplicate options on images and hosts, as AIMS will weed out the duplicate entries for you. AIMS will not however check that your options are syntactically correct. It is presumed you have read the appropriate documentation on your Kernel and know what you are doing to some degree. A common example is:
--kopts="ramdisk_size=36000 noipv6 ksdevice=link"
--egroups
option where your e-groups should be comma separated. For example:
--egroups="egroup-name1,egroup-name2,egroup-name3"These e-groups should then be defined through the CRA interface. Only yourself and those inside these groups will be able to deploy devices using this media. If not e-groups are defined, your PXE media will be available for user by any user.
aims2client remimage NAMETo remove PXE boot media from AIMS, using the
remimage
command providing the NAME
of the media.
You can only remove PXE boot media if you are the owner or a member of Linux Support.
aims2client showimage NAMETo display information about PXE boot media,
NAME
is the name of the PXE boot media. The results returned are ordered as follows:
name, architecture, kernel append options, descriptionTo display more information about PXE boot media add the
-ALL
or -FULL
options as per the example
aims2client showimage slc4X_i386 -ALLThe additional information displayed, extending the above is:
source of Kernel, md5sum, size (kb), source of initrd, md5sum, size (kb), e-groups, owner, upload time-stamp
NAME
can also be provided with basic wildcards. Consider the example below.
showimage slc5*This will return PXE boot media whose name begings with
slc5
Please note, in some terminals it is necessary to escape * with either \* or "*"
aims2client pxeon HOSTNAME NAMETo enable PXE boot for a device use the
pxeon
command. This command takes two options, the HOSTNAME
you are enabling and the NAME
of the PXE boot media you wish to use.
If you want to check the generated configuration for your enabled interface, please refer to:
showimage
command. The following example will show all the PXE boot targets available.
aims2client showimage \*If you just wanted to see what SLC5 targets are available you would execute
aims2client showimage slc5*
aims2client pxeoff HOSTNAMETo disable PXE boot for a device, use the
pxeoff
command providing the HOSTNAME
of the device. Disabling PXE for your device will set your device to localboot, thus no PXE menu will be available until you remove the device from AIMS or re-add it using the addhost
command.
-v(erbose)
option will instruct the client to provide verbose to STDOUT. Verbose is disabled by default.
--server
option is available. For example:
aims2client --server=ISLINKY.CERN.CH addhost SLINKY