Hidden Value – May 2001

Q: We have a system to which we want to add a second 100Base-T card. Is a license required for the second card, or does one license cover both?

A: Chris Goodey replied:

Only one software license is required.

Q: Where do I find a list of the HP 3000 models that support this network card?

A: Chris Gauthier replied:

I can tell you what models support the 100Base-T interface:

All 9x7 models.
All 9x8 models (except that old 948 and 958, because they are CIO machines).
All 9x9 models.
All 99x models.
The new A and N-Class come with 100Base-T standard.

Q: Can an HP3000 NIC be configured to have multiple IP addresses?

A: Mark Bixby replied:

No, this cannot be done today on an e3000.

Doug Becker added:

There must be a LANIC for each IP address on the HP e3000. Additionally, if you have more that one LANIC, they must be attached to different subnets.

Q: During a move, our system fell off the back of the moving truck, damaging it beyond repair. We're obtaining a replacement, but it is not the exact same model, though in the same class (9x7). I have a SLT and full backup. How should I proceed?

A: Gary Paveza replied:

When we do this for our disaster recovery, we just install from SLT and reconfigure the I/O. That way, all the software (subsys/patches/etc) are on the new system. Then its simply a matter of restoring your data.

Paul Courry added:

Call your 3rd party software vendors, given them the new HPCPUNAME and HPSUSAN number and get them to generate new unlock codes.

Q: I am trying to create a UDC that will prevent a user from having more than one open session. I am keeping track of who logs on by creating a file each time the user logs on. If the file exists, it is assumed that the user is logged on. When the user logs off, I want to delete the file. To do that, I redefined the BYE command in the UDC. If the user is already logged in, I want to log the second session off without deleting the file. When I issue the bye command it is calling the UDC BYE and not the system command BYE. The UDC file looks like:

.
.
.
Logcount
option logon
.
.
.
***
bye
.
.
.
bye
***

A: John Burke replied:

Change the order of the two UDCs LOGCNT and BYE in your UDC file. This should accomplish what you want since the UDC commands are processed sequentially; i.e. when you execute the LOGCNT UDC, the command interpreter will only look forward of the current position in the UDC file.

Q: I want to run a batch job that executes a posix program. Actually, I want to update my aliases file in my SENDMAIL account. I got the other commands figured out but not the newaliases command. Part of my job is as follows:

:xeq sh.hpbin.sys "/SENDMAIL/PUB/bin/newaliases"

/SENDMAIL/PUB/bin/newaliases 149: : not found

A: Mark Bixby replied:

:xeq sh.hpbin.sys "/SENDMAIL/PUB/bin/newaliases"

tells the shell that newaliases should be interpreted as a script file. But it's a symlink to an NMPRG, so you see all of those weird error lines as the shell tries to parse a binary NMPRG as if it were a script.

You want to be doing it this way instead:

:xeq sh.hpbin.sys "-c /SENDMAIL/PUB/bin/newaliases"

Q: I am trying to get APACHE running. I end up using telnet from my LINUX box to the HP and then trying to use VI (yeck) to edit files. It looks like VI is sending HP terminal control stuff to my telnet client which just gets a little boggled. Is there a better way to proceed?

A: Michael Anderson replied:

If you're not using an HP Terminal Emulator than you probably need to set your termtype to 'VT100', for example,

shell/iX> export TERM=vt100

John Burke added:

If you have a Windows PC, then I always tell people that before even thinking about setting up Apache, set up Samba. This way you can use your favorite PC editor to set up your Apache web server. Setting up basic Samba access requires editing only one bytestream file. You could ftp it to any system, edit it there and ftp it back to your 3000.

Q: On an HP e3000, what is the relationship between the hardware and software clocks? Is the software clock a stored offset to the hardware clock, or are the hardware clock and software clock reset at reboot with the hardware clock running off a clock/calendar chip and the software clock being calculated based off CPU ticks, or something else?

A: John Clogg replied:

The hardware clock is supposed to be set to UCT (AKA GMT), and the "software" time is derived using a time zone offset that is manipulated by the SETCLOCK command. It is not unusual to see systems, where this relationship isn't understood, where the hardware clock has never been set correctly, so the offset is hundreds of hours! The SHOWCLOCK command will show you the current status of the hardware and software clocks. In general, the SETCLOCK command adjusts the offset, and the date and time setup during a system start adjusts the hardware clock.

Stan Sieler added:

The free FIXCLOCK command file, at http://www.allegro.com/software/hp3000/allegro.html can help you fix the hardware clock date/time.

