Operating System - OpenVMS
Showing results for 
Search instead for 
Did you mean: 

OpenVMS Information

Occasional Visitor

OpenVMS Information

I'd like to know how to get a query my system to identify the following:
1. number of users currently active in system, size of their files, packages, and last time they were accessed.
2. number of active email users, names, and size of mailboxes.

Are there tools in OpenVMS 7.3-2, or management scripts that would allow me to do this?


Steven Schweda
Honored Contributor

Re: OpenVMS Information





If it's installed, DFU can be helpful for
many file system searches.

What's a "package"?

Last time _what_ was accessed? Every file?

Define "active email users, names". E-mail
storage on VMS differs from that on UNIX.
There may be multiple files/directories, and
their locations are not fixed for any user.
You can look in some obvious places, but you
may not find all of it.
Wim Van den Wyngaert
Honored Contributor

Re: OpenVMS Information

Last time accessed is not available per default. See HELP SET VOL/RET and SET FILE/EXP for more info on finding accessed files. It can produce a list of accessed files without keeping the last accessed files.

Wim Van den Wyngaert
Honored Contributor

Re: OpenVMS Information

2. number of active email users, names, and size of mailboxes.

Any user can normally use mail. Per default a file mail.mai is made in the login directory. But the user can delete it, move it and rename it. The size is as any file : dir/siz=all. The list of users "that ever used mail" and their settings (e.g. where to find the mail forlders) can be found in VMSMAIL_PROFILES.DAT (readable but contains binary data too).

You can place an acl on the mail exe to get alarms when the exe is used (in audit, that includes the user name).

Robert Gezelter
Honored Contributor

Re: OpenVMS Information


First, Welcome to the OpenVMS ITRC Forum!

If "active" means "currently logged in", then the SHOW USERS command will show who is on the system at this instant. If what is wanted is "who has used the system in the last xxx days, then the information will have to be extracted from the accounting logs or from the system authorization file (with due regard for permanently running jobs).

As has been noted, the DIRECTORY command has options which summarize space consumption. A note of caution based on experience of working with systems set up by others: it is common for files to be placed in locations other than the obvious ones, and therefore determining what data is no longer needed is often a challenge.

I hope that the above is helpful.

- Bob Gezelter, http://www.rlgsc.com
Hein van den Heuvel
Honored Contributor

Re: OpenVMS Information


Sounds like some management type, without an appreciation of what OpenVMS can do, is looking foa way to determine whether it is still 'worth it' to maintain the system.

Most what is being asked about are 'fluff' attributes which hardly matter for a 'real system'. Maybe 'packages' refers to actual applications for business use, but the term means little or nothign to OpenVMS folks.
The application might or may not have usage indicators.

You may want to check out (image level) accounting.

For disk usage, please consider enabling 'DISK QUOTAS', not to limit (set it to 1000000000 but to measure.
Try MCR DISKQUOTA and start with a HELP command. If all users have their own UIC as recommended for OpenVMS, then it provided a quick & easy reporting facility.

As pointed out, VMS mail is different from many other packages and can easily 'hide'.
But one assumes that if you just sum up all *.MAI files by owner that you'll be a long way.

For 'active' users, many of us rely on 'last_login' date(s!) in autorization file. Google is your friend (+openvms +last_login) or (+openvms +lastlogin)

Good luck!
Andy Bustamante
Honored Contributor

Re: OpenVMS Information


You should also consider what products are installed on your system that may not require a VMS user id. One of the VMS web servers for example may be running providing access to files without using user license. You system may be providing services that users don't connect with an Alpha/VMS platform.

If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
Honored Contributor

Re: OpenVMS Information

This tool gives a good system summary.
It shows some uaf details, but not much on mail usage.