Hidden Value – April 2003

 

Q: (FTPERR 9) What causes this error?

 

A: Tom Emerson replied:

 

Ummm, "FTP"? OK, seriously though, the first hit of google search for "ftperr 9" is:

 

http://docs.hp.com/cgi-bin/doc3k/B3695790153.15039/49 and reads (in part):

 

(FTPERR 9)   Cannot connect to host:  !

 

Cause:  FTP was unable to open a host connection. Typically this FTP error is accompanied by a socket error that provides more information.

 

Action:  Check the spelling of the host name or IP address. Otherwise, seek the assistance of your Node Manager.

 

[Editor's note: The actual question and answer is not why I included this. Rather it was to note the power of the Internet in general and google in particular to find things buried at hp.com and elsewhere. ]

 

 

Q: What is the path for the network card on a 928?

 

A: Variations on this question are frequently asked; in fact, the same question was asked last month for a 927. In this case, the specific answer, provided again by Bob J. of ICS, is 56/56. However, I want to repeat the general answer given last month provided by Steve Macsisak, run ode mapper at the ISL prompt, or, if the system is running, SYSGEN -> IO -> LPATH.

 

 

Q: I am trying to find where the setting is on the 9x9 MFIO card to switch from the Thin Lan port to the AUI port.

 

A: John Burke replied:

 

If the CE Handbooks were published on the web, the answer would be simple. [Note this was the number 2 ranked item on the recent SIB www.interex.org/advocacy/survey/2003mpe_results.html]

 

Gilles Schipper, Doug Werth and Bob J contributed to the correct answer:

 

The HP3000 flavor of the multi-function I/O card is not auto-sensing. The corresponding HP9000 K-Class equivalent is auto-sensing. The 9x9 multi-function I/O card has a large jumper block that determines which of the AUI or BNC port is active - just as in the 9x7 and 9x8 mfio cards. It is located close behind the ports themselves. The jumper pack goes closest to the port you want to use; i.e. toward the BNC for 10base2 and toward the DB for AUI.

 

 

Q: I've configured Apache and have the website up using the system's hostname.  I'm also trying to develop additional servers using the same IP address and a different port (8080) than the one in the default (80). I want to do this so that I can put financial reports on a separate intranet site and restrict access using a .htaccess file or an allow file (haven't gotten that far yet). Am I on the right track?

 

A: John Burke replied:

 

I would use Virtual Named Hosts. This "looks" like you are running multiple servers, but there is no need for you or your users to mess around with separate ports. Your .htaccess file goes into the directory you want to protect, which would probably be the document root of the virtual server you wish to secure. I do not recall any previous comments about Virtual Named Hosts with Apache/iX so let me just add that I have been using them for some time quite effectively. It helps mitigate the HP 3000’s inability to support multiple IPs on one LAN card.

 

 

Q: I have a question about Apache and security. I'm trying to secure individual directories in htdocs, and down the road other virtual websites on my HP3000's, to specific users within our organization. I'm a real neophyte to Apache and POSIX and haven't had any luck setting up an "allow" file yet. Can anyone tell me if this is the appropriate course to follow or if there is a better methodology that I don't know about?

 

A: Andreas Schmidt replied:

 

Use the .htaccess file and .htpasswd file, along with the /APACHE/CURRENT/bin/htpasswd program (yours may be in a different place). The .htaccess file is required in each directory you wish to protect, and looks something like:

 

AuthUserFile /APACHE/PUB/security/.htpasswd

AuthGroupFile /dev/null

AuthName "Access to HP3000 Apache Test Area"

AuthType Basic

<Limit GET>

require user as3223

</Limit>

 

The .htpasswd file will look something like

as3223:xxxxxxxxxxxx

 

This is general Apache functionality not specific to Apache/iX. More information can be found on http://www.apache.org

 

 

Q: How do you check for the existence of a file using a jobstream where, if it exists do this, else do that? We are running MPE/iX 5.5.

 

A: Dane Bodamer and Harry Morris replied:

 

:if finfo('filename','exists')

:  comment Process the file.

...

:else

:  comment We have a problem because the file wasn't created.

...

:endif

 

