Skip to content

Instantly share code, notes, and snippets.

View tuklusan's full-sized avatar
💭
trading heroes for ghosts.

Supratim Sanyal tuklusan

💭
trading heroes for ghosts.
View GitHub Profile
@tuklusan
tuklusan / HECNET-SCAN.COM
Last active March 7, 2019 18:51
A OpenVMS DCL script to map and report HECnet (the Hobbyist DECnet) nodes in HTML files for WASD OpenVMS Web Server | http://supratim-sanyal.blogspot.com/2016/11/yet-another-openvms-dcl-command.html
$! SET NOVERIFY
$ SET NOON
$ ON CONTROL_Y THEN GOTO ERR_EXIT
$!
$! -----------------------
$! HECNET-SCAN.COM
$!
$! READS LIST OF HECnet NODES, CREATES HTML FILES CONTAINING LIST, AND DETAILED STATUS OF INDIVIDUAL REACHABLE NODES
$! SEE THE FOLLOWING URL FOR OUTPUT OF THIS PROCEDURE:
$! http://sanyalnet-openvms-vax.freeddns.org:82/falserver/hecnet-status.html
@tuklusan
tuklusan / HECNET-SCAN-BATCH.COM
Last active September 27, 2017 00:45
HECNET-SCAN-BATCH.COM | A OpenVMS DCL script to map and report HECNET (the Hobbyisy DECNET) nodes in HTML files for WASD VMS Web Server | http://supratim-sanyal.blogspot.com/2016/11/yet-another-openvms-dcl-command.html
$! Runs every seven days at 4 AM from current time to update HECnet node status HTML files served by WASD
$ set noon
$ mynameis = f$environment("PROCEDURE")
$ goto 'f$mode()'
$interactive:
$ on warning then goto submit_error
$ submit /after="TODAY+7-04:00"/noprint/keep 'mynameis'
$ write sys$output "Periodic job has been requeued"
$ exit
$network:
@tuklusan
tuklusan / HECNET-NODENAMES-UPDATE.COM
Created November 11, 2016 20:39
HECNET-NODENAMES-UPDATE.COM | HECNET-SCAN-BATCH.COM | A OpenVMS DCL script to map and report HECNET (the Hobbyisy DECNET) nodes in HTML files for WASD VMS Web Server | http://supratim-sanyal.blogspot.com/2016/11/yet-another-openvms-dcl-command.html Raw
$! Runs at 5 AM system time every day to copy nodenames.dat from MIM:: to DUA2:[FAL$SERVER]
$ set noon
$ mynameis = f$environment("PROCEDURE")
$ goto 'f$mode()'
$interactive:
$ on warning then goto submit_error
$ submit /after="tomorrow+5:00"/noprint/keep 'mynameis'
$ write sys$output "Periodic job has been requeued"
$ exit
$network:
@tuklusan
tuklusan / SYSLOGD.C
Last active April 19, 2021 18:06
syslogd for remote logging OpenVMS Alpha and OpenVMS VAX system logger to unix/linux rsyslog syslog server daemon. Tweaked from Doug O'Neal's syslog.c. More: http://supratim-sanyal.blogspot.com/2016/11/openvms-log-files-remote-logging-to.html
/*
* syslogd.c
* Take OPCOM messages received over a set of pseduo-ttys and redirect
* them to a UNIX syslogd. Tested with Multinet and UCX software under
* VMS 1.5 & 6.1 (AXP) and VMS 5.5 & 6.0 (VAX).
*
* The chan structure defines the translation of the opcom classes to
* Unix facilities/priorities. The Unix server is defined via the
* logical name SYSLOGD_SERVER in the LNM$SYSTEM_TABLE logical name table.
* Either a host name or an IP address may be used.
@tuklusan
tuklusan / bridge.conf-multihost-decnet-ethernet-bridge
Last active August 10, 2017 23:35
DECNET Bridge Multi-Host Configuration for Connecting OpenVMS DECNET Nodes to HECNET: See http://supratim-sanyal.blogspot.com/2016/11/decnet-connecting-two-digital-dec.html
! This is the bridge configuration file.
!
! Comments start with a '!'. Empty lines are ignored. The file
! is re-read on a SIGHUP.
!
! *************************************************************
!
! The bridge section defines all sources and destinations for
! this bridge program.
!
@tuklusan
tuklusan / bridge.conf
Created November 20, 2016 02:45
DECNET Bridge configuration for satellite node connecting to HECNET over another multi-host DECNET bridge: see http://supratim-sanyal.blogspot.com/2016/11/decnet-connecting-two-digital-dec.html
! This is the bridge configuration file.
!
! Comments start with a '!'. Empty lines are ignored. The file
! is re-read on a SIGHUP.
!
! *************************************************************
!
! The bridge section defines all sources and destinations for
! this bridge program.
!
@tuklusan
tuklusan / RSX-11M-PDP-11-24-INIT
Last active July 7, 2019 03:47
DEC PDP-11 RSX 11M PLUS Part 1 | Initial Install of RSX11M-Plus on SIMH PDP-11/24 Leading to a ready bootable RP06 | See https://supratim-sanyal.blogspot.com/2019/07/installing-rsx-11m-plus-on-dec-pdp-1124.html
[openvms@sanyalnet-cloud-vps2 pdp11]$ cp ~/simh/simh-master/BIN/pdp
pdp11 pdp8
[openvms@sanyalnet-cloud-vps2 pdp11]$ cp ~/simh/simh-master/BIN/pdp* .
[openvms@sanyalnet-cloud-vps2 pdp11]$ ls -al
total 2408
drwxrwxr-x 2 openvms openvms 29 Nov 20 16:08 .
drwx------ 9 openvms openvms 4096 Nov 18 04:28 ..
-rwx------ 1 openvms openvms 1767283 Nov 20 16:08 pdp11
-rwx------ 1 openvms openvms 690234 Nov 20 16:08 pdp8
[openvms@sanyalnet-cloud-vps2 pdp11]$ clear
@tuklusan
tuklusan / gist:6dbba26df17f77201093daba1506639c
Last active July 7, 2019 03:48
DEC PDP-11 RSX 11M PLUS Part 2 | Installing DECNET support on PDP-11/24 running RSX-11M-PLUS 4.6 | See https://supratim-sanyal.blogspot.com/2019/07/installing-rsx-11m-plus-on-dec-pdp-1124.html
[openvms@sanyalnet-cloud-vps2 pdp11]$ ###############################
[openvms@sanyalnet-cloud-vps2 pdp11]$ ### Based on the fantastic instructions at http://pdp2011.sytse.net/wordpress/install-2/
[openvms@sanyalnet-cloud-vps2 pdp11]$ ###############################
[openvms@sanyalnet-cloud-vps2 pdp11]$ vi rundecnet
[openvms@sanyalnet-cloud-vps2 pdp11]$ ########################
[openvms@sanyalnet-cloud-vps2 pdp11]$ cat rundecnet
set cpu 11/70
set cpu 2m
set lpt disable
set ptr disable
@tuklusan
tuklusan / gist:89d4a278e0ca55d7983a5e4083128a59
Last active November 5, 2022 12:17
DEC PDP-11 RSX 11M PLUS Part 3 | Installing BASIC PLUS 2 on RSX-11M-PLUS on PDP-11/24 | See https://supratim-sanyal.blogspot.com/2019/07/installing-rsx-11m-plus-on-dec-pdp-1124.html
[openvms@sanyalnet-cloud-vps2 pdp11]$ ###################
[openvms@sanyalnet-cloud-vps2 pdp11]$ #Based on instructions at http://pdp2011.sytse.net/wordpress/install-3/
[openvms@sanyalnet-cloud-vps2 pdp11]$ ###################
[openvms@sanyalnet-cloud-vps2 pdp11]$ ./pdp11
PDP-11 simulator V4.0-0 Beta git commit id: c9af9a70
Disabling XQ
libpcap version 1.5.3
Eth: opened OS device tap2
sim> set ts ena
@tuklusan
tuklusan / gist:4323687373bf101f1de35ec15669efa1
Last active October 4, 2019 10:47
DEC PDP-11 RSX 11M Plus Part 4 | Installing DIBOL, PASCAL, C and COBOL on PDP-11/24 running RSX-11M-PLUS | See https://supratim-sanyal.blogspot.com/2019/07/installing-rsx-11m-plus-on-dec-pdp-1124.html
[openvms@sanyalnet-cloud-vps2 pdp11]$ ################
[openvms@sanyalnet-cloud-vps2 pdp11]$ BASED ON INSTRUCTIONS AT http://pdp2011.sytse.net/wordpress/install-4/
[openvms@sanyalnet-cloud-vps2 pdp11]$ ################
[openvms@sanyalnet-cloud-vps2 pdp11]$ wget ftp://ftp.trailing-edge.com/pub/rsxdists/dibol_v1_4.zip
--2016-11-20 19:06:03-- ftp://ftp.trailing-edge.com/pub/rsxdists/dibol_v1_4.zip
=> ‘dibol_v1_4.zip’
Resolving ftp.trailing-edge.com (ftp.trailing-edge.com)... 71.191.185.32
Connecting to ftp.trailing-edge.com (ftp.trailing-edge.com)|71.191.185.32|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.