Utilities in JRButils for MICRO FOCUS v23

T to Z

Tidyhome

Tidyhome cleans up home directories and resets them to a given status. It is ideal for managing sets of temporary accounts which are used for examinations or seminars, and for student accounts where all files are deleted periodically. Features include:

  • Can process individual users, users selected via wildcards, all members of a group, or a list of users in a file.
  • Can delete the contents of the home directory, retaining just the home directory itself.
  • The actual home directory can be deleted if required.
  • Can remove all extraneous trustee assignments which may have been created to grant rights to other users.
  • Can set the user’s trustee rights to a given value.
  • Can remove a directory quota or set it to a given value.
  • Can remove a volume quota or set it to a given value.

Trstlist

Trstlist displays trustee assignments for multiple objects, or for selected directories or files. Features include:

  • Can display trustees for files, directories, all directories in a tree (optionally to a nominated depth), for an entire volume, or all volumes on a server.
  • Can process multiple files servers in a single command.
  • Can display trustees for a given path and each of its parent directories including the volume root.
  • Can display trustees for any class of object on any or all volumes.
  • Can display inherited rights filters.
  • Optional sorting by user, directory or rights.
  • Optional filtering by trustee rights e.g. trstlist can list only those trustees with supervisory rights.
  • Can list the trustee rights as settrust, JRButils for AD adsettrust or OES Linux rights commands allowing them to be saved in a form in which they can be removed via a batch file.
  • Can list the trustee rights as settrust, JRButils for AD adsettrust or OES Linux rights commands allowing them to be saved in a form in which they can be restored via a batch file.
  • Can optionally list trustee rights for an object which are inherited through security equivalence. As a user is security equivalent to groups belonged to, this includes trustee rights inherited via group membership. This includes trustees of each of the container objects forming the object’s distinguished name, plus [Public] and [Root]. Every object is security equivalent to each of its parent objects.
  • Can display only those files and/or directories without trustees.
  • Can display only those objects without trustees.
  • Can display trustee assignments for all volume objects in an eDirectory tree.
  • Displays paths in the DOS or LONG name space.
  • Can produce comma delimited output with the fields and their order determined by the user.
  • Can display rights in Windows format e.g. RWXD.
  • Can display trustees as Windows cacls or icacls commands. An option is included to produce icacls commands granting non-propagated GR+GE rights to parent directories.

Userapps

Lists the ZEN application objects with which one or more objects are associated. Features include:

  • Can list applications associated with users, groups and containers.
  • Can list applications associated directly with users, via group objects, via container objects, or via all three.
  • Can list the object via which the association is made.
  • Optional sorting by object name.
  • Optional sorting of the associated applications.
  • Can include or exclude selected applications.
  • Can process users in the specified container and all containers below it.
  • Flexible output formatting options.
  • Can display only those associated applications which exist in a particular context.

Usercert

Usercert assists in the management of a user’s public key cryptography certificates. Usercert can do the following:

  • Create certificates with RSA and SHA1, RSA and MD2 or RSA and MD5 signing algorithms. The certificates “Valid from” and “Valid to” dates may be specified.
  • Delete individual or all certificates for each user.
  • List individual or all certificates for each user. Fields displayed are username, certificate name, status, vendor and size.
  • Extract all or selected certificates for each user, using a range of file naming conventions. The private key may be encrypted using the user’s eDir password or a specified password.

In addition to having the client for OES Enterprise Server (Novell client) installed, usercert requires five or six DLLs to run. They are listed below and can be found in the sys:ni\nis30\bin directory on a NetWare server.

npkiapi.dll
npkit.dll
ntls.dll
sal.dll
dclient.dll
spmdclnt.dll for npkiapi.dll v3.0.0.0 onwards

Usergrps

Usergrps lists the groups to which one or more users belong. Features include:

  • Optional sorting by user name.
  • Optional sorting of the groups belonged to.
  • Can include or exclude selected groups.
  • Can process users in the specified container and all containers below it.
  • Can display only those groups which exist in a particular context.
  • Very flexible output formatting options including the ability to list the results as grpadd and grpdel commands.

Vol_info