[Editor's note: I verified that this solution should work on MPE/iX 5.5.]

 

In a blast from the past, Carro Arrubarrena Mariano replied with the way we all used to do it (and which still works fine):

 

:SETJCW    CIERROR = 0

:CONTINUE

:LISTF      FILE.PUB.ACCOUNT,2

:IF         CIERROR <> 0 THEN

:  comment Process the file.

...

: ELSE

:  comment We have a problem because the file wasn't created.

:ENDIF

 

 

Q: Does anyone know of a way to compare two different NMCONFIG files? A simple file compare does not work very well since NMCONFIG has binary data in it. I am looking at the possibility something unintentional was implemented when I implemented some printer changes. If a change had been unintentionally kept by someone, but not dynamically implemented, it would have been implemented along with some DTC changes I made for printers. Our network problems were first noticed a few hours after I implemented the DTC changes.

 

A: Gilles Schipper replied:

 

If you have not rebooted since you made your last changes, you can copy the file NMCONFIX.PUB.SYS to, say NMCFGOLD.PUB.SYS, and look at NMCFGOLD with NMMGR to zero in on those areas you changed to compare with the current NMCONFIG. NMCONFIX.PUB.SYS represents the configuration file used at the most recent bootup.

 

If it's not immediately obvious where the differences may be, you could at least print both configuration files (NMCONFIG and NMCONFIX) to carefully examine and compare the hard copy listings for any differences.

 

 

Q: Will a tape created on a DDS4 be able to be read on a DDS3? Also does the length of the tape matter.

 

A: Goetz Neumann replied:

 

Maybe, and yes. It will work with 120 meter (DDS2) and 125 meter (DDS3) media. It will (obviously) not work with DDS4 (150 m) media. It will (not so obviously) not work with 60m DDS1 media. I am not sure if a DDS4 drive can write 90m DDS1, though I believe the answer is no.

 

 

Q: Has anyone written an MPE script that calculates the week number of the year using the current day and HPDAY (or any other system variable)?  For example, today would be the second week of the current year, since the first week ended on 1/4/03.

 

A: John Wolf replied:

 

You can use the POSiX 'date' command, which has 3 different ways of calculating the week number. The options are:

 

%U    ---   With Sunday being the 1st day in the week range (00 to 53). Days before the 1st Sunday are in week 00.

%V    ---   With Monday as the 1st day in the week range (01 to 53). This option requires 4 or more days in the new year to be week 1, otherwise they are part of week 53 of the previous year.

%W   ---   With Monday as the first day in the week range (00 to 53), similar to %U above.

 

Example for today, 1-7-2003: date +%V

Result: 02

 

The man page for date can give you much more detail. The date command has every conceivable way of displaying date and time related information. You can place the results of the POSiX command into a variable and make it a regular function in your system.

 

Michael Anderson pointed out the value, especially now, of using a non-MPE specific solution in new development.

 

 

Q: Does anyone know if a tape created on a DLT4000 can be read on a DLT8000?

 

A: Michael Berkowitz replied:

 

Absolutely it works. We went from DLT4000 on our old machine to DLT8000 on the new and it reads the tapes. We've been using DLT IV tapes on both tape systems.

 

 

Q: How can I convert a bytestream file to an MPE fixed-length record file?

 

A: Sam Knight and Craig Lalley replied:

 

Use FCOPY.

 

Tom Brandt suggested:

 

Use frombyte.

 

Stan Sieler noted that either solution can cause you trouble unless you know the length of the longest "line", since both assumed 80 characters maximum. Tom Brandt added the frombyte and fcopy solutions work differently. fcopy will truncate source lines longer than 80 bytes. frombyte will wrap source lines longer than 80 bytes into the next target record.

 

Stan then mentioned that if the file came from a PC, and if you have WRQ Reflection, you might have a nifty utility called FILEINFO.COM. Assuming your file is called FOO.TXT, do:   FILEINFO FOO.TXT and it will display a LISTF-like output, including a "RECSZ" column that's the length of the longest line in the file.

 

 

Q: After moving files using MPEIX (altfile @.@.@(ondevice(xx));dev=yy) off a disk from a private volume, I tried scratchvol on the disk. Strangely enough, the image database that now resided on the other disks could not be accessed. What is wrong?

 

A: John Clogg, Gilles Schipper and Stan Sieler replied:

 

The problem is that a file that appears to be on a specific disc might have extents on another. Also, there is no way to remove a volume from a volume set. The disc volume can be scratched, but the volume set's volume table is not updated to reflect the change. The only way to safely remove a volume from a volume set is to scratch the entire volume set, rebuild it without the disc you want to remove, and restore all the files from a backup.

 

 

Q: Is it possible to tell MPE to logon a user other than OPERATOR.SYS during bootup?

 

A: Michael Anderson replied:

 

START  NORECOVERY LOGON=session,user.account

 

John Burke added that if it is a permanent change, you could use STARTSESS in the SYSSTART file as

 

startsess 20;session,user.account;nowait;hipri

 

 

Q: How can I move $STDLIST from one system to another and have it show up as

$STDLIST? I've tried dscopy and spoolf but it won't do what I want.

 

A: John Burke replied:

 

I like STORE-TO-DISK for this. STD capability is available to everyone on all versions of MPE/iX from 6.0 to 7.5 although for the earlier versions you may have to apply a patch first.

 

Simply store the files(s) to disk (O###.OUT.HPSPOOL). You can use DSCOPY or FTP to copy the resulting file to your other system. Then simply RESTORE the file(s). MPE/iX takes care of all the messy details.

 

 

Q: I had heard, and am wondering if anyone can confirm, that HP will stop generating patches for the HP3000 sometime this fall?

 

A: Jeff Vance replied:

 

HP plans to continue full software support for certain MPE/iX releases beyond this year (6.5 through 2004, 7.0 and 7.5 through 2006). That includes creating new patches for any critical or serious problems that are found with these releases, similar to what HP does today. It also includes Response Center support and the higher levels of support that are available today. What I am intending to convey here is that HP plans to do the same things we do today with support through 12/31/06.