Operating System - OpenVMS
1827617 Members
4036 Online
109966 Solutions
New Discussion

Re: displaying boot variables at the OS level

 
SOLVED
Go to solution
Kirk Reindl
Frequent Advisor

displaying boot variables at the OS level

I think I know the answer to this, but here it goes anyway:

Can I display the boot environment variables at the OS level in VMS 7.3-1?

Or, is there a log file I could interrogate that would show me my configs at my last boot?

I'm looking for something that would be similar to the show boot* at the SRM/P00>>> prompt.

Thanks,

Kirk Reindl
2 REPLIES 2
Hein van den Heuvel
Honored Contributor
Solution

Re: displaying boot variables at the OS level

Several, but not all, can be obtained through the dcl lexical function F$GETENV().
For example:

$ write sys$output f$getenv("booted_dev")
SCSI 0 6 0 0 0 0 0

Other candidates:

AUTO_ACTION BOOT_DEV BOOT_FILE BOOT_OSFLAGS BOOT_RESET BOOTED_DEV BOOTED_FILE BOOTED_OSFLAGS TTY_DEV DUMP_DEV ENABLE_AUDIT LICENSE

hth,
Hein.

Martin P.J. Zinser
Honored Contributor

Re: displaying boot variables at the OS level

Actually there are a few more documented by now

Auto_action, Boot_dev, Bootdef_dev, Booted_dev, Boot_file,
Booted_file, Boot_osflags, Booted_osflags, Boot_reset, Dump_dev,
Enable_audit, License, Char_set, Language, Tty_dev


and there is a system service to go with f$getenv if you want to do this from a compiled language. I think the systemservice also exists in a sys$setenv incarnation if you want to confuse yourself and the system ;-)

Greetings, Martin