1827792 Members
2357 Online
109969 Solutions
New Discussion

Re: Logical names issue

 
Swain
Regular Advisor

Logical names issue

I have defined 2 logicals under AMS as

define/sys/exec ......

it gets deleted at every reboot. could someone help?


12 REPLIES 12
Hakan Zanderau ( Anders
Trusted Contributor

Re: Logical names issue

Logicals can't survive a reboot if the node isn't a member of a cluster.

You need to save the definition of the logical(s) in a file that runs during boot.
example, SYS$STARTUP:SYLOGICALS.COM

Hakan
Don't make it worse by guessing.........
Robert Gezelter
Honored Contributor

Re: Logical names issue

Amaresh,

In addition to Hakan's comments, a note. Please review the documentation on logical names. Not just the section on the DEFINE and ASSIGN commands, but the information in the System Services manual and in the Programming Concepts manual.

All of the OpenVMS manuals are available online at http://www.hp.com/go/openvms

On a general note, the online HELP text is no substitute for having read the relevant manual. While the HELP text contains a summary of the material in the manual, it is of necessity only a summary.

- Bob Gezelter, http://www.rlgsc.com
Murali L.R.
Advisor

Re: Logical names issue

Hi,
Bit more information:

SYLOGICALS.COM A file to which you add commands to define your site-specific system logical names.

A systemwide logical name applies to the entire system. It is defined in the system logical name table and can be used by any process in the system. A clusterwide system logical name applies to every node in the
cluster at a system level. It is defined in the clusterwide system logical name table of every node and can be used by any process in the system.
In general, system managers edit the SYLOGICALS.COM command procedure to define site-specific logical names that take effect at system startup.

Regards,
Murali
Swain
Regular Advisor

Re: Logical names issue

I added the entry in sylogicals.com but seems it did not change the logical definition.

Is there any other file to modify before reboot?
Hakan Zanderau ( Anders
Trusted Contributor

Re: Logical names issue

Is your problem that a CHANGE of an already defined logical is gone after boot ??

A definition of a logical must be stored in ANY file the will be run during boot.

SYLOGICALS.COM is accessed early in the boot.

If another definition of the specific logical is made later in the boot, it will be overwritten.

Hakan
Don't make it worse by guessing.........
Joewee
Regular Advisor

Re: Logical names issue

Amaresh,

Find where the logical is getting defined.
If possible change it there itself, else try to define your new logical after the start up of the application or Com procedure which defines the logical.

If you are getting confused add the logical definition to the last line of your sys$manager:systartup_vms.com
Robert Gezelter
Honored Contributor

Re: Logical names issue

Joewee,

With all due respect I must strongly disagree with the last paragraph of your most recent post in this thread.

The logical name in question could be defined in a wide variety of places, adding it to the end of SYS$MANAGER:SYSSTARTUP_VMS.COM while it may possibly temporarily resolve the situation, will only add to confusion in the long term.

Amaresh,

Simply adding the name to SYLOGICALS will not define it in the currently running system. The individual define will also have to be executed on the running system.

- Bob Gezelter, http://www.rlgsc.com
Joewee
Regular Advisor

Re: Logical names issue

Thanks Bob,

I take that.. I was jus trying to give him a work around.

Amaresh,

Sorry to misguide you.

Swain
Regular Advisor

Re: Logical names issue

Thanks Bob.

I want to know what steps to be executed so that I need not to redefine the logicals after reboot..
Adding to SYLOGICALS.COM did not work.

Amaresh
Hakan Zanderau ( Anders
Trusted Contributor

Re: Logical names issue

You have to search through all your commandfiles for the definition of this logical......

$ SEARCH SYS$SYSDEVICE:[000000...]*.COM 'logical'

Startupfiles don't have to reside on your systemdisk, but its a start.

Hakan
Don't make it worse by guessing.........
Jan van den Ende
Honored Contributor

Re: Logical names issue

Amaresh,

it is about time to get this all a little more thorough.

Set (SYSGEN) prameter STARTUP_P2 to "V" (for "verbose") and execute a reboot.
Catch the output . It will probably A LOT!!

Search that output for any occurences of the logical name.

Usually any "strange" things now spring forward. With that info, we can take it from there.

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
AEFAEF
Advisor

Re: Logical names issue

Amaresh,

Where in SYLOGICALS.COM did you define the command? If it's the same as in V6.2, you must define it in the right place!

Near the top of mine there is a statment

$ IF (.NOT. F$TRNLNM("SYS$MICROVAX")) THEN GOTO SKIP_UVAX_LOGICALS

Since you probably don't have a MicroVAX, this statement takes you to a later point in the file. That is where you need to place your DEFINE command!

More easily, place your command below this line in the file:

$! Define any site-specific logical names below:

but above the EXIT command about the DEFINE_NAME subroutine.

Please try this and report back.

AEF