You can use a "-f input.txt" option with NSRADMIN,
in this file you just has to put nsradmin commands (such as :". type : NSR Device....".
Just like what you would do on the nsradmin prompt, so, in these commands you'll put the "update" command with the appropriate field value.
Here is an edited version of a rather elaborate script I wrote for some basic device control.
Calling convention:
lc [device] [command] [misc]
device is a 2-char code I associate with a device
/dev/rmt0.1 = i0, /dev/rmt1.1 = i1, and so on
command is a 2/3-char command, I have several, only
implement 2 of them here: on and off
misc is used by some of my other commands
/root/lc
[tt]#!/bin/ksh
# ${1} = device
# ${2} = cmd
QUIT=0
case "${1}" in
""
DEVICE=/dev/rmt0.1
;;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.