Vol_info displays information for a single volume, volumes selected via wildcards, all volumes on a server, volumes across multiple servers, or volumes selected via the volume objects in eDirectory. A number of information summaries are available:

  • Attribute information including whether the volume is NSS or traditional, is read-only, has compression, suballocation, migration or auditing enabled, the name spaces loaded, and for NSS volumes, whether 64 bit file sizes are supported.
  • Volume block information including the block size, total blocks and blocks used, available, purged and purgeable.
  • Directory entry information including the number of blocks used, the percentage of the volume used by directory blocks, and the number of directory entries allocated, used and available.
  • Size information including the volume size, space used and available, the space usable (assuming usage cannot exceed 90% full) and the percentage used.
  • A detailed report including all of the above.
  • For NSS volumes under NW 6.x and OES Linux, a summary indicating whether salvage, compression, directory quotas, volume quotas, flush files immediately, modified file list, snapshot, shredding, transaction tracking and migration are enabled.
  • For NSS volumes under NW 6.x and OES Linux, a detailed report of NSS specific information including the attributes in the previous item, name spaces, pool, owner, GUID, state (mounted or dismounted) creation and as modified dates, salvage high and low water marks, whether the extended Mac name space is supported and enabled, whether the volume is shared and a cluster master or slave, and the total number of files and objects.
  • The new APIs for returning 64 bit volume size details on OES 2015 are supported.

Wgrpadd

Wgrpadd is for use with workstation objects and workstation groups which are added to the schema when Z.E.N.works is installed. Wgrpadd is a modified version of grpadd and has similar functionality allowing a single workstation object to be added to a workstation group, all members of another workstation group to be added, or a list of workstation objects in a file to be added.

Wgrpdel

Wgrpdel is for use with workstation objects and workstation groups which are added to the schema when Z.E.N.works is installed. Wgrpdel is a modified version of grpdel and has similar functionality allowing a single workstation object to be removed from a workstation group, all members of another workstation group to be removed, or a list of workstation objects in a file to be removed.

Wgrplist

Wgrplist is for use with workstation objects and workstation groups which are added to the schema when Z.E.N.works is installed. Wgrplist is a modified version of grplist and has similar functionality allowing listing of members of one or more workstation groups, and allowing the use of logical operators ‘and’, ‘or’ and ‘not’ to form an expression combining group names. This program can also display the user histories for workstation objects and the date and time that each entry was added.

Wgrpmemb

For use in a batch file to test if a workstation object is a member of a workstation group. It has similar functionality to grpmemb.

Whodidit

Whodidit displays selected information about files and directories which is useful in determining when they were created, modified, last accessed, archived and by whom. It can list any combination of the following fields:

Archiver - the object which last archived the file
Archive date and time
Attributes
Creation date and time
Cumulative usage. This is the physical size of the current file plus the sum of the sizes of all previously listed files.
DOS name
Extended attributes – number of
Extended attributes – total size
File or directory extension
Finder information for Mac files (command line versions only)
Inherited rights filter
Last access date and time
Logical size as shown by a ‘dir’ command or Explorer
LONG name
Mac name
Modification date and time
Modifier – the object which last updated the file
NFS name
Number of data streams
Owning name space
Owner
Physical size (for compressed or sparse files)
Quota (for directories)
Resource fork size for Macintosh files
Space used in a directory exclusive of subdirectories

The user may select which of the above are to be displayed, in what order, and the width of the columns. Alternatively, a template file containing text and substitution identifiers may be given. This allows any combination of values to be given in any format and may be useful to create a batch file of commands incorporating file names. The output can be filtered on any value e.g. it is possible to display details of files greater than a certain size, files which are compressed, or all files and directories owned by a particular name space. Filters may be combined in a logical expression e.g. “(owner=John) and (size gt 100mb)”.

Whodidit has the ability to use a template file to format the output. The file can contain one or more lines of text and substitution identifiers representing informational items, the volume, path or file name, or any combination of these in any name space. This allows commands to be built for files or directories matching some filter criteria. For example, whodidit could search a volume for files not accessed during the last 6 months and via the template file, a batch file could be created to copy these to some other location and then delete them.

Whodidit can save owners, updaters, archivers, creation, update and archive dates and times, last access dates, attributes and inherited rights filters, in a form suitable for input to setowner. This option may be useful if eDirectory is to be removed from a server and subsequently reinstated. All object IDs will change when eDirectory is reinstated with loss of this information which is stored as object IDs in the directory entry tables. Saving this information with whodidit allows it to be restored via setowner. This facility may also be used to restore ownership for files and directories copied using copy or xcopy.

Whodidit can display only a user defined number of the oldest or newest files in each directory based on creation, modification or last access dates.

The fully GUI version also allows copying, deleting, renaming, and moving of files within the same volume. It also supports modification of many fields by right clicking on the appropriate column.

Whodidit can display file and directory information for both Micro Focus and Windows file systems. On Windows, it supports paths up to 2048 characters in length.

Wsgroups

Wsgroups lists the workstation groups to which one or more workstation objects belong. Features include:

  • Optional sorting by workstation name.
  • Optional sorting of the groups belonged to.
  • Can include or exclude selected workstation groups.
  • Can process objects in the specified container and all containers below it.
  • Can display only those groups which exist in a particular context.
  • Flexible output formatting options including the ability to list the results as wgrpadd and wgrpdel commands.