HP3000-L Archives

December 1998, Week 1

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:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Fri, 4 Dec 1998 13:58:02 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (86 lines)
Steve BARRETT writes:
>
> I'm trying to run SOKINFO.NET.SYS from a job and receive the
> following error message:

...deletia...

>  *Error 6* This program may not be run from a job

...deletia...

> The information I'm looking for is the total number of sockets
> associated with a particular program. Is there some other
> program/command I can use to accomplish this in a job?

SHOWCONN from http://jazz.external.hp.com/src/showconn/showconn.html will run
in a job and you might be able to massage its output to obtain the info you
seek.

Sample SHOWCONN SYSTEM=ON executed from a batch job on my porting machine:

 :xeq showconn system=on


 JOBNUM  INTRO DATE AND TIME    LDEV   USERNAME
  REMOTE ADDRESS  RPORT  LPORT  FLAGS   PIN(PROGRAM)
 system process
                         sockrg spl-nu   36(SOCKREG.NET.SYS)
 system process
                         vt     stl-nt   51(DSDAD.NET.SYS)
                         ptop   stl-nt   51(DSDAD.NET.SYS)
                         nsstat stl-nt   51(DSDAD.NET.SYS)
                         hcs    stl-nt   51(DSDAD.NET.SYS)
                         rfa    stl-nt   51(DSDAD.NET.SYS)
                         hdspns stl-nt   51(DSDAD.NET.SYS)
                          5760  stl-nt   51(DSDAD.NET.SYS)
                         pds    stl-nt   51(DSDAD.NET.SYS)
                         vta    stl-nt   51(DSDAD.NET.SYS)
                         nft    stl-nt   51(DSDAD.NET.SYS)
                         loopbk stl-nt   51(DSDAD.NET.SYS)
                         hpip   stl-nt   51(DSDAD.NET.SYS)
                         iasql  stl-nt   51(DSDAD.NET.SYS)
                         vtr    stl-nt   51(DSDAD.NET.SYS)
                         rpm    stl-nt   51(DSDAD.NET.SYS)
                         pdss   stl-nt   51(DSDAD.NET.SYS)
 detached process
     159.115.2.36 ntbios ntbios dud-nb   54(NBDAEMON.PUB.HPLANMGR)
                         ntbios dtl-nt   54(NBDAEMON.PUB.HPLANMGR)
                         ntbios dtl-nt   54(NBDAEMON.PUB.HPLANMGR)
 #S4     FRI DEC  4 1998 13:50     4   MARK,MANAGER.SYS,CCCD
      159.115.2.2  1933  telnet jtcibd   49(JSMAIN.PUB.SYS)
 #J2     FRI DEC  4 1998 12:20    10   JINETD,MANAGER.SYS,PUB
                         time   aud-bb   57(INETD.NET.SYS)
                         discrd atl-bt   57(INETD.NET.SYS)
                         discrd aud-bb   57(INETD.NET.SYS)
                         chargn atl-bt   57(INETD.NET.SYS)
                         echo   atl-bt   57(INETD.NET.SYS)
                         chargn aud-bb   57(INETD.NET.SYS)
                         echo   aud-bb   57(INETD.NET.SYS)
                         telnet atl-bt   57(INETD.NET.SYS)
                         daytim atl-bt   57(INETD.NET.SYS)
                         daytim aud-bb   57(INETD.NET.SYS)
                         time   atl-bt   57(INETD.NET.SYS)
 #J3     FRI DEC  4 1998 12:20    10   JSYSLOGD,MGR.SYSLOG,PUB
        127.0.0.1 58236  syslog aud-bb   60(SYSLOGD.PUB.SYSLOG)
 #J4     FRI DEC  4 1998 12:20    10   JNAMED,MGR.BIND,CCCD
        127.0.0.1 syslog 58236  aud-bb   63(NAMED.PUB.BIND)
      159.115.1.5 domain 58239  aud-bb   63(NAMED.PUB.BIND)
     128.171.3.13 39715  domain aud-bb   63(NAMED.PUB.BIND)
                         domain atl-bt   63(NAMED.PUB.BIND)
 #J5     FRI DEC  4 1998 12:20    10   JDAEMON,SERVER.SENDMAIL,SERVER
        127.0.0.1 syslog 58260  uud-bb   68(SENDMAIL.PUB.SENDMAIL)
                         smtp   utl-bt   68(SENDMAIL.PUB.SENDMAIL)
 #J6     FRI DEC  4 1998 13:06    10   FTPMON,FTP.SYS,ARPA
                         ftpcmd atl-nt   69(FTPMON.ARPA.SYS)

 Total processes checked:   74
 Processes with sockets :    9
 Total sockets open     :   40
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2