Q: How to I create a basic Samba share for a user to access his account?

A: Lars Appel replied:

Something in the line of ...

[myshare]
comment = Access to user's account
path = /ACCOUNT
guest ok = no
write ok = yes
user = USER.ACCOUNT
only user = yes

Q: I want to restore the directory structure of an existing account but to a new account name. I tried

restore;/OLDACCT/;account=/NEWACCT/;directory;create;keep

but got

/NEWACCT/GROUP/FILE NOT RESTORED: HPFOPEN RAW FAILED

Intrinsic layer; the operation could not be completed because a nonexistent account was specified.

Any suggestions?

A: Jonathan Backus replied:

I usually just use the BULDACCT command and then edit the BULDJOB1 and BULDJOB2 stream files to change the account name to the new account and then stream them.

[Editor's note: BULDACCT %HELP will show you how to use BULDACCT.]

Doug Werth explained the error message and offered a word of caution when using the "directory" option:

/NEWACCT is an invalid account name. You don't want to use HFS syntax to rename the account.

You are probably lucky that it failed. Don't forget that the ;DIRECTORY option restores the *entire* directory for the system, not just the directory associated with the fileset to be restored. More than one system admin has accidentally overwritten current passwords with previous ones by using the ;DIRECTORY option to restore files from an old tape.

Q: How do I reset the account CPU-second and CPU-minutes that appear in a REPORT @.@?

A: James Reynolds and Denys Beauchemin replied:

Your subject line is the answer. Reset account is RESETACCT. See HELP RESETACCT for usage details.

Q: I was scanning a $stdlist for reply messages and came across the following message:

2:46/#J9115/2404/Are standard forms on OALASER (Y/N/R)? (MAX CHARS.=3)?

What does the "R" option mean when you reply to a message?

A: Kristian Thisted replied:

R = Repeat. It prints one more line for you to check the alinment.

Q: How do you repair a damaged KSAM file?

A: Ronald Horner and Neil Harvey replied;

KSAMUTIL, then KEYINFO fileref ;recover

Q: I would like to erase all data from two disk drives (ldevs 3 & 4) I have in a test volume set and add one to the MPEXL_SYSTEM_VOLUME_SET and the other to another user volume set. How would I go about this? Can it be done without disrupting the system?

A: John Burke replied:

Optionally (personally, I think it is a good idea), remove any groups and accounts on test_volume_set, then

1. vsclose test_volume_set
2. enter volutil
3. scratchvol 3
4. scratchvol 4
5. newvol mpexl_system_volume_set:member3 3 100 100
6. newvol appl_volume_set:member7 4 100 0
7. exit volutil

That's all there is to it. And, it absolutely can be done without disrupting the system.

Note, this is what you want to try to do with new disk drives - put them in a test volume set and test them fo awhile before moving them into production.

Q: Is there a way in to purge all $STDLIST files without sending it to tape first?

A: Doug Werth and John Clogg replied:

To be safe use this command first to see if it is really going to delete the files you want.

:spoolf @;seleq=[filedes=$stdlist];show

Then add a ;delete to the command.

:spoolf @;seleq=[filedes=$stdlist];show;delete

Q: Sometimes when I do "xeq sh.hpbin.sys -L", when it is executing the file /etc/profile I get a message "resource busy, try again later". I also get this message in error_log sometimes when the APACHE browser tries to fire up a CGI program (c-language, in MPE space) and sometimes when I get the shell up and it does get through the /etc/profile file I can still get the "resource busy..." message. What resource can this be?

A: Mark Bixby replied:

The most likely cause is insufficient contiguous free disk space which results in fork() failures. The fix is to defragment your free disk space, either by using :VOLUTIL CONTIGVOL, or a third-party product like the ones from Bradmark or Lund.

Q: Is there a web site that indicates what the bare miniums are for running an 6.5?

A: Denis St-Amand replied:

http://mpeix.hp.com/operating/mpeix65/specs.html says:

The 6.5 release will use slightly more memory on a system. HP believes this should not be noticeable on systems with at least 128MB of main memory. If your system has less than 128MB, you may want to consider adding memory before you update to the 6.5 release. This may not be necessary for development or test systems with just a few users. HP recommends that production systems should be configured with at least 128MB of main memory for optimal performance on the 6.5 release.

Q: For the first time ever we have PC's using NS/VT connect. We are seeing some error messages that I haven't seen before from NS/3000.

** NS/3000 INTERNAL ERROR IN VT; Job: 0; PIN: 2579 Info: 0
- Error: 12; Error Reported by VT
- VT error : 39; REMOTE NOT ACCEPTING SERVICE REQUESTS

We are on MPE 6.5 pp2. Any ideas?

A: John Burke and John Clogg replied:

Try nscontrol status=summary and look at the number of VTSERVERS versus number of active. This may be you problem. To change the maximum number to something higher,

NSCONTROL SERVER=VTSERVER,0,new_value

The default is 300 and this value can be changed dynamically with the above command (many people include this in their system startup job that starts NS/3000).

Q: What is happening here?

:copy fixadrx.tempdata

**** UNEXPECTED ESCAPE CODE ENCOUNTERED IN SYSTEM CODE, ESCAPE CODE = -19660693
VSM Object not found in Object Cache Tree (Invalid Address).
Virtual Space Management message 300
VSM Object not found in Object Cache Tree (Invalid Address).
Virtual Space Management message 300
ABORT: CI.PUB.SYS

NM SYS a.010061ec dbg_abort_trace+$28
NM PROG 258.00006e0c handle_recover+$64
CPU=4. Connect=3. THU, APR 19, 2001, 7:45 AM.

<Your 'VT-MGR' connection has terminated>

A: Doug Werth replied:

This is a known 6.5 bug that was fixed in patch MPELXB2A.

You can work around the problem without installing the patch by specifying both the source and target file name in the copy command.

:copy fixadrx.tempdata,fixadrx

Q: I'm just starting to use Apache and am having a problem getting a cgi program to work. The CGI program I want to run is an MPE executable and, while I can run it from the shell command line, I get only a 'server error' message when I attempt to have it executed from the browser.

A: Mark Bixby replied:

Whenever you get "server error" or any other CGI trouble on Apache, look in

/APACHE/PUB/logs/error_log

for detailed info about what's wrong. This is Rule Number One for Apache debugging.

Q: I downloaded gnucore and gnugcc from jazz, and installed as per the instructions. I didn't see any errors. But now Perl/iX does not work. I've been using Perl/iX for the past year or so, and have grown to love it. In fact, I've gone so far as to use Perl in several production runs. However, after the gnugcc install, I get the following:

:/bin/perl

Access to this file is denied for the specified file access; a security
violation occurred. (FILE OPEN ERROR -248)
File System message 248
HPFOPEN failed. (LDRERR 56)
Native mode loader message 56
Unable to load program to be run. (CIERR 625)

What can I do? Note I can run it from MANAGER.SYS.

A: Mark Bixby replied:

Your permissions are probably messed up. The gcc distribution still has an obnoxious habit of messing up the shared library permissions in /lib and /usr/lib. To fix, log on as MANAGER.SYS and do "chmod 755 /lib/*.so /usr/lib/*.so".

Q: I have ldev 3 (see below) defined with 75% permanent disk space. Can I increase the size from 75% to 100%? Do I have to do a restore?

LDEV : 3 -- (MPEXL_SYSTEM_VOLUME_SET:MEMBER3)
Device | 5239568 | 4281936 ( 82%) | 957632 ( 18%) |
Permanent | 3929664 ( 75%) | 3250112 ( 62%) | 679552 ( 13%) |
Transient | 3929664 ( 75%) | 1031824 ( 20%) | 957632 ( 18%) |

A: Kristian Thisted and Stan Sieler replied:

:volutil

altervol MPEXL_SYSTEM_VOLUME_SET:member3, 100, 100

Note that you should ask why the perm % was set to 75. Was it done to save disk space "for a rainy day"? If so, is today really a rainy day, or should you be asking other questions, like: are there any big files on disk that I haven't touched for a long time that I can PURGE?

To help in that last, you can download the free utility: FINDFILE (aka FINDBIG) from http://www.allegro.com/software/hp3000/allegro.html

Sample run, to find files >= 3 MB, system wide ("/"), that haven't been accessed in the last 30 days:

run findbig.pub.allegro;info="/ -days 30 -access -size 3"

Q: I'm using [homes] in smb.conf to allow all MPE users to get to their own stuff. However, I want to deny access to certain users such as MANAGER.SYS. I thought I could do something sneaky like modifying the user.map file to contain:

bogus=MANAGER.SYS

But that doesn't block access. I can still establish a network connection to \\hostname\MANAGER.SYS. So how can I completely forbid [homes] shares being established to certain MPE user.accounts?

A: Lars Appel replied:

I'd try something like "invalid users = manager.sys mgr.telesup ..." inside the [homes] section (right next to the valid users = %S there).