HP3000-L Archives

December 1999, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Randy Medd <[log in to unmask]>
Reply To:
Date:
Fri, 31 Dec 1999 10:49:52 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (60 lines)
As an alternative to piping commands into TELNET....

Goto:

  ftp://ftp.telamon.com/mpe_freeware

and get rexecd.{nm|cm}[.wrq].  This application listens on TCP port
512 (exec) and executes the specified commands using RPMCREATE.
Passwords must be supplied from the issuing system (e.g. some Unix
system.)

Example: (From HP-UX, FWIW)

# rexec microxe -l manager.sys showme
Password (microxe.telamon.com:manager.sys):
USER: #S287,MANAGER.SYS,PUB       (IN PROGRAM)
RELEASE: G.40.00   MPE V  HP32033 G.13.00   USER VERSION: G.40.00
CURRENT: FRI, DEC 31, 1999, 10:09 AM
LOGON:   FRI, DEC 31, 1999, 10:09 AM
PROGRAM'S CPU SECS: 1         CONNECT MINUTES: 1
$STDIN LDEV: 103         $STDLIST LDEV: 103
================================MicroXE=================================
==  This is a private system operated for Telamon's company business. ==
==     Authorization from Telamon is required to use this system.     ==
==             Use by unauthorized persons is prohibited.             ==
 =======================================================================
# rexec hp927lx -l manager.telamon xeq streamx.telamon.sys jtest
Password (hp927lx.telamon.com:manager.telamon):
JOB CARD = !JOB test,manager.telamon;outclass=,1
 #J260
#

The password format is as described for the RPM intrinsics:

  [user_pw][,[account_pw][,group_pw]]

REXECD works for both MPE/V and MPE/iX.  The program simply loops on
the socket-listen call, so to kill it, break/:ABORT or :ABORTJOB.
Activity is logged to $STDLIST, and optionally to a text file called
SYSLOG.LOG.  (e.g. SYSLOG.LOG.someaccount)

The code calls RPMCREATE to create a session on the local machine
where the REXECD program is then run again (with a special entry
point) with the command request executed via the [HPCI]COMMAND
intrinsic, and the output is sent back down the socket.  A feature of
RPM appears to be that no UDCs are executed in the new session, so the
session pretty much comes up in a pristine state - hence the "xeq"
command in the second example above.  Our system has "TELAMON.SYS"
added to HPPATH in a logon UDC, but our STREAMX command doesn't work
here due to the path value not being updated at logon time.

REXECD doesn't run under the auspices of any INETD-like process, so
there's no security available, other than the passwords.

Happy new year....

------------
Randy Medd
Telamon, Inc.

ATOM RSS1 RSS2