This script used in TSM ( Tivoli storage manager ) system.
#!/bin/ksh
cd /home/bradmin/anil
id=`cat sysop_pw|awk '{print $1 }'`
pw=`cat sysop_pw|awk '{print $2 }'`
while read server
do
dsmadmc -se=$server -id=$id -pa=$pw -dataonly=yes q ac begind=-1...
Hi
Question is .....above awk has input only from files drive*_status . How do i supply lines variable to awk ? Is there way i can input drive*_status and a variable to above wk ?
Hi
Annihilannic (MIS)
I have above code hardcoded in a script which runs daily. Number of records varies daily in each file. Is there way u can modify ur awk to accomodate future changes on fly then set maxvalue for LINES variable ?
THX
lines=5 ..Is there way to calculate max number of lines in any files then set lines=NewMAX ?
Since some files has 10 lines other may have 100 or more.
THX
Hi
I came accross one critical juncture, some of file has more than 4 records in it.
$ cat drive9_status
Drive9
======
Jul 13 tsm01 BR3363
Jul 13 tsm05 BR1990
Jul 15 tsm04 BR1254
Jul 17 tsm01 BR1248
Is there way can you modifiy ur awk to accomodate any file having any number of records ...
I am very bad when comes ARRAY. I put ?? mark where i could not get.
awk '
BEGIN {
??lines=5
# for each filename argument
for (f=1; f<ARGC; f++) {
# for each line of report output
for (l=1; l<lines; l++) {
if (getline <...
I have numerous file like above but some of file will be empty. I want each files out put in fixed colummn no mater if they empty or has some thing. Output file should have column belong to each file and their output limited to their column.
Having hard time to get this output in...
Hi,
After the full NDMP (legato) backup "brwsnas2:/fs303 nsrdmpix: error, cannot create index entries". Some how it is not creating index. Any one can help in this.
backup server: HP-UX B.11.00 U 9000/800 .
NW: 6.0.1 build 174.
Thanks in advance...
Hello,
I'm getting the error on NDMP backup. This NAS share is using for database export file.
brwssundbprd2_NAS nsrdmpix: Failed to create index entry for /brwssundbprd2_NAS/export/esmtsp1/esmtsp1.dmp
Anf one can help me , hoe to fix this error.
Thanks in advance.
Hello,
We are planning to upgrade the drives LTO1 to LTO4. Legato NW will suppot the LTO4 drives in IBM3584 drives? Right now environment is
Backup server HP_Unix 11.00
Legato networker 7.2.1 using
IBM3584 Library with LTO1 drives
Thanks in advance
In the Legato environment 4 drives are connected to NDMP.
Now one drive is giving issue. It is not doing write or labeling. When I ran the Inquire -N it shows only 3 drive.
It supposed to shoe the 4 drives.
NW bounce and reset every thing done. Drive also replaced.
Any one can help me in this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.