home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!seunet!seb!seb.se!s01964
- Newsgroups: comp.os.vms
- Subject: Re: Help with SYS$GETSYI please!
- Message-ID: <1993Jan27.132741.1@seb.se>
- From: s01964@seb.se
- Date: 27 Jan 93 13:27:41 +0100
- References: <davids.728101271@marloo.kowari.cpsg.com.au>
- Organization: S-E-Banken, Sweden
- Nntp-Posting-Host: sto009
- Nntp-Posting-User: s01964
- Lines: 62
-
- In article <davids.728101271@marloo.kowari.cpsg.com.au>, davids@kowari.cpsg.com.au (David Schulz) writes:
- > Hello,
- >
- > I am trying to use SYS$GETSYI to retrieve the local node name. The call is
- > returning successfully, but the buffer is empty and return length is
- > zero. Any help will be greatly appreciated. The code fragment below
- > shows what I'm trying to do.
- >
- > Thanks in advance,
- >
- > David
- >
- >
- > -----------------------------------------------------------------------------
- >
- > #include <syidef.h>
- >
- > int
- > main()
- > {
- > int status;
- > short version_len, node_len;
- > char version[8];
- > char node_name[15];
- >
- > struct item_list {
- > short length;
- > short code;
- > int buf_addr;
- > int return_length;
- > } itmlst[] =
- > {
- > { 8, SYI$_VERSION, &version, &version_len },
- > { 15, SYI$_NODENAME, &node_name, &node_len },
- > { 0, 0, 0, 0 }
- > };
- >
- > status = SYS$GETSYIW(0, 0, 0, &itmlst, 0, 0, 0);
- >
- > /* Returns version ok, but not node_name */
- >
- > printf("version = <%8s>, length = %d\r\n", version, version_len);
- > printf("node = <%15s>, length = %d\r\n", node_name, node_len);
- > }
- >
- > -----------------------------------------------------------------------------
- > davids@kowari.cpsg.com.au
- > -----------------------------------------------------------------------------
- --
- The item code SYI$_NODENAME is returning the sysgen parameter SCSNODE name.
- Instead, translate the system logical name SYS$NODE. That logical name is
- always defined on a node running DECnet.
-
- On VAXcluster nodes is the sysgen parameter SCSNODE defined to be the same as
- the DECnet node name, SYS$NODE. On standalon nodes should/must ?? the SCSNODE
- name be defined if you run the new queue manager, in V5.5.
-
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Jonas Lindholm Internet: jlh@seb.se
- R-M3 Phone: +46 8 639 1000
- S-106 40 Stockholm Fax: +46 8 639 3762
- SWEDEN
-