9 More Discussions You Might Find Interesting
1. Programming
What's the difference between BEGIN TRANSACTION vs START TRANSACTION?
Also goes for COMMIT TRANSACTION vs COMMIT? (0 Replies)
Discussion started by: dan139
0 Replies
2. Shell Programming and Scripting
Hi all
I need to count files on a daily basis and send the output via email, what I am currently doing its simply running the following:ls -lrt *.cdr | awk '{if(($6 == "Jul") && ($7 == "13")) print $0}' | wc -l, which in this case it will count all files with extension "cdr" from the month of... (13 Replies)
Discussion started by: fretagi
13 Replies
3. Shell Programming and Scripting
Hi!
Please I need help on the a script that would pick one file in a directory, change its name, them change its permissions, them move to a different directory, but has to be done on a daily basis, and the file that is being moved to its final destination has to have the following format:... (7 Replies)
Discussion started by: fretagi
7 Replies
4. UNIX for Dummies Questions & Answers
Hi Gurus,
Is there any solution for tracking the script(.sh) files triggered on daily or monthly basis from source - Datastage (Routines)
Needs to find out if this scripts are running on daily
just want to know that is there anything to track
Thanks in Advance (2 Replies)
Discussion started by: SeenuGuddu
2 Replies
5. UNIX for Advanced & Expert Users
Hi with the help of Gabriel canepa, i have just edited filename only in his code. The help which i got and he helped is
1) I have around 22 logs and each log should be updated in the last 24 hours from the current timestamp.
2) It should check for ERROR message (not error,Error) in the log and... (2 Replies)
Discussion started by: Kalaihari
2 Replies
6. Shell Programming and Scripting
Need help on this script.
the month is not changing to February...
#!/bin/bash
for X in `seq 1 100`
do
DATE=`date +%Y-%m-%d "--date=${X} day ago"`
Y=`date +%Y`
M=`date +%m`
D=`date +%d "--date=${X} day ago"`
DIR=/home/LogBackup
for i in `seq 1 `
do
if ;then
# ... (1 Reply)
Discussion started by: alelee
1 Replies
7. AIX
Hi!
Can anyone help me on how I can do a basic check on the Unix filesystems / physical volumes and logical volumes?
What items should I check, like where do I look at in smit? Or are there commands that I should execute?
I need to do this as I was informed by IBM that there seems to be... (1 Reply)
Discussion started by: chipahoys
1 Replies
8. Shell Programming and Scripting
I need to zip all the files within a directory on a daily basis and store them as a zip file within that directory with the date in its naming convention
I have file extentions .log .lst and .out's within that directory
How do i do this task
zip -mqj mydir/allzip$YYMMDDDD.zip mydir/*.*
... (5 Replies)
Discussion started by: ramky79
5 Replies
9. HP-UX
HI all,
I've been having issues with printers and plotters disabling with no reason at all...It could happen to the same workstation once a day or once a week..There is nothing consistant..I stop and restart the spooler, only then can I re-enable the disabled printer....
If anyone is... (0 Replies)
Discussion started by: Shutdown
0 Replies
AMLABEL(8) System Administration Commands AMLABEL(8)
NAME
amlabel - label an Amanda tape
SYNOPSIS
amlabel [--barcode barcode] [--meta meta-label] [--assign] [-f] [--version] [-o configoption...] config [label] [slot slot]
DESCRIPTION
This command applies a label to an Amanda volume, erasing the volume in the process.
Amanda uses labels to identify volumes: amdump(8) and amflush(8) verify the label before writing to make sure the proper volume is loaded,
and the recovery programs use the label to ensure they are reading the data they expect.
If no [slot] and no [barcode] is given, then amlabel labels the tape in the current slot of the default changer. If a slot is given, it
labels the volume in that slot. If a barcode is given, it labels the volume with that barcode. Label may be any string that does not
contain whitespace and that matches the labelstr (see amanda.conf(5)).
If [label] is not given, an autolabel is generated, see autolabel in amanda.conf(5).
If [--assign] is given, the barcode and meta-label are assigned to the label without labeling the volume. The label must already be in the
tapelist file.
This command also appends the new volume to the tapelist(5) file, so that they will be used in the order they are labeled (depending on the
taperscan in use -- see amanda-taperscan(7)).
As a precaution, amlabel will not write a label if the volume already contains an active label or if the label specified is on an active
tape. The [-f] (force) flag bypasses these verifications.
OPTIONS
--barcode barcode
With [--assign], assign the barcode to the label. Without [--assign], label the volume with that barcode.
--meta meta-label
Assign the meta label to the label after labeling the volume.
--assign
Assign the barcode or meta-label to the label without labeling the volume. The label must already be in the tapelist file.
-f
Force the label operation; see above
--version
Output version information
-o configoption
See the "CONFIGURATION OVERRIDE" section in amanda(8).
EXAMPLE
Write an Amanda label with the string "DMP000" on the current volume:
% amlabel daily DMP000
Label the tape in slot 3 of the changer with the label "DMP003":
% amlabel daily DMP003 slot 3
MESSAGES
Label 'label' doesn't match labelstr 'labelstr'
The given label does not match the configured labelstr. Even with -f, this is an error.
Label 'label' already on a volume
The given label is already on another volume in the tapelist, and Amanda will not write it to this volume unless forced.
Found label 'label', but it is not from configuration config.
The label amlabel found on the volume does not match this configuration's labelstr, so it is probably part of a different Amanda
configuration. Amanda will not overwrite the label unless it is forced.
Volume with label 'label' contains data from this configuration.
The label amlabel found on the volume still has valid data on it and Amanda will not overwrite it unless forced. Note that this does
not distinguish between active and inactive volumes.
SEE ALSO
amanda(8), amanda.conf(5), tapelist(5), amanda-taperscan(7), amdump(8), amflush(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
James da Silva <jds@amanda.org>
Stefan G. Weichinger <sgw@amanda.org>
Dustin J. Mitchell <dustin@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.1 02/21/2012 AMLABEL(8)