Re: [Hardhats-members] Volume Sets
GT.M is MUMPS. The biggest difference from other MUMPS in my view is that it attempts to fit in more natively with its host operating system and doesn't try to pretend that it is a complete programming environment of itself, as MUMPS generally was 20-30 years ago. After configuration, you could use GT.M almost exclusively in a familiar MUMPS-is-everything kind of mode, but why would you? That would ignore most of the power and capabilities of a modern operating system like Linux - and all of the wonderful tools developed for and in other languages. Greg Kreis wrote: Thanks for the run down. I am creating the acculturation CD that bhaskar recommended. Sounds like quite a different culture to adopt. Must have been fun to map the Kernel to this platform ;-) ;-) Jim Self wrote: Greg Kreis wrote: I can understand that the Volume concept is handled by the idea of a path in Linux, right?] It's been more than 20 years since I worked on DSM, so their concept of UCI (User Class Identifier) and volume sets is not very fresh in my mind. Still, I am pretty sure the answer is no. Hmm... Are the globals just Linux files? No, again. Globals are stored in special data files with .dat extention. The default installations put all globals into a single mumps.dat file but in production systems you would generally break out large globals into separate files, like patients.dat and mail.dat, or groups several related medium sized globals together in one file. The different .dat files can have different ownership and permissions settings and different settings for journalling as well so some could be configured read only for most users or optimized for use as temporary scratch space, etc. If so, wouldn't the directory take the place of the UCI? A globals directory is actually a special file (mumps.gld, by default) that describes a set of .dat files and how globals will be mapped to them. But I guess the next question is how is this exposed inside GT.M? The current global directory is held in the variable $zgbldir and the current routine mapping is in $zroutines. You can NEW these variables and SET them to different values to temporarily reference a different mapping of globals and/or routines. They are initialized with the environment variables gtmgbldir and gtmroutines. I think I recall that you can also reference a global directory explicitly via extended global syntax (i.e. ^[gbldir]gloname), but I haven't had occasion to use that in a very long time. --- Jim Self Systems Architect, Lead Developer VMTH Computer Services, UC Davis (http://www.vmth.ucdavis.edu/us/jaself) --- 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_id=6883alloc_id=15149op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: SPAM-LOW: Re: [Hardhats-members] Volume Sets
RL 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 GTMh -----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 dj 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y="VAH^ROU^^ROU:" Now change only the "hosts" middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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:
Re: SPAM-LOW: Re: [Hardhats-members] Volume Sets
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 GTMh -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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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
Re: [Hardhats-members] Volume Sets
Greg Kreis wrote: I can understand that the Volume concept is handled by the idea of a path in Linux, right?] It's been more than 20 years since I worked on DSM, so their concept of UCI (User Class Identifier) and volume sets is not very fresh in my mind. Still, I am pretty sure the answer is no. Hmm... Are the globals just Linux files? No, again. Globals are stored in special data files with .dat extention. The default installations put all globals into a single mumps.dat file but in production systems you would generally break out large globals into separate files, like patients.dat and mail.dat, or groups several related medium sized globals together in one file. The different .dat files can have different ownership and permissions settings and different settings for journalling as well so some could be configured read only for most users or optimized for use as temporary scratch space, etc. If so, wouldn't the directory take the place of the UCI? A globals directory is actually a special file (mumps.gld, by default) that describes a set of .dat files and how globals will be mapped to them. But I guess the next question is how is this exposed inside GT.M? The current global directory is held in the variable $zgbldir and the current routine mapping is in $zroutines. You can NEW these variables and SET them to different values to temporarily reference a different mapping of globals and/or routines. They are initialized with the environment variables gtmgbldir and gtmroutines. I think I recall that you can also reference a global directory explicitly via extended global syntax (i.e. ^[gbldir]gloname), but I haven't had occasion to use that in a very long time. --- Jim Self Systems Architect, Lead Developer VMTH Computer Services, UC Davis (http://www.vmth.ucdavis.edu/us/jaself) --- 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_id=6883alloc_id=15149op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Volume Sets
Thanks for the run down. I am creating the acculturation CD that bhaskar recommended. Sounds like quite a different culture to adopt. Must have been fun to map the Kernel to this platform ;-) ;-) Jim Self wrote: Greg Kreis wrote: I can understand that the Volume concept is handled by the idea of a path in Linux, right?] It's been more than 20 years since I worked on DSM, so their concept of UCI (User Class Identifier) and volume sets is not very fresh in my mind. Still, I am pretty sure the answer is no. Hmm... Are the globals just Linux files? No, again. Globals are stored in special data files with .dat extention. The default installations put all globals into a single mumps.dat file but in production systems you would generally break out large globals into separate files, like patients.dat and mail.dat, or groups several related medium sized globals together in one file. The different .dat files can have different ownership and permissions settings and different settings for journalling as well so some could be configured read only for most users or optimized for use as temporary scratch space, etc. If so, wouldn't the directory take the place of the UCI? A globals directory is actually a special file (mumps.gld, by default) that describes a set of .dat files and how globals will be mapped to them. But I guess the next question is how is this exposed inside GT.M? The current global directory is held in the variable $zgbldir and the current routine mapping is in $zroutines. You can NEW these variables and SET them to different values to temporarily reference a different mapping of globals and/or routines. They are initialized with the environment variables gtmgbldir and gtmroutines. I think I recall that you can also reference a global directory explicitly via extended global syntax (i.e. ^[gbldir]gloname), but I haven't had occasion to use that in a very long time. --- Jim Self Systems Architect, Lead Developer VMTH Computer Services, UC Davis (http://www.vmth.ucdavis.edu/us/jaself) --- 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_id=6883alloc_id=15149op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
RE: [Hardhats-members] Volume Sets
Yes, I just discovered the same things. My ^%ZOSV (as installed by ^ZTMGRSET) was from the copy of ^ZOSVGUX. It doesn't use (like one would naturally expect) ^ZOSVGTM. And the %ZOSVGTM has the $ZGETSYI(NODENAME) logic. And that doesn't work, naturally, probably built for GTM on a VAX, as Fil indicated. Oh, yes. I K ^%ZOSF before I do ^ZTMGRSET, sometimes that helps. In the old days, I stored locally developed functions there, but I wouldn't do that anymore, I don't think. So I think it is safe to kill. Nancy, I couldn't replicate the information I gave you earlier today. Honest, I was giving you what I was getting, right off the system to you. Now I can't make it work. D GETENV^%ZOSV doesn't give me the same answer today as yesterday. It can't find a hostname now. I suspect a change on reboot. So much to learn. And you are right, when you start messing around with hostname, changing it, the OS doesn't like it a bit. I finally got Redhat9 to the point that no application would talk to me. And I didn't think I had been that rude to it. Something I said, maybe, or the way I said it. So I need to learn some more before I start messing around with that. The bottom line is yet there. %ZOSV (as being distributed on worldvista/sourceforge) seems to have a problem that I haven't solved. I'd like to know how anyone can get devices and taskman to work right with this distribution. It might become important later. I am running Redhat9, Kernel 2.4.20-8, GTM 4.4-004 Linux x86, and VistA from OpenVistA SemiViva. I had been told that was a more up-to-date copy than the hardhat distribution. I think I also discovered that I need to delete replies off the messages that I send to Sourceforge lists, it replicates the thread as well, and you get confusing threads. Dan GTMh exit --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
RE: [Hardhats-members] Volume Sets
Just a side note about changing hostnames on Linux systems. Ther are numerous ways this can be done. Theere is a hostname command that will be temporay(untill you reboot). In Redhat I believe there is a file you can edit that sets the hostname at boottime. I believe that the file is somewhere in the /etc/sysconfig/ directory it is farily deep and there is documentation for this. The key for communication is if you change the hostname you also have to edit the /etc/hosts file so that the new name can be translated into an IP. for local communication this line is: 127.0.0.1 full hostname short hostname or alias Thank you, Marc Aylesworth Health Specialist Technician Oneida Indian Nation 223 Genesee Street Oneida, New York 13421 (315) 829-8909 This electronic transmission is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. You are also requested to please notify the sender immediately by e-mail and delete the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Gray Sent: Monday, November 22, 2004 4:45 AM To: [EMAIL PROTECTED] Subject: RE: [Hardhats-members] Volume Sets Yes, I just discovered the same things. My ^%ZOSV (as installed by ^ZTMGRSET) was from the copy of ^ZOSVGUX. It doesn't use (like one would naturally expect) ^ZOSVGTM. And the %ZOSVGTM has the $ZGETSYI(NODENAME) logic. And that doesn't work, naturally, probably built for GTM on a VAX, as Fil indicated. Oh, yes. I K ^%ZOSF before I do ^ZTMGRSET, sometimes that helps. In the old days, I stored locally developed functions there, but I wouldn't do that anymore, I don't think. So I think it is safe to kill. Nancy, I couldn't replicate the information I gave you earlier today. Honest, I was giving you what I was getting, right off the system to you. Now I can't make it work. D GETENV^%ZOSV doesn't give me the same answer today as yesterday. It can't find a hostname now. I suspect a change on reboot. So much to learn. And you are right, when you start messing around with hostname, changing it, the OS doesn't like it a bit. I finally got Redhat9 to the point that no application would talk to me. And I didn't think I had been that rude to it. Something I said, maybe, or the way I said it. So I need to learn some more before I start messing around with that. The bottom line is yet there. %ZOSV (as being distributed on worldvista/sourceforge) seems to have a problem that I haven't solved. I'd like to know how anyone can get devices and taskman to work right with this distribution. It might become important later. I am running Redhat9, Kernel 2.4.20-8, GTM 4.4-004 Linux x86, and VistA from OpenVistA SemiViva. I had been told that was a more up-to-date copy than the hardhat distribution. I think I also discovered that I need to delete replies off the messages that I send to Sourceforge lists, it replicates the thread as well, and you get confusing threads. Dan GTMh exit --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Volume Sets
Thanks Dan and Fil for pointing out that the operative routine for linux is ^ZOSVGUX, not ^ZOSVGTM -mystery solved. I knew it was GUX, but the GTM name jumped out and grabbed me! Lloyd - Original Message - From: Daniel Gray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 22, 2004 4:44 AM Subject: RE: [Hardhats-members] Volume Sets Yes, I just discovered the same things. My ^%ZOSV (as installed by ^ZTMGRSET) was from the copy of ^ZOSVGUX. It doesn't use (like one would naturally expect) ^ZOSVGTM. And the %ZOSVGTM has the $ZGETSYI(NODENAME) logic. And that doesn't work, naturally, probably built for GTM on a VAX, as Fil indicated. Oh, yes. I K ^%ZOSF before I do ^ZTMGRSET, sometimes that helps. In the old days, I stored locally developed functions there, but I wouldn't do that anymore, I don't think. So I think it is safe to kill. Nancy, I couldn't replicate the information I gave you earlier today. Honest, I was giving you what I was getting, right off the system to you. Now I can't make it work. D GETENV^%ZOSV doesn't give me the same answer today as yesterday. It can't find a hostname now. I suspect a change on reboot. So much to learn. And you are right, when you start messing around with hostname, changing it, the OS doesn't like it a bit. I finally got Redhat9 to the point that no application would talk to me. And I didn't think I had been that rude to it. Something I said, maybe, or the way I said it. So I need to learn some more before I start messing around with that. The bottom line is yet there. %ZOSV (as being distributed on worldvista/sourceforge) seems to have a problem that I haven't solved. I'd like to know how anyone can get devices and taskman to work right with this distribution. It might become important later. I am running Redhat9, Kernel 2.4.20-8, GTM 4.4-004 Linux x86, and VistA from OpenVistA SemiViva. I had been told that was a more up-to-date copy than the hardhat distribution. I think I also discovered that I need to delete replies off the messages that I send to Sourceforge lists, it replicates the thread as well, and you get confusing threads. Dan GTMh exit --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
RE: [Hardhats-members] Volume Sets
I K ^%ZOSF before I do ^ZTMGRSET, sometimes that helps It's best to ALWAYS do that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Gray Sent: Monday, November 22, 2004 1:45 AM To: [EMAIL PROTECTED] Subject: RE: [Hardhats-members] Volume Sets Yes, I just discovered the same things. My ^%ZOSV (as installed by ^ZTMGRSET) was from the copy of ^ZOSVGUX. It doesn't use (like one would naturally expect) ^ZOSVGTM. And the %ZOSVGTM has the $ZGETSYI(NODENAME) logic. And that doesn't work, naturally, probably built for GTM on a VAX, as Fil indicated. Oh, yes. I K ^%ZOSF before I do ^ZTMGRSET, sometimes that helps. In the old days, I stored locally developed functions there, but I wouldn't do that anymore, I don't think. So I think it is safe to kill. Nancy, I couldn't replicate the information I gave you earlier today. Honest, I was giving you what I was getting, right off the system to you. Now I can't make it work. D GETENV^%ZOSV doesn't give me the same answer today as yesterday. It can't find a hostname now. I suspect a change on reboot. So much to learn. And you are right, when you start messing around with hostname, changing it, the OS doesn't like it a bit. I finally got Redhat9 to the point that no application would talk to me. And I didn't think I had been that rude to it. Something I said, maybe, or the way I said it. So I need to learn some more before I start messing around with that. The bottom line is yet there. %ZOSV (as being distributed on worldvista/sourceforge) seems to have a problem that I haven't solved. I'd like to know how anyone can get devices and taskman to work right with this distribution. It might become important later. I am running Redhat9, Kernel 2.4.20-8, GTM 4.4-004 Linux x86, and VistA from OpenVistA SemiViva. I had been told that was a more up-to-date copy than the hardhat distribution. I think I also discovered that I need to delete replies off the messages that I send to Sourceforge lists, it replicates the thread as well, and you get confusing threads. Dan GTMh exit --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Volume Sets
$ZGETSYI() is not a GT.M function. $ZTRNLNM(HOSTNAME) or $ZTRNLNM(HOST) should do the trick assuming that $HOSTNAME and/or $HOST are set in the environment (as both are on my laptop; bash provides $HOSTNAME and csh provides $HOST according to the manuals; it's easy enough to ensure that both are set in the environment). If the unlikely scenario that the environment does not include $HOST or $HOSTNAME, you can use something like the following (1 line in vintage M programmer format, so ignore line breaks introduced by e-mail): GTMN f S f=/tmp/VistA_$J_.tmp ZSY hostname -s _f O f U f R h U $P C f:DELETE K f W h bhaskark -- Bhaskar On Sun, 2004-11-21 at 15:34, Nancy E. Anthracite wrote: I knew right after I hit the send key that I should have listed you to ask for help since there was a good chance you would be the first to answer. I get the same thing on my out of date Fedora Core 2 installation when I ask for $ZGETSYI(NODENAME), but the ZOSV being used in OV3 its not from ZOSVGTM.m. The relevant section of _ZOSV.m that is being used (I think), there is 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 ; So now maybe we need help from the recent traveler to Poland on $ZGETSYI(NODENAME). Just from experimentation, though, I think it is safe to say that I know where the hostname -s coming from in my system. I am just not sure where the volume is coming from except that it is supposed to be the same in ^%ZOSF(PROD) as in ^%ZOSF(VOL) as best I can tell by looking at the code somewhere else, but I don't know where I found it off hand. Anyway, I was trying to figure out what determines ^%ZOSF(PROD), and I do not know how one goes about figuring that out. I looked at the Data dictionary for volume set and uci association, and I know what everything I am looked at means, but I saw no mention of ZOSF in there. On Sunday 21 November 2004 01:18 pm, Lloyd Milligan wrote: I'm not sure what the question is but it is the so-called box name that refers to something outside VistA. In the old GT.M / VistA environment that I am running (Red Hat 7.1 and GT.M V4.3-001A) the box value comes from 'hostname -s' via a GT.M zsystem call. However, kernel patch 275 has $ZGETSYI(NODENAME). When I try this, GT.M says - %GTM-E-FNOTONSYS, Function or special variable is not supported by this operating system Lloyd - Original Message - From: Nancy E. Anthracite [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 20, 2004 8:33 PM 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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
Re: [Hardhats-members] Volume Sets
on the same page of music before our conversation will make sense. Dan GTMh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Beza, Fil Sent: Sunday, November 21, 2004 3:07 PM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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: [EMAIL PROTECTED] 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.1ROU 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
Re: [Hardhats-members] Volume Sets
I'm not sure what the question is but it is the so-called box name that refers to something outside VistA. In the old GT.M / VistA environment that I am running (Red Hat 7.1 and GT.M V4.3-001A) the box value comes from 'hostname -s' via a GT.M zsystem call. However, kernel patch 275 has $ZGETSYI(NODENAME). When I try this, GT.M says - %GTM-E-FNOTONSYS, Function or special variable is not supported by this operating system Lloyd - Original Message - From: Nancy E. Anthracite [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 20, 2004 8:33 PM 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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: [EMAIL PROTECTED] 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.1ROU 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: [EMAIL PROTECTED] 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
Re: [Hardhats-members] Volume Sets
I knew right after I hit the send key that I should have listed you to ask for help since there was a good chance you would be the first to answer. I get the same thing on my out of date Fedora Core 2 installation when I ask for $ZGETSYI(NODENAME), but the ZOSV being used in OV3 its not from ZOSVGTM.m. The relevant section of _ZOSV.m that is being used (I think), there is 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 ; So now maybe we need help from the recent traveler to Poland on $ZGETSYI(NODENAME). Just from experimentation, though, I think it is safe to say that I know where the hostname -s coming from in my system. I am just not sure where the volume is coming from except that it is supposed to be the same in ^%ZOSF(PROD) as in ^%ZOSF(VOL) as best I can tell by looking at the code somewhere else, but I don't know where I found it off hand. Anyway, I was trying to figure out what determines ^%ZOSF(PROD), and I do not know how one goes about figuring that out. I looked at the Data dictionary for volume set and uci association, and I know what everything I am looked at means, but I saw no mention of ZOSF in there. On Sunday 21 November 2004 01:18 pm, Lloyd Milligan wrote: I'm not sure what the question is but it is the so-called box name that refers to something outside VistA. In the old GT.M / VistA environment that I am running (Red Hat 7.1 and GT.M V4.3-001A) the box value comes from 'hostname -s' via a GT.M zsystem call. However, kernel patch 275 has $ZGETSYI(NODENAME). When I try this, GT.M says - %GTM-E-FNOTONSYS, Function or special variable is not supported by this operating system Lloyd - Original Message - From: Nancy E. Anthracite [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 20, 2004 8:33 PM 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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
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: [EMAIL PROTECTED] 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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: [EMAIL PROTECTED] 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.1ROU 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: [EMAIL PROTECTED] 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
RE: [Hardhats-members] Volume Sets
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 GTMh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Beza, Fil Sent: Sunday, November 21, 2004 3:07 PM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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
Re: [Hardhats-members] Volume Sets
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 GTMh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Beza, Fil Sent: Sunday, November 21, 2004 3:07 PM To: [EMAIL PROTECTED] 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
RE: [Hardhats-members] Volume Sets
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.1ROU 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: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members -- Nancy Anthracite --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
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.1ROU 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: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members -- Nancy Anthracite --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
RE: [Hardhats-members] Volume Sets
Daniel, R.E. USB printer, I have been working on printer issues too. Look for some posts recently regarding Printer Overview. I think what we will have to do is to get the printer configured at a linux level, then have VistA send a command to print to the printer. Kevin --- Daniel Gray [EMAIL PROTECTED] 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.1ROU 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: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members -- Nancy Anthracite --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
RE: [Hardhats-members] Volume Sets
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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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: [EMAIL PROTECTED] 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.1ROU 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: [EMAIL PROTECTED] 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
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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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: [EMAIL PROTECTED] 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.1ROU 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: [EMAIL PROTECTED] 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
RE: [Hardhats-members] Volume Sets
What !?!?! Fedora Core 3's been out for 12 whole days!!! Since we usually have some linux stuff in thread, here's some info: To get distros, try using http://linuxiso.org Here's the direct link to getting FC3: http://www.linuxiso.org/distro.php?distro=64 Most of the pages will have BitTorrent links at the top, FC3 has: http://torrent.dulug.duke.edu/ And the best (IMHO) torrent client is Azureus (Java, slick, GUI, eye-candy) http://azureus.sourceforge.net/ Nancy - you really need to get updated. Your system is 2 days from being out of date - according to Internet Time. :) /David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nancy E. Anthracite Sent: Saturday, November 20, 2004 8:33 PM To: [EMAIL PROTECTED] 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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: [EMAIL PROTECTED] 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.1ROU 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
Re: [Hardhats-members] Volume Sets
Isn't it now Fedora Core 3 TEST 3? And BitTorrent totally locked up my machine a few days ago. I couldn't even SSH in to bail it out, and before it locked up, it was SLOWLY downloading. I gave up and decided to wait for the nontest release, and a cautious 2-3 weeks beyond. I was trying to get FC3 to send to the doc in the Philippines who want to install VistA on GTM/Linux but only has dial-up. So he, too, is going to be behind for now at least a while because I sent him FC2. I also sent him Debian after considerable difficulty. Know where I was finally able to download Debian using simple http with virtually no problems and quickly? From a Malaysian mirror! On Saturday 20 November 2004 10:55 pm, David Sommers wrote: What !?!?! Fedora Core 3's been out for 12 whole days!!! Since we usually have some linux stuff in thread, here's some info: To get distros, try using http://linuxiso.org Here's the direct link to getting FC3: http://www.linuxiso.org/distro.php?distro=64 Most of the pages will have BitTorrent links at the top, FC3 has: http://torrent.dulug.duke.edu/ And the best (IMHO) torrent client is Azureus (Java, slick, GUI, eye-candy) http://azureus.sourceforge.net/ Nancy - you really need to get updated. Your system is 2 days from being out of date - according to Internet Time. :) /David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nancy E. Anthracite Sent: Saturday, November 20, 2004 8:33 PM To: [EMAIL PROTECTED] 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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: [EMAIL PROTECTED] 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
RE: [Hardhats-members] Volume Sets
Depending on your bitTorrent client, the locking up is probably software/OS related - you'll find Azureus reliable. As for FC3, it's the real thing - it's out of test. And since it's fresh, I had well over 300 peers to download from a few days ago. It was maxing out my download pipe. /David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nancy E. Anthracite Sent: Saturday, November 20, 2004 11:30 PM To: Hardhats Subject: Re: [Hardhats-members] Volume Sets Isn't it now Fedora Core 3 TEST 3? And BitTorrent totally locked up my machine a few days ago. I couldn't even SSH in to bail it out, and before it locked up, it was SLOWLY downloading. I gave up and decided to wait for the nontest release, and a cautious 2-3 weeks beyond. I was trying to get FC3 to send to the doc in the Philippines who want to install VistA on GTM/Linux but only has dial-up. So he, too, is going to be behind for now at least a while because I sent him FC2. I also sent him Debian after considerable difficulty. Know where I was finally able to download Debian using simple http with virtually no problems and quickly? From a Malaysian mirror! On Saturday 20 November 2004 10:55 pm, David Sommers wrote: What !?!?! Fedora Core 3's been out for 12 whole days!!! Since we usually have some linux stuff in thread, here's some info: To get distros, try using http://linuxiso.org Here's the direct link to getting FC3: http://www.linuxiso.org/distro.php?distro=64 Most of the pages will have BitTorrent links at the top, FC3 has: http://torrent.dulug.duke.edu/ And the best (IMHO) torrent client is Azureus (Java, slick, GUI, eye-candy) http://azureus.sourceforge.net/ Nancy - you really need to get updated. Your system is 2 days from being out of date - according to Internet Time. :) /David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nancy E. Anthracite Sent: Saturday, November 20, 2004 8:33 PM To: [EMAIL PROTECTED] 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE 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 GTMD GETENV^%ZOSV GTMZWRITE 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 GTMD GETENV^%ZOSV hostname: Unknown host GTMZWRITE Y=VAH^ROU^^ROU: Now change only the hosts middle field to AAA, to avoid confusion GTMD GETENV^%ZOSV GTMZWRITE 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
[Hardhats-members] Volume Sets
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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
RE: [Hardhats-members] Volume Sets
Well hello Dan. I looked for you when I went to Albuquerque but they said you and Janet moved back to Portland. Glad you're still interested in VistA -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Gray Sent: Friday, November 19, 2004 8:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [Hardhats-members] Volume Sets 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members