[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 372
  • Last Modified:

discovering tape usage by shell script on unix's box

Anyone knows how to do a shell script to tell how much space is used on a tape?
I tried to do with gawk but without success!
0
alester
Asked:
alester
  • 4
  • 2
1 Solution
 
pratiganCommented:
Hello Alester,
www.Linux-Backup.net has lots of tips, scripts and useful information.
0
 
alesterAuthor Commented:
Can you be more specific?
0
 
pratiganCommented:
I'm not sure exactly what admin rights you have, but here is a script that gives you tape usage info.
The following commands are pumped into nsradmin to obtain the raw tape drive usage data:

 show name; NSR operation; statistics
 print nsr device



The following nsradmin session shows the output of these commands:

$ /usr/sbin/nsradmin
Networker administration program.
Use the "help" command for help, "visual" for full-screen mode.
nsradmin> show name; NSR operation; statistics
nsradmin> print nsr device
name: /dev/rmt/0cbn;
NSR operation: Write;
  statistics: elapsed = 2460, errors = 0, last rate = 923,
  max clients = 4, file marks = 6, rewinds = 0,
  files skipped = 24, records skipped = 0,
  current file = 19, current record = 223,
  seek files = 2, seek records = 0,
  estimated kb = 0, amount kb = 23808,
  file amount kb = 23808, sessions = 4;
nsradmin>

Also, here is another link with a vast list of scripts to use.  There is one that will create a log report showing usage, etc.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
alesterAuthor Commented:
Just for the shelldorado link You have answer the question. terrific! thank you!
0
 
pratiganCommented:
your Welcome !!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now