INFO-VAX Wed, 07 May 2008 Volume 2008 : Issue 254 Contents: Re: Easiest text processing on a Windoz PC ? Re: Easiest text processing on a Windoz PC ? Re: Easiest text processing on a Windoz PC ? How to calculate number of files on a disk Re: How to calculate number of files on a disk Re: How to calculate number of files on a disk max disk size in ovms 6.2 Re: Maximum Disk Size VMS 6.2? Re: Maximum Disk Size VMS 6.2? Re: Maximum DIsk Size VMS 6.2? Re: Maximum Disk Size VMS 6.2? Re: Maximum Disk Size VMS 6.2? Re: Maximum Disk Size VMS 6.2? Re: Maximum Disk Size VMS 6.2? Re: OT Something pretty cool. Re: OT: Need HTML Help Re: rx2660, rx3600, and rx6600 Shutdown messages not showing up in operator log Trying to get started with TCPIP programming Re: Trying to get started with TCPIP programming Re: Trying to get started with TCPIP programming Re: Trying to get started with TCPIP programming RE: Trying to get started with TCPIP programming Re: Using sftp from OpenVMS to Windows - How to avoid version numbers ? ?? Re: What systems can use USB? ---------------------------------------------------------------------- Date: Tue, 6 May 2008 11:05:36 -0700 (PDT) From: Hein RMS van den Heuvel Subject: Re: Easiest text processing on a Windoz PC ? Message-ID: On May 6, 12:24=A0pm, Didier_Toulouse wrote: > Today, when I need to remove duplicates from an EXCEL sheet 30.000 > lines long, I have to build a .csv, upload it to a VMS machine, do a > sort, then a merge/nodup then bring back the resulting file to my PC > and load it back to EXCEL. Salut Didier! I'm suprised that you can not just do it all in EXCEL !? > What would be the easiest tool/language to use to do text processing Personally I would probably grab PERL (ActiveState?) to do a job as desribed, and have it do the sorting. Next choice for me would be Unix tools like 'sort' and 'uniq' and 'comm' and 'cut' under cygwin. Why go to the VMS box? I know and like OpenVMS SORT, but does it really offer that much more. Unlike unix sort it does not do (CSV) 'fields', just fixed sized columns !? Cheers, Hein. ------------------------------ Date: Tue, 06 May 2008 17:20:44 -0400 From: "Richard B. Gilbert" Subject: Re: Easiest text processing on a Windoz PC ? Message-ID: Didier_Toulouse wrote: > Today, when I need to remove duplicates from an EXCEL sheet 30.000 > lines long, I have to build a .csv, upload it to a VMS machine, do a > sort, then a merge/nodup then bring back the resulting file to my PC > and load it back to EXCEL. > > What would be the easiest tool/language to use to do text processing > on a Windows machine pls? Wipe the Windows and install Linux! Or, perhaps, ask your question on a Windows newsgroup. ------------------------------ Date: Tue, 6 May 2008 19:43:11 -0700 (PDT) From: chrisj.doran@proemail.co.uk Subject: Re: Easiest text processing on a Windoz PC ? Message-ID: On 6 May, 18:24, Didier_Toulouse wrote: > Today, when I need to remove duplicates from an EXCEL sheet 30.000 > lines long, I have to build a .csv, upload it to a VMS machine, do a > sort, then a merge/nodup then bring back the resulting file to my PC > and load it back to EXCEL. > > What would be the easiest tool/language to use to do text processing > on a Windows machine pls? > > Thanks, > > D. It can be done in Excel -- Put "Delete duplicates", without the quotes, into Help for instructions, though it admittedly looks a bit involved. If you don't want to use Excel, have a look at CSVed from http://csved.sjfrancke.nl/index.html It has an append files function and its Misc tab has a remove duplicates option. I've never given CSVed 30,000 lines! Chris ------------------------------ Date: Tue, 6 May 2008 20:29:32 -0700 (PDT) From: lyndonbartels@yahoo.com Subject: How to calculate number of files on a disk Message-ID: Hello all, I'm working on gathering disk stats. I've used sys$getdviw to gather freeblocks, maxblocks, maxfiles, errorcount, mountcount... But I'd like to also get the number of files on a disk as well. In case I'm getting close to maxfiles, or incase the number of files increase/decrease over time. A sample of C code would be appreciated... Thanks, Lyndon ------------------------------ Date: Tue, 6 May 2008 21:31:00 -0700 (PDT) From: Hein RMS van den Heuvel Subject: Re: How to calculate number of files on a disk Message-ID: On May 6, 11:29=A0pm, lyndonbart...@yahoo.com wrote: > Hello all, > > I'm working on gathering disk stats. I've used sys$getdviw to gather > freeblocks, maxblocks, maxfiles, errorcount, mountcount... > > But I'd like to also get the number of files on a disk as well. In > case I'm getting close to maxfiles, or incase the number of files > increase/decrease over time. > > A sample of C code would be appreciated... > > Thanks, > > Lyndon Use DFU. http://www.digiater.nl/dfu.html Spawn that if need be. Of course you _could_ open [000000]INDEXF.SYS and read / 4096 blocks at VBN *4+1 Then proceed to count the bits. hth, Hein. ------------------------------ Date: Wed, 07 May 2008 14:46:54 +1000 From: Jim Duff Subject: Re: How to calculate number of files on a disk Message-ID: <48213441@dnews.tpgi.com.au> lyndonbartels@yahoo.com wrote: > Hello all, > > I'm working on gathering disk stats. I've used sys$getdviw to gather > freeblocks, maxblocks, maxfiles, errorcount, mountcount... > > But I'd like to also get the number of files on a disk as well. In > case I'm getting close to maxfiles, or incase the number of files > increase/decrease over time. > > > A sample of C code would be appreciated... > Extract the following code to count_files.c. Compile and link as follows: $ cc count_files $ link count_files An example run would be: $ write sys$output f$getdvi ("dsa0:", "devnam") _DSA0: $ set process/priv=readall $ mcr []count_files dsa0: Number of files on dsa0: is 41376 -------------------begin code--------------------------- #define __NEW_STARLET 1 #include #include #include #include #include #include #include #define errchk_sig(arg) if (!$VMS_STATUS_SUCCESS(arg)) (void)lib$signal (arg); /******************************************************************************/ static void usage (void) { (void)printf ("Usage: $ mcr []count_files device_name\n" "\twhere device name is the name of a disk, including" "\t the colon. For example, DSA0:\n"); } /******************************************************************************/ int main (int argc, char *argv[]) { static int r0_status; static unsigned int file_count = 0; static unsigned int context = 0; static int finished = FALSE; static char wild[] = "[000000...]*.*;*"; static char file[NAML$C_MAXRSS+1]; static char spec[64+sizeof(wild)]; static struct dsc$descriptor_s spec_d = { 0, DSC$K_DTYPE_T, DSC$K_CLASS_S, spec }; static struct dsc$descriptor_s file_d = { 0, DSC$K_DTYPE_T, DSC$K_CLASS_S, file }; if (argc < 2) { usage (); exit (EXIT_FAILURE); } spec_d.dsc$w_length = sprintf (spec, "%s%s", argv[1], wild); while (!finished) { file_d.dsc$w_length = NAML$C_MAXRSS; r0_status = lib$find_file (&spec_d, &file_d, &context, 0, 0, 0, 0); if (r0_status == RMS$_NMF) { finished = TRUE; continue; } else { errchk_sig (r0_status); } file_count++; } (void)printf ("Number of files on %s is %u\n", argv[1], file_count); return (EXIT_SUCCESS); } -----------end code---------------------------------- Additional examples of calls to system services and LIB$ routines can be found at You might like to look at the LIB$SET_SYMBOL call to set a DCL symbol rather than printing out the result. Cheers, Jim. -- www.eight-cubed.com ------------------------------ Date: Wed, 07 May 2008 00:55:05 GMT From: David Turner Subject: max disk size in ovms 6.2 Message-ID: The reason I want to sell him the raid array is rational It is cheaper than ANY HP option and it gets him a lot of space for a small amount of money. Yeah I am aware of the wonders of Vol Shadowing, but it requires the knowledge and the HP supported products which as we know, are now no longer sold and are getting very old. I sell what people ask for - when they ask me for hardware advice, as someone who has configured subsystems etc, I would always encourage someone to go with the cheapest and easiest option that works. I noted a little hostility from some of the comments. As a vendor you have to cater to a lot of different requirements. David ------------------------------ Date: Tue, 06 May 2008 18:53:10 +0100 From: "R.A.Omond" Subject: Re: Maximum Disk Size VMS 6.2? Message-ID: "Tom Linden" wrote in message news:op.uaqpvhfxhv4qyg@murphus... >> On Tue, 06 May 2008 06:59:57 -0700, David Turner, Island Computers >> wrote: >> >>> Can anyone enlighten me on this >>> Customer needs to archive using simple scsi up to 2TB >>> He is stuck with VMS 6.2-1H3 >>> >>> >>> HELP ! > >> Why not sell him a small Alpha connect to an HSG80 via dual HBAs >> and cluster it. David Turner, Island Computers wrote: > I'll ask > Cluster licenses though are not that cheap... (a) for such a trivial problem to solve (archiving ca. 2 Tbytes of data), clustering is way overkill (and, as pointed out, not cheap. Creative use of DECnet would suffice. (b) you might well be cheaper with a low-end Itanium system, perhaps with an MSA (modular storage array), with a bundle of 300 Gbyte disks. ------------------------------ Date: Tue, 6 May 2008 11:23:05 -0700 (PDT) From: BaxterD@tessco.com Subject: Re: Maximum Disk Size VMS 6.2? Message-ID: <0c877050-5154-4b03-99e8-d9f763b2066c@e39g2000hsf.googlegroups.com> On May 6, 1:53=A0pm, "R.A.Omond" wrote: > "Tom Linden" wrote in message > > news:op.uaqpvhfxhv4qyg@murphus... > =A0>> On Tue, 06 May 2008 06:59:57 -0700, David Turner, Island Computers= =A0>> wrote: > > =A0>> > =A0>>> =A0Can anyone enlighten me on this > =A0>>> Customer needs to archive using simple scsi up to 2TB > =A0>>> He is stuck with VMS 6.2-1H3 > =A0>>> > =A0>>> > =A0>>> HELP ! > =A0> > =A0>> Why not sell him a small Alpha connect to an HSG80 via dual HBAs > =A0>> and cluster it. > > David Turner, Island Computers wrote: > > > I'll ask > > Cluster licenses though are not that cheap... > > (a) for such a trivial problem to solve (archiving ca. 2 Tbytes > of data), clustering is way overkill (and, as pointed out, not > cheap. =A0Creative use of DECnet would suffice. > > (b) you might well be cheaper with a low-end Itanium system, > perhaps with an MSA (modular storage array), with a bundle of > 300 Gbyte disks. I think the client already has a cluster license (if it is the same guy as I was reading about in a different newsgroup). I read the earlier comment re. "shadowing is OK, but I'd rather sell a RAID solution" Isn't it more appropriate to give the customer what is best for them, not what you would rather sell. RAID is fine, however it doesn't provide the level of Data Security which comes from shadowing. All of the physical spindles in a RAID set need to be in the same physical storage subsystem, any problem which results in the destruction of that physical subsystem, destroys your data. Only shadowing allows multiple physical copies of the data (guaranteed to be up to date.). So shouldn't you be pushing some kind of HSx storage solution. Dave ------------------------------ Date: Tue, 6 May 2008 11:29:19 -0700 (PDT) From: ewilts@ewilts.org Subject: Re: Maximum DIsk Size VMS 6.2? Message-ID: <23ba808d-d219-4f30-983f-5669ac685ec8@24g2000hsh.googlegroups.com> On May 6, 11:09 am, "David Turner, Island Computers" wrote: > The hardware - a KZPBA-CA connected to one of our raid arrays with say 2TB > of storage > It is for medical archiving... their tapes are slowly degenerating > apparently... What I've done for our online archives is to use simple search lists in a logical name. This application predates big disks... The process that does the archiving grabs the last member of the search list and starts writing to it (if you delete from your archives, write to the disk with the most free space). The process that pulls the archive searches all the disks listed in the search list. Quick, dirty, and works on releases way, way back... Since they're currently writing to tape, they already have the ability to write to and read from multiple volumes. Substitute disk for tape but keep this functionality in there and you can go forever. Don't restrict the archives to a single physical volume. .../Ed ------------------------------ Date: Tue, 6 May 2008 15:04:48 -0400 From: "David Turner, Island Computers" Subject: Re: Maximum Disk Size VMS 6.2? Message-ID: I would but he needs huge amounts of backup and he is running an AS4100 with 6.2 At first he wanted an MSA1000 Then realised it was not SCSI He does not have a cluster license - all he wants to do is archive data on a big medium for simple replacement of tapes. That's why I think a RAID SCSI to SATA subsystem would do him just fine and dandy We can create 1TB or just less than disk volumes and he can backup as he likes with his 4100 UW SCSI box. I don't think there is a SCSI-SATA option from HP that will work with VOl. Shadowing, or am I wrong? DT -- David B Turner ============================================= Island Computers US Corp PO Box 86 Tybee GA 31328 Toll Free: 1-877 636 4332 x201, Mobile x251 Email: dturner@islandco.com International: 001 706 993 1787 Fax: 912 786 8505 Web: www.islandco.com ============================================= wrote in message news:0c877050-5154-4b03-99e8-d9f763b2066c@e39g2000hsf.googlegroups.com... On May 6, 1:53 pm, "R.A.Omond" wrote: > "Tom Linden" wrote in message > > news:op.uaqpvhfxhv4qyg@murphus... > >> On Tue, 06 May 2008 06:59:57 -0700, David Turner, Island Computers >> > >> wrote: > > >> > >>> Can anyone enlighten me on this > >>> Customer needs to archive using simple scsi up to 2TB > >>> He is stuck with VMS 6.2-1H3 > >>> > >>> > >>> HELP ! > > > >> Why not sell him a small Alpha connect to an HSG80 via dual HBAs > >> and cluster it. > > David Turner, Island Computers wrote: > > > I'll ask > > Cluster licenses though are not that cheap... > > (a) for such a trivial problem to solve (archiving ca. 2 Tbytes > of data), clustering is way overkill (and, as pointed out, not > cheap. Creative use of DECnet would suffice. > > (b) you might well be cheaper with a low-end Itanium system, > perhaps with an MSA (modular storage array), with a bundle of > 300 Gbyte disks. I think the client already has a cluster license (if it is the same guy as I was reading about in a different newsgroup). I read the earlier comment re. "shadowing is OK, but I'd rather sell a RAID solution" Isn't it more appropriate to give the customer what is best for them, not what you would rather sell. RAID is fine, however it doesn't provide the level of Data Security which comes from shadowing. All of the physical spindles in a RAID set need to be in the same physical storage subsystem, any problem which results in the destruction of that physical subsystem, destroys your data. Only shadowing allows multiple physical copies of the data (guaranteed to be up to date.). So shouldn't you be pushing some kind of HSx storage solution. Dave ------------------------------ Date: Tue, 6 May 2008 13:52:39 -0700 (PDT) From: Hein RMS van den Heuvel Subject: Re: Maximum Disk Size VMS 6.2? Message-ID: <3c7ffdc0-cf7f-4293-8d50-5f31b29a7fba@x35g2000hsb.googlegroups.com> On May 6, 3:04=A0pm, "David Turner, Island Computers" wrote: > I would but he needs huge amounts of backup and he is running an AS4100 wi= th > 6.2 Sounds like: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=3D1228= 637 > At first he wanted an MSA1000 > Then =A0realised it was not SCSI > > He does not have a cluster license - all he wants to do is archive data on= a > big medium for simple replacement of tapes. > That's why I think a RAID SCSI to SATA subsystem would do him just fine an= d > dandy Sure sounds like that! Perfect application for raid-5. Sounds like the actual storage cost is small compared to the labor/ project management needed. If the storage price is low enough, then just take two and take extra copy every now and then while gathering. Sounds like ongoing volume shadowing is overkill and even dangerous (accidental deletes are shadowed as well ;-) In fact... I would investigate whether you want to have the main storage sit on a number of larger (close to 1TB) volumes, and also clone that of related chunks of say 200 - 500 GB to be stored on individual cheap disks (sata, ide, 'E-books' :-) I would possibly want those extra copies NOT to be on an OpenVMS based file system, but a simple Fat32. Store those off-line and off-site with a simple labels: 1987, 1988, .. 2005H1, 2005H2, ... 2008Q1.. whatever. Have a plan to take a directory on each of those disk once a year to make sure they have not 'frozen over', and need to be re-cloned. Biggest question for me would be the need, or not, to encrypt (how) the (medical) data if it is allowed out of the doors. KISS. Cheers, Hein. ------------------------------ Date: Tue, 06 May 2008 14:00:17 -0700 From: "Tom Linden" Subject: Re: Maximum Disk Size VMS 6.2? Message-ID: On Tue, 06 May 2008 12:04:48 -0700, David Turner, Island Computers wrote: > I would but he needs huge amounts of backup and he is running an AS4100 > with > 6.2 > At first he wanted an MSA1000 > Then realised it was not SCSI > > He does not have a cluster license - all he wants to do is archive data > on a > big medium for simple replacement of tapes. > That's why I think a RAID SCSI to SATA subsystem would do him just fine > and > dandy > We can create 1TB or just less than disk volumes and he can backup as he > likes with his 4100 UW SCSI box. > I don't think there is a SCSI-SATA option from HP that will work with > VOl. > Shadowing, or am I wrong? > > DT > In that case a BA356 with three shadow sets each 300 to 500 GB does the trick -- PL/I for OpenVMS www.kednos.com ------------------------------ Date: Tue, 06 May 2008 17:16:08 -0400 From: "Richard B. Gilbert" Subject: Re: Maximum Disk Size VMS 6.2? Message-ID: R.A.Omond wrote: > David Turner, Island Computers wrote: >> Can anyone enlighten me on this >> Customer needs to archive using simple scsi up to 2TB >> He is stuck with VMS 6.2-1H3 > > Maximum volume size is 1 Tbyte. > > He'll need to make use of a bound volume set, which is > perfect for just such an application. He'll need to be aware of the disadvantages! Failure of either disk entails the potential loss/corruption of all the data since any file can be stored on either or both of the disks. Backup, if possible at all, is going to be a nightmare! ------------------------------ Date: Tue, 6 May 2008 18:51:06 -0400 From: "FredK" Subject: Re: OT Something pretty cool. Message-ID: But you missed the best quote from the movie: "Whoa, lady, I only speak two languages, English and bad English" I use it all the time. Other memorable lines: Police: Are you classified as human? Korben Dallas: Negative, I am a meat popsicle. DJ Ruby Rhod: What was that honey? It was BAD! It had no fire, no energy, no nothing! So tomorrow from 5 to 7 will you PLEASE act like you have more than a two word vocabulary. It must be green. Korben Dallas: Can I talk to you for a second? [Throws Ruby up against a wall] Korben Dallas: I didn't come here to play Pumbaa on the radio. So tomorrow from 5 to 7 your gonna give yourself a hand, green? DJ Ruby Rhod: Supergreen. "David J Dachtera" wrote in message news:481BD3CC.63B048BE@spam.comcast.net... > JF Mezei wrote: >> >> DaveG wrote: >> >> > The forth passive element ---- very cool indeed. >> > >> > Here's hoping they'll name the fifth element, when discovered: LEELOO. >> >> Leeloo's full name is/will be: >> "Leeloo Minai Lekarariba-Laminai-Tchai Ekbat De Sebat" > > Too bad Plavala Guna got bumped off. Wouldn't you love to hear that at > Ravinia? > > D.J.D. > > "Gimme the cash!" > > "Sir, please put your hands in the yellow circles." > "Smoke You!" > "Wrong answer." > > "The stones are in me." > > "Is Leeloo in trouble?" > "When is Leeloo not in trouble, Father?" > > "We're never gonna make it. *Sigh*" > > "Theoretically, ..." > "...no." > > "Aziz! Light!" > > "You're a monster, Zorg." > "I know." > > F.Y.I.: "Zorg" = the "Prisoner of Azkaban" (Sirius Black - same actor) > > "Just like driving a cab." ------------------------------ Date: Tue, 06 May 2008 23:04:09 -0400 From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= Subject: Re: OT: Need HTML Help Message-ID: <48211c21$0$90275$14726298@news.sunsite.dk> Neil Rieck wrote: > MS stole JavaScript then renamed it JScript. NetScape submitted the language for standardization. Usually the intention of standardizing a language is to have more than one implementation. (it was standardized as ECMA-262 and ISO/IEC 16262) > Next they extended > JScript then added features to IE5 to take advantage of those > (JScript) extensions hoping they could dominate businesses with it. True. But they are not the only one. Which is why JavaScript is a maintenance nightmare. > MS stole JAVA then reanamed it C# (just checkout similar JAVA and C# > progams side-by-side; some function names have been changed but that > is all) while the idea of the JVM became the .NET framework. Yep. On the other hand Java and JVM stole a few ideas from C++ and USCD Pascal. And C++ stole from C which stole from Algol. I am too young to know where Algol stole from. > Like > before, .NET was only supported on IE6 and later. .NET is not browser dependent. Libraries, compilers and IDE's usually are not. > MS's intention to > support C# and .NET on other platforms didn't amount to very much. True. The open source implementation Mono is 3-4 years behind MS. > There were other examples mentioned but the main thesis was that while > MS was trying to protect their investment in Windows, a world wide > army of programmers was trying to support online retailers where the > biggest problems were caused by non-compliant browsers (where IE was > the biggest offender). > > In today's world MS wants to beat Google. This is such a joke because > MS is the biggest purveyor of proprietary technology while Google is > one of the biggest promoters of Open technology. For example, many of > the Web 2.0 example technologies are based upon AJAX. For an example > of AJAX, surf over to "maps.google.com". As you drag the map around, > AJAX fills in the new missing blank areas. Google promotes: - web based software - free software and they use open source software. But only a small portion of their own stuff is open source. Arne ------------------------------ Date: Tue, 6 May 2008 16:02:55 -0400 From: "David Turner, Island Computers" Subject: Re: rx2660, rx3600, and rx6600 Message-ID: Are these SATA/PATA SAS or SCSI? -- David B Turner ============================================= Island Computers US Corp PO Box 86 Tybee GA 31328 Toll Free: 1-877 636 4332 x201, Mobile x251 Email: dturner@islandco.com International: 001 706 993 1787 Fax: 912 786 8505 Web: www.islandco.com ============================================= "Chuck Aaron" wrote in message news:fvq013$7nm$1@mailhub227.itcs.purdue.edu... > In reading the specifications for these Itanium servers, the largest > disk size available is 146gb. However, they do mention in the future that > 300gb disks will be available. Does anyone know when in the future these > disks will be available on these servers? > > Thanks, > Chuck ------------------------------ Date: Tue, 6 May 2008 20:34:12 -0700 (PDT) From: lyndonbartels@yahoo.com Subject: Shutdown messages not showing up in operator log Message-ID: <3ac56e6f-0ac6-4fad-96f2-04da84a68feb@s50g2000hsb.googlegroups.com> For some reason, shutdown messages have stopped showing up in the operator logs. OpenVMS v7.3-2 (some patches, not the latest though) It was working a month or so ago (the exact date escapes me at the moment) but then it has stopped. I haven't found anything that has changed around the effected date. The system is rebooted on a weekly basis, and currently it doesn't seem to be executing the syshutdwn.com file either. It seems the system shuts down OK. But there are no messages at the end of the operator log, just the lastest timestamp message. It's really wierd. Any thoughts/guesses would be appreciated... Thanks, Lyndon ------------------------------ Date: Tue, 6 May 2008 13:08:34 -0700 (PDT) From: tadamsmar Subject: Trying to get started with TCPIP programming Message-ID: We have gas analyzers that are interfaced via serial lines. The analyzers have the capability of communicating over ethernet using the same ascii protocol as for serial. I have the task of converting from serial to ethernet. But I don't know the first thing about TCPIP programming. I am looking at tcpip$examples. I am using VMS 7.3.2. tcpip$udp_server_qio.c tcpip$udp_client_qio.c client_qio writes and server_qio reads. I could modify client to write a command to the analyzer. But I am not sure how to read back the response from the analyzer? Or could I use: tcpip$udp_server_sock.c tcpip$udp_client_sock.c I could modify client_sock to send and recieve from the analyzer, I guess. The analyzer uses port 9880. I am not sure how to send and recieve in the same program. None of the examples both send and recieve a message. ------------------------------ Date: Tue, 06 May 2008 21:26:48 GMT From: =?ISO-8859-1?Q?Jan-Erik_S=F6derholm?= Subject: Re: Trying to get started with TCPIP programming Message-ID: tadamsmar wrote: > We have gas analyzers that are interfaced via serial lines. The > analyzers have the capability of communicating over ethernet using the > same ascii protocol as for serial. > > I have the task of converting from serial to ethernet. But I don't > know the first thing about TCPIP programming. > > I am looking at tcpip$examples. I am using VMS 7.3.2. > > tcpip$udp_server_qio.c > tcpip$udp_client_qio.c > > client_qio writes and server_qio reads. > > I could modify client to write a command to the analyzer. > > But I am not sure how to read back the response from the analyzer? > > Or could I use: > > tcpip$udp_server_sock.c > tcpip$udp_client_sock.c > > I could modify client_sock to send and recieve from the analyzer, I > guess. > > The analyzer uses port 9880. > > I am not sure how to send and recieve in the same program. None of > the examples both send and recieve a message. > I've looked at the same "problem" lately. Replacing serial connected PLC's (through term-servers using TNS devices) with direct ethernet. I thought the examples (and the socket API programming manual) had good examples. As soon as you have an open socket you can read and write over it as you please. The main difference between the "client" examples and the "server" examples, is which end initiates the connection. As sson as the socket is there, there is not that much differences. Anyway, we decided to continue to use term-servers and RS232 connected PLC's for the time beeing... Jan-Erik. ------------------------------ Date: Tue, 6 May 2008 16:13:15 -0700 (PDT) From: tadamsmar Subject: Re: Trying to get started with TCPIP programming Message-ID: <0b70d93d-f504-4069-92a2-dfeaed33798d@c65g2000hsa.googlegroups.com> On May 6, 5:26=A0pm, Jan-Erik S=F6derholm wrote: > tadamsmar wrote: > > We have gas analyzers that are interfaced via serial lines. =A0The > > analyzers have the capability of communicating over ethernet using the > > same ascii protocol as for serial. > > > I have the task of converting from serial to ethernet. =A0But I don't > > know the first thing about TCPIP programming. > > > I am looking at tcpip$examples. =A0I am using VMS 7.3.2. > > > tcpip$udp_server_qio.c > > tcpip$udp_client_qio.c > > > client_qio writes and server_qio reads. > > > I could modify client to write a command to the analyzer. > > > But I am not sure how to read back the response from the analyzer? > > > Or could I use: > > > tcpip$udp_server_sock.c > > tcpip$udp_client_sock.c > > > I could modify client_sock to send and recieve from the analyzer, I > > guess. > > > The analyzer uses port 9880. > > > I am not sure how to send and recieve in the same program. =A0None of > > the examples both send and recieve a message. > > I've looked at the same "problem" lately. > Replacing serial connected PLC's (through term-servers > using TNS devices) with direct ethernet. > > I thought the examples (and the socket API programming > manual) had good examples. As soon as you have an > open socket you can read and write over it as you please. > > The main difference between the "client" examples and the > "server" examples, is which end initiates the connection. > As sson as the socket is there, there is not that much > differences. > > Anyway, we decided to continue to use term-servers and > RS232 connected PLC's for the time beeing... > > Jan-Erik.- Hide quoted text - > > - Show quoted text - So, I guess the analyzer that I am trying to connect to has already initiated the socket, so it's like the server? It appears that the analyzer is just setting there ready to respond to commands sent to 9880. ------------------------------ Date: Tue, 6 May 2008 16:50:49 -0700 (PDT) From: chrisj.doran@proemail.co.uk Subject: Re: Trying to get started with TCPIP programming Message-ID: <27b9d5d9-8233-4e02-90e5-ea99fb1edfa0@i76g2000hsf.googlegroups.com> On 6 May, 22:08, tadamsmar wrote: > We have gas analyzers that are interfaced via serial lines. The > analyzers have the capability of communicating over ethernet using the > same ascii protocol as for serial. > > I have the task of converting from serial to ethernet. But I don't > know the first thing about TCPIP programming. > > I am looking at tcpip$examples. I am using VMS 7.3.2. > > tcpip$udp_server_qio.c > tcpip$udp_client_qio.c > > client_qio writes and server_qio reads. > > I could modify client to write a command to the analyzer. > > But I am not sure how to read back the response from the analyzer? > > Or could I use: > > tcpip$udp_server_sock.c > tcpip$udp_client_sock.c > > I could modify client_sock to send and recieve from the analyzer, I > guess. > > The analyzer uses port 9880. > > I am not sure how to send and recieve in the same program. None of > the examples both send and recieve a message. Firstly, you need to determine whether your analysers use TCP/IP or (as you imply) UDP. What make/model are they? I have used the ucx$tcp_server_ipc.c and ucx$tcp_client_ipc.c examples which use "standard" C functions send/recv etc. rather than QIOs as bases for many instrument communications programs. It's really just a matter of deciding whether you are client or server (I'd guess you are client) and then adding the code for the other direction into the example program. If it's TCP/IP and you are prepared to use the C functions (and assuming you aren't a competitor!), I can dig out some example code. Please e-mail me directly, as Google hides your e-mail address, Chris Instrument communications software engineer, ABB Switzerland (but not representing the company etc. etc.) ------------------------------ Date: Tue, 6 May 2008 20:53:44 -0400 From: "Dan Allen" Subject: RE: Trying to get started with TCPIP programming Message-ID: <000301c8afdc$cd0ff4a0$1f3a0681@sdct.nist.gov> =20 > -----Original Message----- > From: tadamsmar [mailto:tadamsmar@yahoo.com]=20 > Sent: Tuesday, May 06, 2008 7:13 PM > To: Info-VAX@Mvb.Saic.Com > Subject: Re: Trying to get started with TCPIP programming >=20 > On May 6, 5:26=A0pm, Jan-Erik S=F6derholm = > wrote: > > tadamsmar wrote: > > > We have gas analyzers that are interfaced via serial lines. =A0The = > > > analyzers have the capability of communicating over=20 > ethernet using=20 > > > the same ascii protocol as for serial. > > > > > I have the task of converting from serial to ethernet. =A0 But I don't=20 > > > know the first thing about TCPIP programming. > > > > > I am looking at tcpip$examples. =A0I am using VMS 7.3.2. > > > > > tcpip$udp_server_qio.c > > > tcpip$udp_client_qio.c > > > > > client_qio writes and server_qio reads. > > > > > I could modify client to write a command to the analyzer. > > > > > But I am not sure how to read back the response from the analyzer? > > > > > Or could I use: > > > > > tcpip$udp_server_sock.c > > > tcpip$udp_client_sock.c > > > > > I could modify client_sock to send and recieve from the=20 > analyzer, I=20 > > > guess. > > > > > The analyzer uses port 9880. > > > > > I am not sure how to send and recieve in the same=20 > program. =A0None of=20 > > > the examples both send and recieve a message. > > > > I've looked at the same "problem" lately. > > Replacing serial connected PLC's (through term-servers using TNS=20 > > devices) with direct ethernet. > > > > I thought the examples (and the socket API programming > > manual) had good examples. As soon as you have an open=20 > socket you can=20 > > read and write over it as you please. > > > > The main difference between the "client" examples and the "server"=20 > > examples, is which end initiates the connection. > > As sson as the socket is there, there is not that much differences. > > > > Anyway, we decided to continue to use term-servers and > > RS232 connected PLC's for the time beeing... > > > > Jan-Erik.- Hide quoted text - > > > > - Show quoted text - >=20 > So, I guess the analyzer that I am trying to connect to has=20 > already initiated the socket, so it's like the server? It=20 > appears that the analyzer is just setting there ready to=20 > respond to commands sent to 9880. > Sort of - typically the device socket "listens" on a specific TCP port = number (9880) for a connect request from the application. You have to set up = the socket on your end to use that port number and "connect" it to the "listening" = socket on the device end. The client example should have all of that code in = it. When your connect completes the two sockets have formed a TCP connection and = you can read/write it like any byte stream. Be careful on the reads - socket = reads block until ALL of the data you requested is received. If you don't know how = many bytes are coming you have to either read them one at a time or set up = some type of timer to complete the read. Again the example should show that = procedure. Dan ------------------------------ Date: Wed, 07 May 2008 03:19:07 +0200 From: Michael Kraemer Subject: Re: Using sftp from OpenVMS to Windows - How to avoid version numbers ? ?? Message-ID: Richard Whalen schrieb: > > I brought up the need for a text transfer method in the SSH (SFTP) > discussion email list, and the narrow minded Unix people said that binary > was good enough and that they didn't want to burden the client with having > to know all of the different text storage methods. They didn't think that > the server could put it in a canonical format. The underlying protocol is a > file access protocol, so binary makes sense, but that's not how people want > to use it. > > They decided upon a Unix like file specification as they felt that it was > easier to parse, rather than let the file specification be handled > completely in the context of the system using it. The user interface can > choose to present file specifications in their native format and convert > them to the protocol format. > Well, I would consider myself a Unix guy as well, but those arguments are lame excuses IMHO. Last time I checked, sftp left a lot to be desired when compared to its ftp predecessor, text files are just one issue. Back in the old ftp times, one could use the "nmap" and "mget" subcommands to transfer version numbered files from VMS to UNIX. I can't see the "burden" for modern clients when compared to the platforms available 20 years ago. It's beyond me why these guys trashed a couple of useful ftp features. The main enhancement of sftp over ftp is the usage of encrypted passwords, everything else could have been left unchanged. ------------------------------ Date: Tue, 6 May 2008 18:42:54 -0400 From: "FredK" Subject: Re: What systems can use USB? Message-ID: "Bob Koehler" wrote in message news:JA4gI6bdr2t3@eisner.encompasserve.org... > In article <481fd363$0$7283$c3e8da3@news.astraweb.com>, JF Mezei > writes: >> >> Not the DS10 class of Alpha servers. Their USB hardware is crippled and >> non-functional. > > You can get USB cards that will plug into and work on DS10 and > DS10L under VMS. > The USB hardware on the DS10 did not work. As there was no business requirement for it to work, it was decided not to try and fix it. >> Also, for those VMS systems that have functioning USB hardware, what >> real software support is there in VMS ? > > Same as any disk, from what I hear. > USB supports KB and Mouse on EV7 On Itanium it supports KB, Mouse, Serial muxes, and specific DVD drives. What "works" is different than what is supported. On both Alpha/Integrity... KB, Mouse, disks, serial muxes, joysticks, printers, and a host of other things. >> Can VMS mount, read, write FAT/FAT32 formatted USB sticks ? > > Just like floppies, there are tools for accessing FAT formatted USB > sticks, or you can put Files-11 on them. > Correct. >> How many cameras/telephones can be connected to VMS with some actual >> functionality ? (aka: not just: "yeah, the driver sees some phone device >> on the USB bus"). > > Although I have lots of fancy gadgets for accessing my camera over > USB, probaly my favorite way to get what I want instead of what some > one else thought I want, is to access it as a USB drive. > The USB stack does not currently support isochronous connections - which are needed for a live camera or phone. Nor have we written a driver to support either - as they are complex and there is no business reason to try and support one. >> Or is the goal for VMS to just provide the foundation so that >> individuals can then build their own applications ? (aka, some >> manufacturing plant writing code to control some USB robot) > > Since HP no longer sees VMS as a desktop platform, they have little > reason to add cameras and such to its USB support. That's their > mistake. VMS has been stitting on my desktop for a great many > years now, and will continue to do so. > In SYS$EXAMPLES there is code that shows you how to use the "generic" USB driver. The generic USB driver knows how to unpack the data and pass it to the device - but has no idea about the device. You write an application that knows what to do. Forrest provided this long ago. I believe both the example code and documentation ship in sys$examples. The "desktop" wars ended years ago. Windows won. The UNIX workstation market collapsed. As a consolation prize, Linux PC's are available for those who crave a UNIX desktop. The X11 "desktop" as far as we are concerned is just a required giblet. We need it for JAVA and web based things. The desktop itself doesn't have to be a VMS system. Sometimes the best desktop system is a thin client or a Linux PC. So expect to see us do more work on better integration with remote desktops. Local VMS "bus" graphics will continue to exist on most systems. But there is no desire/interest to try to compete with Windows/Linux in desktop software. But - if you come in and tell us that you will buy 1,000 RX2620's, but it depends on supporting a USB camera... I'm sure we can accomodate you somehow. It's all about what paying customers want. We are working on audible alarm support (basic sound card support - not MMOV) because a customer came in and explained the business case, and we agreed. Not because JF thinks it's cool. But because there is a business case. For a number of devices, we have facilitated getting a 3rd party to support it where the volume is low and the card isn't from HP. There are lots of things that users are just as capable of doing on their own as we are. Go out and grab your favorite unsupported card. Find the open source driver - write a VMS driver for it. I'm sure the hobbyist community will be thrilled. ------------------------------ End of INFO-VAX 2008.254 ************************