Greg -- Not quite. In GT.M globals and routines are configured completely independently of each other. If you have the chance, just download the GT.M Acculturation CD (from http://sourceforge.net/projects/sanchez-gtm) and go through it - it explains things much better than I could in a short post to the mailing list.
-- Bhaskar On Wed, 2005-03-23 at 11:28 -0500, Greg Kreis wrote: > I can understand that the Volume concept is handled by the idea of a > path in Linux, right? Hmm... Are the globals just Linux files? If so, > wouldn't the directory take the place of the UCI? But I guess the > next question is how is this exposed inside GT.M? > > K.S. Bhaskar wrote: > > GT.M does not have the concept of UCI and Volume, so I think for the > > GT.M port they're always VAH & ROU. (Or am I getting things mixed up?) > > Also, when VistA is ported to GT.M, I believe the routines look for the > > hostname from the Linux command "hostname -s". > > > > Perhaps Chris Richardson, Rick Marshall, Wally Fort or Dave Whitten > > could comment? > > > > -- Bhaskar > > > > On Sun, 2004-11-21 at 23:21, Nancy E. Anthracite wrote: > > > > > I have OV3 and Fedora Core 2. > > > > > > I bet you are using the version on the VA ftp site. That is available > > > preinstalled on Knoppix on Sourceforge thanks to Bhaskar in the > > > VivAFOIAGold > > > on the WorldVistA project site. It can be installed right on your > > > machine if > > > you want or run off of the DVD. > > > > > > Anyway, I would suggest you don't spend a lot of time looking at man > > > hostname > > > and the like unless you REALLy want to spend a lot of time because you > > > end up > > > going in a circle from hostname to something else to something else that > > > ends > > > up referring back to hostname again. I got dizzy when I tried it. > > > > > > The best I was able to do with Fedora was to figure it out with > > > experiments > > > and to find out the machine name probably has to be changed in multiple > > > places to really change the machine name for Fedora > > > including /etc/hosts, /etc/config/network and > > > sysctl -w kernel.hostname="newhostname" . > > > > > > After that, I decided that was really much more than I needed to know or > > > cared > > > to know about machine names and Fedora, as long as I could figure out > > > where > > > to get at hostname -s changed. > > > > > > As for the ^ZOSF("PROD") and where that is set, it looks like im my > > > ^ZTMGRSET, > > > it just gets the UCI and Volume it from ^ZOSF("PROD"), so that didn't > > > help > > > figure out how that is set. > > > > > > > > > > > > On Sunday 21 November 2004 08:54 pm, Daniel Gray wrote: > > > > > > > Thanks Fil, I take that as a great compliment. And you knew I would. > > > > > > > > All other readers: Fil has exaggerated my reputation as a hacker, but > > > > maybe it was because of something I said . . . > > > > > > > > Nancy: I'm not too sure what information will help, but here is a > > > > paragraph from Krn8_Osm.pdf > > > > > > > > ============== > > > > BOX-VOLUME PAIR > > > > This field identifies a volume set and the CPU on which it is > > > > available. It > > > > contains the name of a volume set concatenated to the CPU ("box") name: > > > > first the volume set name and then the CPU name. For example, if the > > > > volume set name is "KRN" and the name of the CPU (e.g., box) is > > > > "ISC6A1", > > > > then the box-volume pair would be "KRN:ISC6A1". > > > > > > > > For systems on which each CPU tends to have a unique volume set, and > > > > vice > > > > versa, you may enter just the volume set name (e.g., "PSA" or "AAA"). > > > > This > > > > field's value for the current process can be found by doing GETENV^%ZOSV > > > > and checking the fourth ^-piece of Y. Since the volume set and CPU are > > > > identified, the TaskMan site parameters can be tuned for each specific > > > > volume set and CPU affected. Systems running Managers on more than one > > > > CPU need one entry for each CPU where a manager is running. > > > > ============= > > > > > > > > So for Kernel to work, VOL:BOX has to be set up right. But why do they > > > > call it Box-Volume, why not call it Volume-Box? The name of it caused > > > > me > > > > some confusion when I was setting up taskman. And yes, the > > > > ^%ZOSF("PROD") > > > > and ^%ZOSF("MGR") and ^%ZOSF("VOL") have to be all set right, and that > > > > is > > > > done when you do ^ZTMGRSET. Maybe ^ZTMGRSET should get "BOX" name, and > > > > at > > > > least begin setup of KERNEL SITE PARAMETERS. Maybe it does. > > > > > > > > The version of Kernel I am running, has the code I showed below, that > > > > is, > > > > the call to GETENV^%ZOSV calling RETURN^%ZOSV which evoked the GTM > > > > function > > > > ZSYSTEM("hostname -s") > > > > From the GTM documentation, it looks like the ZSYSTEM call is a way to > > > > generate a "plainjane" Linux command. And I would suppose that one > > > > could > > > > say, to Linux > > > > #hostname -s > > > > and you would get a parameter out of the etc/hosts file, hopefully the > > > > "box" name, or the short name of your computer. > > > > > > > > I think that Linux uses different names for different things, Redhat9, I > > > > think, provides for a longname and a shortname, and whoever wrote the > > > > ^%ZOSF that I have, knew to look for the short name (thus "-s"). One > > > > could > > > > do $man hostname and see what it says there, I will do that when I get a > > > > chance. But there should be some documentation somewhere that tells the > > > > naïve user to name his computer with a short and sweet alias, and to > > > > check > > > > KERNEL SITE PARAMS to make sure taskman will run. > > > > > > > > It looks like the Linux configuration provides for three fields in the > > > > hosts file. The first is IP address, the second is the name of your > > > > computer (a shortname), and the longname might be the URL of your > > > > system. > > > > If this is really the case, then Kernel could use that shortname as a > > > > "box" > > > > name, to identify your "box" on a network. > > > > > > > > Maybe there is a difference between Redhat9 and Fedora, and maybe there > > > > is > > > > a difference in the GTM systems we are running, and maybe a difference > > > > in > > > > the VA Kernel we are running. > > > > > > > > The comments below indicate all three are different, and we need to get > > > > on > > > > the same page of music before our conversation will make sense. > > > > > > > > Dan > > > > GTM>h > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] On Behalf Of Beza, > > > > Fil Sent: Sunday, November 21, 2004 3:07 PM > > > > To: hardhats-members@lists.sourceforge.net > > > > Subject: RE: [Hardhats-members] Volume Sets > > > > > > > > If it is about VistA Kernel, I doubt if I could say anything that Dan > > > > doesn't know. He's the hacker and knows more about the ins and outs of > > > > Kernel than I do. > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] On Behalf Of Nancy E. > > > > Anthracite > > > > Sent: Saturday, November 20, 2004 5:33 PM > > > > To: hardhats-members@lists.sourceforge.net > > > > Subject: Re: [Hardhats-members] Volume Sets > > > > > > > > I am running Fedora Core 2, which isn't that far from Redhat and the > > > > short > > > > name comes from the first half of that localhost.localdomain or > > > > XXX.localdomain XXX part, but it does not have to be the same as the > > > > volume > > > > set. I know that from my installation. You set the volume set > > > > internally > > > > in Vista from $P(^%ZOSF("PROD"),",",2) and that is set, I think, in the > > > > volume set file and it is the volume set that is the signon/production > > > > volume set in the volume set file. > > > > > > > > Fil, Wally, Rick, Marianne or somebody who knows this stuff, help us out > > > > here, please. > > > > > > > > On Saturday 20 November 2004 03:24 pm, Daniel Gray wrote: > > > > > > > > > Nancy: > > > > > Little things like this are really slowing down my progress, but I am > > > > > learning a lot about Linux and GTM in the process. Getting a little > > > > > déjà > > > > > vu of the early days in VistA. The only FileMan doc was, I think, 20 > > > > > > > > > pages > > > > > > > > > > > > > long (but, as George T will attest), everything was there, you only > > > > > needed to know where to look. We would call him up, he would say > > > > > (without looking), "page 18, on the bottom, there in the example". > > > > > > > > > > Here is my origional hosts file, right after installation of Redhat 9: > > > > > # Do not remove the following line, or various programs > > > > > # that require network functionality will fail. > > > > > 127.0.0.1 localhost.localdomain localhost > > > > > > > > > > GTM>D GETENV^%ZOSV > > > > > hostname: Unknown host > > > > > > > > > > GTM>ZWRITE > > > > > Y="VAH^ROU^^ROU:" > > > > > > > > > > GTM> > > > > > > > > > > Here is the "hosts" file as it is now. > > > > > # Do not remove the following line, or various programs > > > > > # that require network functionality will fail. > > > > > 127.0.0.1 ROU x1-6-00-e0-18-62-af-ec > > > > > > > > > > GTM>D GETENV^%ZOSV > > > > > > > > > > GTM>ZWRITE > > > > > Y="VAH^ROU^ROU^ROU:ROU" > > > > > > > > > > If I take out the third field, leaving only two, > > > > > # Do not remove the following line, or various programs > > > > > # that require network functionality will fail. > > > > > 127.0.0.1 ROU > > > > > > > > > > GTM>D GETENV^%ZOSV > > > > > hostname: Unknown host > > > > > > > > > > GTM>ZWRITE > > > > > Y="VAH^ROU^^ROU:" > > > > > > > > > > Now change only the "hosts" middle field to AAA, to avoid confusion > > > > > GTM>D GETENV^%ZOSV > > > > > > > > > > GTM>ZWRITE > > > > > Y="VAH^ROU^AAA^ROU:AAA" > > > > > > > > > > GTM> > > > > > > > > > > > > > > > > > > > > Here is the code in ^%ZOSV, you can see what the problem is, the -s > > > > > argument tells GTM to retrieve the shortname from the hosts file, and > > > > > it > > > > > doesn't work if there is no longname. What name it gets, I think MUST > > > > > correspond to Volume Set, in order for things to work right. I think > > > > > > > > > also, > > > > > > > > > > > > > Volume Set should be three letters. > > > > > > > > > > GETENV ;Get environment Return Y='UCI^VOL^NODE^BOX LOOKUP' > > > > > N %HOST,%V S %V=^%ZOSF("PROD"),%HOST=$$RETURN("hostname -s") > > > > > S Y=$TR(%V,",","^")_"^"_%HOST_"^"_$P(%V,",",2)_":"_%HOST > > > > > Q > > > > > > > > > > RETURN(%COMMAND) ; ** Private Entry Point: execute a shell command & > > > > > > > > > return > > > > > > > > > > > > > the resulting value ** > > > > > ; > > > > > ; %COMMAND is the string value of the Linux command > > > > > N %VALUE S %VALUE="" ; value to return > > > > > N %FILE S %FILE=$$TEMP_"RET"_$J_".txt" ; temporary results file > > > > > ZSYSTEM %COMMAND_" > "_%FILE ; execute command & save result > > > > > O %FILE:(REWIND) U %FILE R:'$ZEOF %VALUE C %FILE:(DELETE) ; > > > > > fetch > > > > > value & delete file > > > > > ; > > > > > QUIT %VALUE ; return value > > > > > ; > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: [EMAIL PROTECTED] > > > > > [mailto:[EMAIL PROTECTED] On Behalf Of Nancy > > > > > > > > > E. > > > > > > > > > > > > > Anthracite > > > > > Sent: Saturday, November 20, 2004 4:45 AM > > > > > To: hardhats-members@lists.sourceforge.net > > > > > Subject: Re: [Hardhats-members] Volume Sets > > > > > > > > > > Please show me the output of GETENV.... and hostname -s and what > > > > > Linux > > > > > distribution are you using? ROU is usually the volume set. I am > > > > > using > > > > > Fedora Core 2. I am glad it worked but I am beginning to think it was > > > > > > > > > dumb > > > > > > > > > > > > > luck! > > > > > > > > > > On Saturday 20 November 2004 03:28 am, Daniel Gray wrote: > > > > > > > > > > > Thanks Nancy, > > > > > > > > > > > > I'm not certain how to post a continuation to a thread. > > > > > > Just reply, I guess, I can't find any way on sourceforge. > > > > > > > > > > > > Nancy, Your advice worked. I did have to experiment a little. > > > > > > Actually the hosts file seems to have the shortname in the middle. > > > > > > > > > > > > 127.0.0.1 ROU x1-6-00-e0-18-62-af-ec > > > > > > > > > > > > I wonder if the long name is a mac address. It was the default > > > > > > when I > > > > > > installed Linux. > > > > > > > > > > > > Now Taskman works, the device manager seems to work, > > > > > > Now I need to get some devices working. > > > > > > > > > > > > Anybody able to queue to a USB printer ? > > > > > > > > > > > > -----Original Message----- > > > > > > From: [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] On Behalf Of > > > > > > Nancy > > > > > > > > > > > E. > > > > > > > > > > > > > > > > Anthracite > > > > > > Sent: Friday, November 19, 2004 8:54 PM > > > > > > To: hardhats-members@lists.sourceforge.net > > > > > > Subject: Re: [Hardhats-members] Volume Sets > > > > > > > > > > > > Let's try that again. I posted this in the wrong thread previously. > > > > > > > > > > > > It gets the name from hostname -s. In my system, that traces back > > > > > > to /etc/hosts and to set the name to Morphix, for instance, this is > > > > > > what you > > > > > > > > > > > > have to do in the file: > > > > > > > > > > > > # Do not remove the following line, or various programs > > > > > > # that require network functionality will fail. > > > > > > 127.0.0.1 Morphix.localdomain Morphix > > > > > > > > > > > > On Friday 19 November 2004 11:00 pm, Daniel Gray wrote: > > > > > > > > > > > > > Anybody: > > > > > > > > > > > > > > I am looking for information about the relationship between Linux > > > > > > > > > > > "Host > > > > > > > > > > > > > > > Name", Vista "Volume Set", and Taskman "Box-Pair". %ZOSV does a > > > > > > > function to recover the Linux "hostname", and this information is > > > > > > > > > > > used, > > > > > > > > > > > > > > > for instance, by %ZIS to determine whether the requested device is > > > > > > > within the reach of the user. Taskman also uses Linux "hostname" > > > > > > > to > > > > > > > see if there is a box-pair defined, so taskman can run on specific > > > > > > > server nodes. > > > > > > > > > > > > > > I am new to Linux, is there any way to change the "hostname"? > > > > > > > When I > > > > > > > installed Linux, I took the default and it is 20 characters long. > > > > > > > Vista likes simple names, like VAH, AAA, etc. > > > > > > > > > > > > > > I think, without a proper setup of hostname, volumeset, box-pair, > > > > > > > and > > > > > > > so forth, neither deviceman nor taskman will work correctly. At > > > > > > > > > > > least, > > > > > > > > > > > > > > > I could not get SemiVistAViva0.4 to operate correctly, and I > > > > > > > suspect > > > > > > > this is the problem. I found after loading it that in Box-pair > > > > > > > there > > > > > > > was an assumed a name for my computer. GETENV^%ZOSV gets hostname > > > > > > > for many VistA functions. > > > > > > > > > > > > > > Is there any guidance out there for this issue ? > > > > > > > > > > > > > > Dan Gray > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.Net email is sponsored by: InterSystems CACHE > > > > > > > FREE OODBMS DOWNLOAD - A multidimensional database that combines > > > > > > > robust object and relational technologies, making it a perfect > > > > > > > match > > > > > > > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > > > > > > > _______________________________________________ > > > > > > > Hardhats-members mailing list > > > > > > > Hardhats-members@lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > > > > > > > *************************************************************************** > > This electronic mail transmission contains confidential and/or privileged > > information intended only for the person(s) named. > > Any use, distribution, copying or disclosure by another person is strictly > > prohibited. > > *************************************************************************** > > > > NOTE: Ce courriel est destine exclusivement au(x) destinataire(s) > > mentionne(s) ci-dessus et peut contenir de l'information privilegiee, > > confidentielle et/ou dispensee de divulgation aux termes des lois > > applicables. Si vous avez recu ce message par erreur, ou s'il ne vous est > > pas destine, veuillez le mentionner immediatement a l'expediteur et effacer > > ce courriel. > > > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > Hardhats-members mailing list > > Hardhats-members@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > > ------------------------------------------------------- This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register by 3/29 & save $300 http://ads.osdn.com/?ad_idh83&alloc_id149&op=click _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members