Computing.Net > Forums > OpenVMS > Node Name

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Node Name

Reply to Message Icon

Name: amsedelm
Date: January 21, 2008 at 12:04:15 Pacific
OS: OpenVMS V7.3-2
CPU/Ram: 4/16GB
Product: HP/ES 45
Comment:

How would you extract just the NODE name from the command sh sys ? I'm kind of stumped.
Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: HakZan
Date: January 21, 2008 at 23:34:42 Pacific
Reply:

I'm not sure what you are trying to do.....

But if you only want to get the nodename for the node you are logged into.

$ node = f$getsyi("nodename")

or

$ write sys$output f$getsyi("nodename")


To give a direct answer to your question.

$ pipe show system/noproc | -
( inquire str ; -
nodename = f$element(4," ",str) ; -
define/job node &nodename )
$ node = f$trnlnm("node")

regards,

Hakan Zanderau
HA-solutions

Please supply more information when asking for help.....


0

Response Number 2
Name: amsedelm
Date: January 22, 2008 at 05:46:47 Pacific
Reply:

Thanks, Haka! That's just what I needed.
Mike Ledesma
Petro Heating Oil


0

Response Number 3
Name: Bob Gezelter
Date: February 2, 2008 at 06:13:50 Pacific
Reply:

Mike,

Actually, a far safer way of getting the nodename from a script is to use the F$GETSYI lexical function. For example:

$ WRITE SYS$OUTPUT F$GETSYI("NODENAME")

Almost all of the information that is displayed by the various show commands is available from one DCL lexical function or another. Of particular interest are the F$GETxxxI series (F$GETSYI, F$GETDVI, and F$GETJPI), and various others include F$ENVIRONMENT.

Using the lexicals is a FAR superior approach to getting information than parsing the output of the SHOW commands.

In fact, one can write implementations of most of the SHOW commands using the lexical functions to get information. See "DCL Lexicals: OpenVMS Jujitsu", slides available at http://www.rlgsc.com/decus/usf95/in... , for some comments.

- Bob Gezelter, CSA, CSE, http://www.rlgsc.com
Flushing, New York


0

Response Number 4
Name: thomas mathews
Date: November 2, 2009 at 02:42:33 Pacific
Reply:

Almost all of the information that is displayed by the various show commands is available from one DCL lexical function or another.
2.5” IDE Flash


0

Response Number 5
Name: Cliffsidemalibu
Date: November 4, 2009 at 02:02:29 Pacific
Reply:

Alcohol treatment cannot be equal to drug treatment. Moreover many “exclusive” treatment services in Los Angeles make the mistake of treating alcoholics and drug addicts the same method, while if the challenge faced by one group were similar to those faced by the other. But this cleanly isn’t the case. The fact is that alcohol addiction presents it’s wounded with a unique set of challenges on the road to recovery. An exclusive Substance Abuse center that fails to recognize that much, can’t ever possibly expect to help its clients get where they need to go. 
The Cliffside Malibu understands the nuances of alcohol rehabilitation. Cliffside’s alcohol treatment experts are important numbers in the field, and take a fantastic wealth of knowledge to their work. Of all the fashionable alcohol rehabs existing, this is why Cliffside is the special alcohol treatment purpose for expensive clients from as far away as Thailand and the Philippines. It’s also why there should be no doubt as to where your interests will be best served.
Alcohol recovery is an extraordinarily easily broken process. To complete it successfully, you’re going to need exactly the right kind of care from exactly the right kind of caregivers. Cliffside Malibu can give it to you with their private alcohol rehab programs. All that remains, now, is for you to make the right choice. The day you arrive at Cliffside’s secluded private estate will be the day you start remembering why you ever believed tomorrow to be a thing worth looking forward to. For the sake of the people who care about you, here’s hoping you can muster the courage to do what you must.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon





Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Node Name

Node name decnet www.computing.net/answers/openvms/node-name-decnet/155.html

DECNET Node Name Assignment www.computing.net/answers/openvms/decnet-node-name-assignment/317.html

Node nama and address www.computing.net/answers/openvms/node-nama-and-address/162.html