- method getFlagValue (flag) Get a flag's current value
- method printReport (verbose=0) Print an ASCII report to standard output
- method loadFromCache (cache_file)
- method writeCache (cache_file)
Actions and data associated with a ConfigParser format file set up to act as our AFS Space Usage Policy Database.
- method getSiteValues (category) Get all non internal option values and return a list of them
- method getRegexp (category) Get the regexp value for a given category of volume. Returns
- method getSections () Return a list of category names found
- method getOptions (category) Return a list of option names for the specified category
- method getValue (category, option) Fetch a value for the option specified in category
Interface class (should only be sub-classed and never instantiated). Constructor expects the following args:
Generate a GIF report for a partition on a server. If no output file name is set with the setOutFilename() method before calling printData(), the output will go to a file named
REQUIRES: gnuplot
Generate an ASCII text report from the most recent stats. Constructor expects the following args:
Examine the whole VLDB to enumerate the file servers in existence. Returns a list of fileserver hostnames.
Check all volumes represented by vldbdata (passed in). If the volume's quota is unlimited, report a warning. Optionally (see argument descriptions below), warn if the percentage quota used is over highmark (passed in).
Not really intended to be used as a utility function...more a fully-functioning script that I didn't want to break out into a script (as witnessed by the fact that it uses 'print')
Run a 'vos examine' on ever entry in the entire VLDB and print an error for volumes that could not be examined properly
Not really intended to be used as a utility function...more a fully-functioning script that I didn't want to break out into a script (as witnessed by the fact that it uses 'print')
Report on volumes that exist on disk but not in the VLDB. Might find other problems as well. Returns nothing.
Not really intended to be used as a utility function...more a fully-functioning script that I didn't want to break out into a script (as witnessed by the fact that it uses 'print')
Given a partition name of any form, return it as a standard full partition name in /vicepNNNN form.
Release a replicated AFS volume
Remove a replication site for a volume
Given a path, return either the AFS volume name that is mounted at that point or an empty string (which means the mount point is not
Unmount a volume and return 0 on failure, or the name of the volume unmounted on success
Remove a volume from a server and partition
Returns 0 on failure, 1 on success
Determine (in hours) how old a file is
Returns the hours (integer) or -1 on failure
Run an OS-level command and return 0 on failure, 1 on success
Execute an OS-level command with stderr redirected to stdout, and return 1 if searchstr is found in the output of command, 0 if not.
Execute a shell command with stderr redirected to stdout, and return all lines of output as a list
- method _setRWsite (site) Set the read-write site for this volume
- method getROsites () Get the list of read-only sites for this volume
- method _setROID (id) Set the read-only volume ID
- method _setRWID (id) Set the read-write volume ID
- method _setBID (id) Set the backup volume ID
- method addEntry (entry) Add a VLDBEntry object to our list.
- method getEntries () Get a copy of our list of VLDBEntry objects
- method printReport () Print an ASCII report to standard output
- method _setCreationDate (datestring)
- method _setLastUpdate (datestring)
- method _setLastDayAccesses (num)
- method getLastDayAccesses ()
- method _setState (statestring)
- method getState () Get the state of the volume (On-Line or Off-Line)
- method getKUsed () Get the number of 1-kilobyte-sized blocks used by this volume
- method getSite () Get the Site object associated with this VosListvolEntry
- method getVName () Get the volume name
- method getVID () Get the volume ID
- method printReport () Print an ASCII report to standard output
- method _setPartition (partition)
- method addEntry (entry) Add a VosListvolEntry object to our list.
- method getEntries () Get a copy of our list of VosListvolEntry objects
- method printReport () Print an ASCII report to standard output
Created by Doc-Tool V0.9 on Fri Apr 5 12:04:54 2002