Removes old binary and core files from dcelocal/bin and dcelocal/var/dfs/adm
Synopsis
bos prune -server machine [-bak] [-old] [-core] [-all] [{-noauth | -localauth}] [-help]
Options
-server machine
Names the server machine from which to remove the indicated files. The BOS Server on this machine executes the command. To run this command using a
privileged identity, specify the full DCE path name of the machine. To run this command using the unprivileged identity nobody (the equivalent of running the command with the
-noauth option), specify the machine's host name or IP address.
-bak
Removes all files with a .BAK extension from dcelocal/bin. Use this option with -old, -core, or both, or use -all.
-old
Removes all files with an .OLD extension from dcelocal/bin. Use this option with -bak, -core, or both, or use -all.
-core
Removes all core files from dcelocal/var/dfs/adm. Use this option with -bak, -old, or both, or use -all.
-all
Removes all .BAK and .OLD files from dcelocal/bin and all core files from dcelocal/var/dfs/adm. Use this option or
use some combination of -bak, -old, and -core.
-noauth
Directs bos to use the unprivileged identity nobody as the identity of the issuer of the command. The command fails if you use this option and DFS
authorization checking is not disabled on the machine specified by -server. If you use this option, do not use the -localauth option.
-localauth
Directs bos to use the DFS server principal name of the machine on which the command is issued as the identity of the issuer. Use this option only if the
command is issued from a DFS server machine (a machine that has a DFS server principal in the local Registry Database). You must be logged into the server machine as root for this option to
work. If you use this option, do not use the -noauth option.
-help
Prints the online help for this command. All other valid options specified with this option are ignored.
Description
The bos prune command removes obsolete versions of binary and core files from the dcelocal/bin and dcelocal/var/dfs/adm
directories on the server machine specified with the -server option. Binary files should only need to be removed from the Binary Distribution machine for a CPU/operating system type; core
files may need to be removed from any server machine. Specify the files to be removed with the command's other options as follows:
· Use the -bak option to remove all .BAK files from dcelocal/bin.
· Use the -old option to remove all .OLD files from dcelocal/bin.
· Use the -core option to remove all core files from dcelocal/var/dfs/adm.
· Use the -all option to remove all three types of files.
The -bak, -old, and -core options can be combined to remove different types of files with the same command. The -all option can also be used with any of the three options, but using the -all option alone is sufficient to remove all three types of files.
Binary files with .BAK and .OLD extensions are created when new versions of binary files are installed with the bos install command. Core files are created when a process that the BOS Server is monitoring goes down.
Use the bos uninstall command to replace the current version of a binary file with its next-oldest version (.BAK or, if the .BAK version does not exist, .OLD) or to remove all versions of a binary file. Use the bos getdates command to determine the time stamps on binary files.
Privilege Required
The issuer must be listed in the admin.bos file on the machine specified by -server.
Related Information
Commands: bos getdates(8dfs)