camera(8) — HP DCE
NAME
camera - create a shar file which contains a snapshot of the hardware and software state of a node.
SYNOPSIS
camera [-s sharfile_pathname] [-f config_file_pathname] [-d snapshot_dir_pathname] [-u]
camera -e snapshot_dir_pathname -s sharfile_pathname [-u]
OPTIONS
-s sharfile_pathname
Direct snapshot output to a shar file is also created in the same directory as the shar file. The file specified by sharfile_pathname should not exist before you run camera. The default sharfile output pathname is /opt/dcelocal/hpcamera/snapshots/snaptimestamp.shar.
-d snapshot_dir_pathname
Preserve snapshot directory and store it at the location specified by snapshot_dir_pathname. The directory specified by snapshot_dir_pathname should not exist before you run camera. By default the snapshot directory is not preserved.
-f config_file_pathname
Read snapshot description file specified by config_file_pathname. The default snapshot description file is /opt/dcelocal/hpcamera/etc/snapshot.des.
-uDo not validate UNIX utilities. By default, camera verifies that the UNIX utilities it needs (shar, find, getopt, etc.) are operational before it invokes diagnostic programs. Once camera runs successfully on a given system, you probably don’t need to validate utilities again. Therefore, you can use -u to improve performance on subsequent runs.
-e snapshot_dir_pathname
Create a shar file from an existing snapshot directory specified by snapshot_dir_pathname. When -e is specified, no snapshot will be created and no diagnostic tools will be run. Use -e only if you want to create a shar file from a previously created snapshot. When you use -e, you must also specify an output file with the -s option.
DESCRIPTION
camera is an execution and control environment for running a series of diagnostic tools on a single machine. In effect, it takes a snapshot of the hardware and software state of the machine. By default, the output goes to a temporary directory that is converted to a shar file for easy mail transfer. The shar file is put in /opt/dcelocal/hpcamera/snapshots along with a log file. After the shar file is created, the temporary output directory is removed. However, you can preserve the temporary output directory by using the -d snapshot_dir_pathname option. camera reads a snapshot description file that specifies which tools to run, their execution order, and the location of their output. The location of the default snapshot description file is /opt/dcelocal/hpcamera/etc/snapshot.des. You can specify a different snapshot description file by using the -f config_file_pathname option. For more information see the manpage, snapshot.des(4).
EXAMPLES
The following example creates and preserves the output directory in /tmp/snapshot.dir and creates a shar file in /tmp/snapshot.shar:
camera -s /tmp/snapshot.shar -d /tmp/snapshot.dir
The following example creates a second shar file, /tmp/snapshot2.shar, from the existing snapshot directory /tmp/snapshot.dir:
camera -e /tmp/snapshot.dir -s /tmp/snapshot2.shar
AUTHOR
camera was developed by HP.
FILES
/usr/bin/cameracamera executable
/opt/dcelocal/hpcamera/etc/snapshot.des
default snapshot description file
/opt/dcelocal/hpcamera/scripts/*
HP-supplied diagnostic scripts
SEE ALSO
Hewlett-Packard Company — HP DCE/9000 Version 1.2