Practical System Tips
Practical System Tips
Practical System Tips
Reference Manual
Practical System Tips
by Julie M. Monsour
______________
5/24/07
These are my personal notes, which include published helpful hints, CAR
responses, etc. so use at your own risk. If youre not sure about a command,
dont use it! These notes are constantly changing so if youd like to be on the
mailing list to receive updates send email to: julie.monsour@ips.invensys.com.
Page 1
Page 2
/usr/local/add_periphs
admintool
Starts graphical user interface for adding and administering user accounts and printer configuration.
cd /opt/aim/bin
start_server STOP
apistop
The above commands will stop the AIM processes and the API processes.
histps
The histps command will list the remaining processes and identify their PID#s. On 51 stations, you
do not want to kill the windu processes if they are running.
histps
(confirm that the processes are no longer running)
/bin/csh
apistart
start_server FH
These 3 commands will change to the C Shell, start the API server, and start the historian
processes. You can now open the histmanager and turn the instance on.
Page 3
rtpcheck hist01
(where hist01 is the name of your instance. This utility is used to check .fdb files, if it finds any
corrupt files they will be displayed on the screen as well as in a log file
/opt/aim/inst/hist01/rtpcheck.log)
rtpfix hist01 10
(where hist01 is the name of your instance, r10 is the name of the file marked as corrupt {r10.fdb}.
Run this on each file flagged as corrupt. If the file can not be repaired you will want to delete the
corrupt files from the /opt/aim/inst/hist01 directory).
xrebuild hist01
(this will rebuild the cross-reference file for the instance. Select yes when
prompted to commit changes. If you have errors or results that you are unsure of, you should
consult the Invensys Customer Satisfaction Center prior to committing the updated cross reference
file.)
The next step is to restart the processes. Use the method above for starting the AIM historian and
API processes.
Page 4
cd /usr/fox/customer/config/mycompany.dir
cp dmcfg /usr/fox/customer/hi
cd AW5101
cp *.cfg /usr/fox/customer/alarms/cfg
To copy to the WP5101, (if remote mounted as /rem/WP5101)
cd /usr/fox/customer/config
cp r mycompany.dir /rem/WP5101/usr/fox/customer/config
cd /usr/fox/customer/config/mycompany.dir
cp dmcfg /rem/WP5101/usr/fox/customer/hi
You can also use the scripts below to copy these remotely.
If you do not have an alarm manager configured, there will be no yourAMname.cfg file. Use the
rmount command to remotely mount and copy files to the appropriate remote workstation
directories.
The following is a script to copy the modified/new configuration files that are located in
/usr/fox/customer/alarms/cfg to all AW/WPs in the .rhosts file. This script is named copyc and is located in
/usr/fox/customer/alarms/cfg and is to be run from there. The second script is called copyd and will copy
the dmcfg file to all AWs/WPs in the .rhosts file. It is located in /usr/fox/customer/hi and is to be executed
from there.
Script 1 copyc
for x in `cat /.rhosts`
do
echo rcp $x/*.cfg $x:/usr/fox/customer/alarms/cfg
rcp $x/*.cfg $x:/usr/fox/customer/alarms/cfg
done
Script 2 copyd
for x in `cat /.rhosts`
Page 5
do
echo rcp dmcfg $x:/usr/fox/customer/hi
rcp dmcfg $x:/usr/fox/customer/hi
done
/usr/fox/alarms/CAGinit
This will append the WP names to /usr/fox/alarms/commgrp.cfg.
Page 6
alias
unalias name
(Remove name from the alias list)
Example (assigning ls l to have the alias l:
alias l ls l
Example (use the following in /.cshrc to change your prompt to read the station letterbug and the
current directory)
AW5101:/usr/fox#
Annunciator Configurator
The annunciator Configurator generates the following configuration files for 50 series:
/usr/fox/customer/alarms/cfg/<WPLNAM>.acr
/usr/fox/customer/alarms/cfg/<WPLNAM>AApan
/usr/fox/customer/alarms/cfg/<WPLNAM>AAtab
/usr/fox/customer/alarms/cfg/horn.cfg
<WPLNAM> = WP Logical Name NOT the WP Letterbug
The .acr file is the main configuration file from which the Aapan and Aatab files are built. You will
need to manually move these files to /usr/fox/alarms (all except .acr).
Page 7
2) Be sure you have selected MKYBD (Modular keyboard) on SysDef, and not AKYBD
(Alphanumeric keyboard).
- You can have up to 4 Modular keyboards for the same station.
- The first 2 has to be SysDef's "M KB Modular keyboard", while 3rd and 4th should be "MH KB
Modular keyboard".
- The last 2 keyboards are to be connected to the 2nd GCIO.
3) Once you pass the Committal diskette the host station will have a new/modified file:
/usr/fox/sp/wp_dta
- This file has the information for ALL peripheral devices on ALL WP/AWs like: touchscreen,
modular keyboards, alphanumeric keyboards.
- This file is common to ALL stations. It has one line for every WP/AW on the system.
- Since this file contains binary entries, it cannot be modified with a text editor.
Use bpatch (/usr/foxbin/bpatch) to observe this file. See example below.
Example (from TAC Lab, station 3AWE01):
/usr/foxbin/bpatch /usr/fox/sp/wp_dta
FILE: wp_dta (224) - ASCII
PAGE: 0 (0 - 0)
x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xa xb xc xd xe xf
0123456789abcdef
00: 47 32 42 4f 4f 54 00 00 01 32 00 00 00 30 32 01
G2BOOT...2...02.
01: 47 33 42 4f 4f 54 00 00 01 32 00 00 00 30 32 01
G3BOOT...2...02.
02: 47 34 42 4f 4f 54 00 00 01 32 00 00 00 30 32 01
G4BOOT...2...02.
03: 33 41 57 42 30 31 00 00 01 00 00 00 00 00 00 00
3AWB01..........
04: 33 41 57 43 30 31 00 00 01 00 00 00 00 00 00 00
3AWC01..........
05: 33 41 57 45 30 31 00 00 01 50 31 00 00 00 00 00
3AWE01...P1..... <06: 34 57 50 32 30 31 00 00 01 00 00 00 00 00 00 01
4WP201..........
07: 34 57 50 33 30 31 00 00 01 00 00 00 00 00 00 01
4WP301..........
08: 32 57 50 32 30 31 00 00 01 50 31 00 31 30 32 01
2WP201...P1.102.
09: 32 57 50 33 30 31 00 00 01 50 31 00 31 30 32 01
2WP301...P1.102.
0a: 32 41 57 42 30 31 00 00 01 00 00 00 00 00 00 00
2AWB01..........
0b: 33 41 57 42 49 31 00 00 01 00 00 00 00 00 00 00
3AWBI1..........
0c: 33 41 57 44 30 31 00 00 01 00 00 00 00 00 00 00
3AWD01..........
0d: 33 57 50 35 30 31 00 00 01 00 00 00 00 00 00 00
3WP501..........
... you might need to press RETURN to see the next page...
4) Verify if fields on wp_dta are correct. See table below.
bytes 0-6 WP letterbug plus null terminator (Example: 3AWE01)
byte 7
byte 8
byte 9
Page 8
5) Another file that comes from the Committal diskette, only on 70 Series, is:
/usr/fox/sp/gcioport
This file lists the stations that have GCIOs attached and to which port.
Typical gcioport contents:
AW7001 COM2
AW7002 COM3
AW5001 ttyb
6) SysMgmt will show both GCIO and MKYBD only if they were properly CONFIGURED, and they
will appear WHITE only if their letterbugs match the ones on wp_dta.
7) Be sure DIP switches on GCIO and kybds are configured for the right letterbug:
P = 0/1 0011111 (First switch is for Horn volume, the rest are for letterbug)
1 = 0/1 0010000 (First switch is for Horn volume, the rest are for letterbug)
2 = 0/1 0001000 (First switch is for Horn volume, the rest are for letterbug)
8) If a serial printer WAS configured on this station and later removed, you have to MANUALLY
remove the file: /usr/local/local_printer. This file would prevent the 'sxlinkd' process from running
during station boot.
9) Verify if process "sxlinkd" (the one that talks to the GCIO/Kybd) is running:
Page 9
Page 10
13) Verify EEPROM settings. If "ttyb-ignore-cd" is False, the station will not talk to the serial port.
3AWE01# eeprom | grep ttyb
ttyb-rts-dtr-off=false
ttyb-ignore-cd=true
ttyb-mode=9600,8,n,1,If it is "false", change it to "true" at the ok prompt:
ok> setenv ttyb-ignore-cd true
14) If still doesn't work, check if you are using the right cable:
P0904AK
50 Series GCIO Interface w/o TS
P0904AL
50 Series GCIO Interface w/TS
P0904AH
WP20/30 Series GCIO wo/TS w/Tabletop
P0904AJ WP20/30 Series GCIO w/TS W/Tabletop
P0904BP
WP20/30 Series GCIO w/TS
P0904BQ
WP20/30 Series GCIO w/o TS
P0922AD
WP20/30 GCIO w/TS For Sony 5402 (MIW Top)
P0922AF
WP20/30 GCIO w/TS w/Tabletop For Sony 5402 (EC96)
P0922AE
MIW GCIO w/TS For Sony 5402 (EC96)
P0922AG
50/70 Series GCIO w/TS For Sony 5402 (EC96)
GCIO --------------------------------------------------- WP50/AW50
P0970VB/BW/HS [3/15/30m,10/50/100ft]
GCIO ------------------- ---------- B------------------ WP51A/AW51A
P0970XM/XN/XP P0912GU P0970XG
(standalone)
nullmodem split_cable
or DNBX
A->DNBX
GCIO ------------------- ---------- B------------------ WP51A/AW51A (DNBI)
P0970XM/XN/XP P0912GU P0970XL/XH/XJ/XKXG
nullmodem split_cable
A->DNBI
GCIO --------------------------------------------------- WP51B/AW51B
P0971PA/PB/PC
GCIO ------------------- ---------- B------------------ AW51C/AW51B1
P0971PA/PB/PC
P0912GU P0912GX
WP51B1
nullmodem split_cable
A->DNBX or DNBI
GCIO --------------------------------------------------- WP51D/AW51D
P0971SU/SV/WZ
GCIO --------------------------------------------------- WP51E/AW51E
P0971PA/PB/PC
Page 11
/usr/local called localprinters. This file must be removed in order for the annunciator panel to
function. This file is created when a printer is configured for the serial port. If you have a direct
connect printer connected to the parallel port, this file need not exist and if you want to use an
annunciator on the serial port of the station, this file MUST not exist.
The direct connect printer should be configured to Port 2 on 50 series stations.
ckmacadr
Each AWs MAC address will be printed at runtime. Record each AWs MAC
address. Note that this utility will produce two reports: ckmacadr.ok and
ckmacadr.err and the AW MAC addresses should also be in one of these two files.
Set each control stations PSAP address using the following command:
Page 12
ckmacadr
Verify that the ckmacadr.ok file contains all Aws and hosted CPs.
Page 13
AP20 LOADING
Vxmon is used on AP20s to continuously report information about the usage of kernel tables, the
usage of core, swap space and Vxmon reports information about in-core running processes.
/usr/fox/bin/tools/vxmon
PID
PY
TD
OF
IT
The process ID
The priority
top of data space in kb
number of opened files
number of inode table entries
PPID
Time
Delta
total amount of system and user time used by the process in minutes:seconds.
number of clock ticks (1/60 second) used in between two vxmon samples.
ST
FT
LT
apropos command
Search database for Unix man pages. The apropos command may be used only after the catman command
has been run.
Syntax:
apropos <name>
Example:
Page 14
at Command
usage:
at now + 1 day
at 0233 now
at 0815am Jan 24
at 5 pm Friday
-c
-s
-m
Page 15
-f script
-q queue
-l job
-r job
-f programfile
-F c
Example Usage:
To print only the second column of file1 to the screen, type:
backspace function
To be able to backspace with the backspace key without having to hit the Del key: In your VT100
session, type:
stty erase ^H
(this is Ctrl+H)
Its probably more convenient to put in the .profile or .cshrc file.
Page 17
There is a HH on problem with 20 series not seeing 50 series APs when selecting backup.
Backup-to-tape Utility
See Upgrade Utilities.
init 0
This will sync/close all files and kill all processes
If the previous step fails to bring it to the "ok" PROM prompt, type:
halt
Once the "ok" PROM prompt is displayed, type:
boot -s
Follow instructions to run the "backup" script.
Following this procedure will insure that only those processes necessary to operate in single user
mode are running and the portion of the file system necessary for single user are mounted. The tape
backup will be completed reliably and with no effects on the Node.
Page 18
BACKUP ROUTINE
If using the backup and restore diskette, follow the instructions included to use that particular
backup or restore function.
cd /usr/local
backup
or
RESTORE ROUTINE
The restore utility is supplied on the Day 0 CDROM.
Boot on the CDROM
boot cdrom
to login, type:
root
This brings you to the /cdrom directory, to start the restore type:
restore
Enter the station type: (AW, AP, WP)
The system prompts the user with the following message:
Were these dumptapes made using the dmp0_8MM utility?[y or n]
If they were enter y, if not, n.
If this station has a RAID optional file system to be backed up, the following prompt appears:
Were these dump tapes created from a RAID drive configuration (having a RAID data partition)? [y or
n]:
If using a RAID1 answer no, if using a RAID5 answer yes.
If you answered yes, follow the next instructions for restoring RAID partitions.
Page 19
Can do a remote dump to another tape drive on same network but cant restore from remote tape, must be
local because it boots locally and doesnt know to look for remote stations yet.
50 and 51 stations level 0:
Tape 1
Tape 2
Tape 3
Tape 4
fsck
dmp0_8MM
(this script located in /usr/local but should be in the path)
When script prompts for partition name press enter for all partitions. You must wait until the tape has
finished rewinding (blinking light stops) to press return after inserting the tape. If you dont youll have
some really good problems.
Page 20
fsck
dmp9_8MM
When script prompts for partition name press enter for all partitions
To return to multi-user mode type exit.
fsck
Make sure the station being backed up is shutdown, the tape host can stay in normal multi-user
mode. Use the script commands for backup with this syntax example:
/usr/local/dmp0_150MB <remote_host>
(level 0 dump to 150MB tape)
Return to multi-user mode by typing exit.
Page 21
lc /dev/f0 (AP20)
ls /dev/fd0 (50 series)
or select Show Diskette Directory in the ICC.
dd if=/dev/rshd3.all of=/dev/rshd4.all
The above command will copy the entire drive from the system disk to the backup (rshd4). You can
also check to see exactly how many blocks are on rshd3.
dd if=/dev/rshd3.all of=/dev/null
The number of blocks returned should be the same as when the dd was performed.
To backup an entire system drive to 5gb tape using dd:
Shutdown the AW/AP.
Page 22
st -f /dev/tape2 status
This command will return the drive status information about the tape.
stcopy -t /dev/tape2
This command will retention the tape.
Page 23
METHOD 2
To backup /usr/menus, /usr/disp, and /usr/fox/sys/Change_Env to tape.
Page 24
boot a
boot r
boot s
boot v
If the system fails to boot to single user mode, use the boot vs command (from ok prompt) to
display detailed startup messages.
boot vs
Check to see where in this sequence the system fails. If the system seems to fail immediately
after the kernel loads, then it is possible there is a corrupt or missing systems file. For example, if
the /etc/system file contains an invalid entry you an perform an interactive boot using boot as. The
boot program prompts for the location and the name of all of the important system files it needs to
boot. If the /etc/system file is backed up to an alternate file, /etc/system.orig, this name can be
given instead of the default. Note that you must also enter the physical name of the root device to
match what is in the /etc /system file.
boot as
You will be asked for filename [kernel/unix]: just press return here to accept the default.
Then you will be asked the name of the system file [/etc/system]: type:
/etc/system.orig
Then youll be asked for the physicalname of the root device
[/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5, 8800000/sd@3, 0:a]: you will then
type:
/pseudo/md@0:0,blk
Determine what /etc/rcS.d startup script the system is failing on. Use the output messages from these
scripts listed earlier to isolate the systems point of failure. It may be necessary to boot from the day 0
cdrom to correct the problem as you will not have access to the system if it is not booting to single user
mode.
If at this point the system can boot to single user mode but fails before fully booting to mu lti-user mode.
Boot the system using boot vr. These options will cause the system to display detailed startup messages
and reconfigure the system. If the system starts the Open Look Window Manager (OLWM indicative of
the blue background on the screen) check the S99FOXBORO script for failures. If not, heck the /etc/rc2.d
scripts. Use the output messages from these scripts listed earlier to isolate the systems point of failure.
Additionally a suspect script can be edited with set x to trace commands. For example, insert the line set
x at the top of the /et/r2.d/S801p script to trace each command being executed. The output will display
each command in the script preceeded by a plus sign.
Issue:
Upgrading a system to 6.4 w/WP51E's
After performing the ia_install with the 6.4 day0 cdrom
Workaround:
ia_install (installs baseline 6.4)
Do not reboot machine.
perform only the steps below:
1. For Ultra-30 WP51E: Boot cdrom, mount the / file system and copy
the following files
2. For Ultra-60 WP51E: Boot cdrom, mount the / file system and
re-create the devices.
or
cd /mnt
rm /mnt/dev/dsk/*
rm /mnt/dev/rdsk/*
disks -r /mnt
reboot -- -r
Page 26
This file is loated in /usr/fox/sp/files directory and contains the NSAP address of the station. If a
station is booting local, it must have the same NSAP address as its boot host. You must use
usr/foxbin/bpatch to view this file.
3. Enable Download
The Download Enabled/Disabled parameter is set through System Management by going to the Equip.
Change pick for a given station.
Sometimes gateways on their first bootup will show booted green and on- line in System Management but
you cant get in them in the ICC. You get the error Database Operations In Progress. Look in
/usr/fox/sp/files for a DB<gateway letterbug>.UC file for that gateway. Copy the B<gateway letterbug>.init
file to the DB<gateway letterbug>.UC file and it should finish booting. This usually is only a problem on the
first time that a gateway boots up or could be used when you have a corrupted checkpoint file in a CP or
gateway.
/etc/fdisk -a 0
(reboot)
DOS to Venix:
fdisk
Change boot partitions; Non-DOS partition
bpatch
On AP20:
/usr/fox/bin/tools/bpatch <filename>
On AP50/51:
/usr/foxbin/bpatch <filename>
On NT stations:
There is no bpatch on NT, use fxedit (see fxedit)
Example:
/usr/foxbin/bpatch transfer01.dwf
(bpatches the file called transfer01.dwf)
!
-x
<cr>
?
DEL
\
/
^f
^n
^p
^q
Page 27
^r
^x
^g
^h
^j
^k
^l
a
f
h
l
nnn
q
r
u
w
Bypass Module
1.
2.
3.
4.
5. Use top knob to turn to make black needle align in the middle at zero.
6. After aligning with zero, flip the bottom knob to S. You are in control
7. Before giving control back to operator, he must put in values inside.
8. To give control back to the operator, turn knob back to N
Page 28
Page 29
cal Command
Provides a calendar.
syntax:
cal [[month]year]
Print a 12 month calendar for the specified year or a single month. Without options, print calendar
for the current month.
cat Command
cat filename
(print filename to screen)
catman Command
The catman command builds a database of keywords and allows the apropos command to work.
Syntax:
Page 30
catman
Note: catman needs to be run once and takes about an hour to run.
See apropos for more information.
cb Command
C Program beautifier.
Syntax:
cb [files]
options: -j
join split lines
-l
length split lines longer than length
-s
standardize code to style of Kernighan and Ritchie in
The C Programming Language.
cfgpts
This tool allows the user to configure collection points without the standard interactive historian
Configurator, or to extract point configuration data from an existing database.
AP20 located in /usr/fox/bin/tools
50 Series located in /opt/fox/hstorian/bin
Syntax:
x=show indices
s=statistics
h=help
Checkpoint CPs
For a detailed description of the Checkpoint command, go to the section titled Utilities: Upload,
Shrink, Checkpoint, Save_all.
20 series:
/usr/fox/bin/tools/cpoint CPLBUG HOSTAPLBUG
50 series:
Page 31
Current
Initialization File
Backup file
DB5CP301.UC
2. Make a directory to create a saveall in the /opt partition and create a saveall with cio api
a. mkdir /opt/SaveAll /opt/SaveAll/5CP301
b. cd
/opt/fox/ciocfg/api
c. save_all 5CP301 /opt/SaveAll/5CP301
3. Go to ICC and Initialize, then reboot CP.
a.From Menu: Config, Control_Cfg, CIO_Config, Vol, Edit Station, 5CP301
b. From ICC, Select MAINT, then Initialize
c. Reboot CP
4. Go to VT100 and perform loadall from the saveall created in step 2.
a. cd /opt/fox/ciocfg/api
b. load_all
5CP301 /opt/SaveAll/5CP301
5. Exit ICC so that 5CP301 will checkpoint. Check your work by accessing 5CP301 in ICC again.
Note that any parameters (setpoints, tuning) changed since last Upload will be lost.
ckmacadr
Page 32
See AP/AW 50 Series Station Replacement Changing MAC Addresses Instead of Downloading
FBMs or Rebooting CPs.
chmod Command
Usage:
chmod +x filename
(to make file executable)
who
u
g
o
a
opcode +
=
mode r
w
x
s
t
u
g
o
user
group
other
all
add permission
remove permission
assign permission
read
write
execute
set user(or group) id
save text (sticky) mode
users present permission
groups present permission
others present permission
cmp - Compare
Usage:
Page 33
1.
2.
3.
4.
cd /usr/local/medusa/datafiles
cp sys.diskdata.temp sys.diskdata
cd /usr/local/medusa/databases
cp md.tab /etc/opt/SUNWmd
(copies the file md.tab to directory SUNWmd)
5.
cp md.cf /etc/opt/SUNWmd
(copies the file md.cf to directory SUNWmd)
Page 34
6.
cp mddb.cf /etc/opt/SUNWmd
7.
8.
dd if=md.db.xxx.xxxx of=/dev/rsd0d (copies day0 metadatabase to the raw
partition)
9.
shutdown and reboot to single user mode boot s. Reconcatenate
the extra hard drives as follows:
10.
cd /usr/local/medusa
11.
dft format_disk esp0 scsi2
(may need to type ./dft XXXXXX)
12.
dft add_to_sys esp0 scsi2
repeat the above steps for all other drives 1 then 0
You are now ready to restore only the opt partition as described in the
B0193ND DOC. (The following steps are taken from the B0193ND)
1.
2.
newfs /dev/md/rdsk/d5
4.
fsck /dev/md/rdsk/d5
5.
cd /opt
ufsrestore tfs /dev/rst0 1
(this views the file system Table Of Contents)
cd /opt
ufsrestore tfs /dev/rst9 4
(views the partition Table of contents)
cd /
Page 35
umount /dev/md/dsk/d5
fsck /dev/md/rdsk/d5
reboot and the 51 series box will now boot into I/A
In the local configuration, the maximum number of FBMs per CP10 or CP30 is 24.
Page 36
In the remote configuration, the maximum number of FBMs per CP10 or CP30 is 48 (w/ Remote
Fieldbus Isolators). A maximum of 24 FBMs can be attached to any one (single or dual) Fieldbus
Isolator, with a maximum of 16 FBIs per CP.
The maximum fieldbus length is 1800m/6000ft end-to-end. Fieldbus
when the length of any local bus exceeds 12m/40ft.
The maximum checkpoint file size for a CP60 is 2.7 mb. Sometimes Foxwatch report states that a
CPs checkpoint file size is reaching the maximum. Check to see if the CP is a CP60 and compare
the values.
conn/sconn
See som/rsom.
cd /
umount /dev/fh0
Put a new diskette in the drive:
format /dev/fh0
tar cvf /dev/fh0 /usr/tmp/<CPLBUG>
rm /usr/tmp/<CPLBUG>
On 50 series station:
Put in the drive the diskette that has the tarred file from the 20 series station:
cd /
tar xvf /dev/fd0
eject
Put in this drive, a new diskette that will be your new 50 series save_all.
fdformat
newfs /dev/fd0c
mount /dev/fd0 /f0
rmdir /f0/lost+found
cd /f0
tar xvf /usr/tmp/<CPLBUG>
cd /
Page 37
umount /f0
eject
sh /opt/scripts/my_script
Also note that the name of the script file must end in .ksh (for example, my_script.ksh).
DIR=`pwd`
FILEDIR=`dirname $1`
if [$FILEDIR = .]
then
FILEDIR=$DIR
fi
for all_args
do
for x in `cat /.rhosts`
do
if [ `uname n` != $x]
then
if [$x != junk]
then
if [-f $all_args]
then
echo rcp $all_args $x:$FILEDIR at `date`
rcp $all_args $x:$FILEDIR
fi
fi
fi
done
done
Syntax:
Page 38
blow filename
You must be very careful using this script because the rcp
command tends to take precedence over some system calls.
Care should be taken because sending large amounts of data on the Nodebus can cause other
stations to be unable to communicate. System management may miss heartbeats and flag them
failed or the Nodebus failed. A cable test will usually fix.
Page 39
cd /
mount /pcfs
cp /usr/filename /pcfs
dd if=/dev/rfh0 of=/usr/tmp/disk
Page 40
dd if=/usr/tmp/disk if=/dev/rfh0
If the Media Stamp is incorrect, see the section titled Stamp-ID Changing Incorrect in this
manual.
file core
While in the directory containing the core file will identify the program that dumped the core file.
Then if you type:
omset b T CPLBUG_STA:STATION.PIORST
These counters get reset automatically upon CP station reboot.
The PIOE1R or Fieldbus Retries, keeps track of the number of Fieldbus operations that required one
retry during stable system operation, a non-zero counter may indicate Fieldbus hardware problems.
The PIOEFT or FT Mismatch, keeps track of the number of Fault Tolerant Control Processor output
mismatches on the Fieldbus. This occurs if the Primary and the Shadow have different outputs and
a retry occurs. If several retries are required, then the primary and shadow modules will perform
self-diagnostics to determine if there is a hardware problem, and the suspect module will go off-line
(red/green). A non-zero number in this counter may indicate a hardware problem with one of the
two Control Processor modules or the X-bus and a mismatch may occur as a software glitch.
Page 41
The PIOEGB or FBM State Change, keeps track of the number of good to bad FBM statuses. It is
common for this counter to be non-zero during system startup and checkout, but it should not
increase during stable system operation. If this counter increases over time, the System Monitor
printer should be examined for messages indicating FBM or Fieldbus problems.
The station block provides a connectable, non-settable real ouput parameter total memory
(TOTMEM) indicating the Dynamic Free Random Access Memory (RAM) available for the Control
Database. For proper operation, the CP must have at least 20K of free memory. The CP updates
this value every 30 seconds. To support various functions, the Dynamic Free Memory required is 30
Kbytes for a CP10 and 80 Kbytes for a CP30. This means that the minimum amount of free
memory as shown on the Station block for CP10s and CP30s should always be at least 30 Kbytes
and 80 Kbytes, respectively, when the short term functions (Alarm Message transmission,
operators calling the Select screen, Get/Sets of Control Block Data, Process Summary Report,
etc.) are not occurring.
Some of the Station Block parameters are listed below:
OMLDAV
OMOVRN
Page 42
Note: The values of these counters are guidelines and can be affected by system dynamics.
Exceeding one of these values is not a definite indication of a problem or system error.
Page 43
Example:
A LAN module with a Letterbug Name of NODE04 would get the counter named <LBUG>PDUS30
and <LBUG>FDBDERR by typing:
omget NODE04PDUS30
omget NODE04FDBDERR
Object Manager Variables
NAME
DESCRIPTION
<LBUG>PDUS30
Average number of Packets relayed by LAN over a 30
second average. This counter represents the Network Layer PDUS Relayed counter.
<LBUG>VALLOCF
Page 44
Counter Thresholds
NAME
THRESHOLD
APPROXIMATE RATE
Page 45
0-250
250-300
300-325
0-250
250-275
275-300
300-325
<LBUG>VALLOCF
Not a counter but a reference of free memory in 16 byte
chunks (Normally around 300K)
<LBUG>TKNPASS N/A
<LBUG>TKNHRD N/A
<LBUG>NOSCR8 5 Per Hour
<LBUG>WHOFLWS 10 Per Hour
<LBUG>TKNFAIL 10 Per Hour
<LBUG>NONSIL
20 Per Hour
<LBUG>FCSERRS
20 Per Hour
<LBUG>EBITERR 20 Per Hour
<LBUG>FRMFRGS 240 x Number LAN"s in the token ring
<LBUG>FRMLONG
2 Per Hour
<LBUG>FDBDERR 20 Per Hour
<LBUG>OVERRUN 20 Per Hour
The LI (Lan Interface) provides both Token Bus Controller (TBC) statistics and modem counter
information. These statistics and counters are updated dynamically within the LI memory space by
the TBC, in its limited statistics counter mode. The TBC statistics and modem error counters
cannot be reset, they are read only parameters. Also, these values are not reset upon a MAC reset
or a hot remarry, they are only reset when the LI reboots. However, an LI running Single will clear
the value of Non-silence whenever the value reaches or exceeds 5000. The statistics and counter
values are integer vcalues and are defined as follows:
Noise may be expected in some procedures of the protocol due to collisions. The Non-silence,
FCS Errors, and E-Bit Error counters track the number of noise bursts detected when noise was
not expected. These counters do not track expected noise bursts, only noise bursts that are due to
errors or unexpected noise on the medium.
TBC STATISTICS
NO SUCCESSOR 8
LI.
WHO FOLLOWS
The number of times the LI station has had to look
for a new station to pass the token to. This frame
is sent as part of the TBCs effort to pass the
token to its former successors successor (the
successor of the station that dropped out of the
ring) if the original successor station does not
respond to the tken. This counter is incremented
by two every time a failure occurs.
TOKEN PASS FAIL
The number of token pass failed transitions when
Page 46
LI MODEM STATISTICS
NON-SILENCE
The number of received periods of non-silence. In
other words, the number of times the LI waited
for silence in order to communicate on the cable,
but noise or collisions on the cable caused the LI
to have to wait for a silence period.
FCS ERRORS
The number of received frames with FCS or CRC
errors and the E-bit reset.
E-BIT ERRORS
The number of received frames with the E-bit set
in the end delimiter. The E bit, or error bit, is
set by the regenerative repeater (headend
remodulator), when the headend detects a FCS
error on the forward channel.
FRAME FRAGMENTS The number of frame fragments collected with a
start delimiter (SD) not followed by a valid end
delimiter (ED). A valid frame consists of only data
(zero or one MAC symbols) between the SD and
the ED. If an SD is detected and then, before a
valid ED, the TBC detects either silence, non data
(not part of the aligned ED), or a bad signal, then
this counter is incremented. Note that this
includes abort sequences.
Note: The values of these counters are guidelines and can be affected by system dynamics.
Exceeding one of these values is not a definite indication of a problem or system error.
Page 47
Page 48
Frames Transmitted and Frames Received should not exceed 50 pkts/second. DMA Underruns,
Excess Collisions, CRC Errors, Align Errors, No Receive Resources, DMA Overrun, Collisions and
Transmits Deferred are not reported on FT stations unless it is a CLI.
Note: The values of these counters are guidelines and can be affected by system dynamics.
Exceeding one of these values is not a definite indication of a problem or system error.
Note: The values of these counters are guidelines and can be affected by system dynamics.
Exceeding one of these values is not a definite indication of a problem or system error.
Page 49
Note: The values of these counters are guidelines and can be affected by system dynamics.
Exceeding one of these values is not a definite indication of a problem or system error.
Page 50
Note: The values of these counters are guidelines and can be affected by system dynamics.
Exceeding one of these values is not a definite indication of a problem or system error.
Page 51
Page 52
Note: The values of these counters are guidelines and can be affected by system dynamics.
Exceeding one of these values is not a definite indication of a problem or system error.
cpio Command
To copy from tape to hard drive:
Crontab
The crontab file consists of six fields:
minute (0-59; hour (0-23); day of month (1-31);
month of year (1-12); day of the week (0-6 with 0=Sunday):
crontab [file]
will add the file to crontab
crontab -r
will remove the crontab file
crontab -l
will list current crontab entries
20 series
in /usr/lib/cron (cron.allow cron.deny must exist)
if crontab file is named jmm.cron,
crontab jmm.cron
(to schedule crontab)
example line:
10 07 * * * /usr/fox/hstorian/bin/hpu
which tells it to execute the script called hpu at 7:10 a.m. every day of every month of every year.
50 series
crontab -l
shows whats in crontab. If no entries are shown by crontab -l then add lines to crontab by following
this procedure:
To add a line to your crontab file:
Page 53
crontab cronit
If youre not sure what the name of the crontab file is, you can get the current crontab
configuration and add to it and rename it by doing the following:
crontab -l > cronit
to get crontab contents and create a file named cronit
crontab cronit
This is now your current crontab file.
/opt/fox/bin/tools/glof -p CSA_SERVER
This will give an output as follows:
Global find for process "CSA_SERVER" = 0
00 00 00 01 00 0D 49 30 30 30 30 30 31 08 00 20 A3 70 85 00 00 00 00 00 00 00
Now type the following to ensure this is the expected station:
/opt/fox/bin/tools/fist APLBUG
(APLBUG being your host)
This will give an output as follows:
Station Identifier Address (hex) Error description
----------------------------------------------------6AWE01 I000001
080020A37085
So this states that 6AWE01 is my CSA_SERVER due to the 08 00 20 A3 70 85 in the glof
command matching my Address.
Next thing you must have to rebuild your CSA database is a good CSA_Save.
This is performed by the following set of commands:
Type: cd /usr/fox/csa
Type: mkdir save (The directory name can be other than save)
Type: CSA_Save
If this hangs on the control processor that is the problem the following
Page 54
1 0 16:58:06 ?
0:35 /usr/fox/csa/CSA_SERVER
kill the process using the PID number from the second column of the line with CSA_SERVER.
Type: kill 1826
Type: cd
/opt/fox/csa
Type: cp -rp ./* /opt/tmp (This copies all files to directory /opt/tmp)
Type: rm -r *
(This now empties CSA database)
Type: cd /opt/tmp
Type: cp -p BPARM_DEF* /opt/fox/csa
Rebuild the default CSA files by doing the following: Reboot your CSA host. After the host boots do
the following to verify that the default CSA
files are there.
Type: cd /opt/fox/csa
Type: ls (you should see the following)
BPARM_DEF.dat CMPD_INDEX.dat STN_INDEX.dat drivers.chk
foxblock.lic BPARM_DEF.idx CMPD_INDEX.idx STN_INDEX.idx
drivers.lic
Load CSA back into the system by doing the following.
Type: cd /usr/fox/csa
Type: CSA_Merge ./save (This restores the CSA database)
Output will look like the following:
Page 55
dbvu/dbvu30/dbvu40
(20 series)
/usr/fox/bin/tools/dbvu -? DB[CPLBUG].UC
(50 series)
/opt/fox/bin/tools/dbvu -? DB[CPLBUG].UC
Page 56
The directory that contains checkpoint files that are updated during a checkopint is /usr/fox/sp/files.
The directory that contains work files that are updated during an upload is /usr/fox/ciocfg/CPLBUG.
Options:
-u
print local unresolved linkages
-r
print remote linkages
-s
print summary of the application (period & phase)
-p
print block names with period/phase
-l
print block names with secured input(s)/secured linkage
-b
print block names with bad data type(s)/bad input
-t
print details: parameters, linkages, BPC
-T
print the same as -t except light difference in lines with
block names to easy file compare
-d
report station parameters relating to CP loading, alarm
devices, and supervisory control
-e
compound block errors
-C
Checkpoint filename
/usr/fox/bin/tools/dbvu
run by itself will give argument screen.
The block equiv. calculation in dbvu is not accurate.
to document ECB blocks:
dbvu_err
This command takes the output from dbvu t as its input to generate a compound-block-error report
named file1.
Syntax:
dbvu_err h
Example:
cd /usr/fox/sp/files
/opt/fox/bin/tools/dbvu t C DB<GatewayLetterbug>.UC M OS1MG.mp2 I OS1MG
| /opt/fox/bin/tools/dbvu_err
**(the above 2 lines are one command, please do not issue these lines separately. This command
on one line.)
Where -M OS1MG.mp2 is a request for the map file, and the I (this is a capitol i ) OS1MG
is the image file. These files are found in /usr/fox/sp/files.
dd command
Page 57
defunct Processes
A reboot is required to remove defunct processes.
A process moves in and out of various execution states throughout its lifetime. When a process
terminates, it enters what is called the zombie state. A process in the zombie state is said to be
defunct. In the zombie state a process entry in the process table is replaced with its exit status,
and the user and system time required to run it. Thus a defunct process entry exists whenever a
child process terminates. After forking a child, mkzombie sleeps for a minute. Because the child
process exits immediately, it is in a zombie state for the entire minute its parent is sleeping. A
childs exit status is returned to its parent process only if the parent process waits for it by
executing a wait(2) system call. When a childs exit status is reported to its parent, the childs
process table entry is removed. If the parent never calls wait(), as in mkzombie, the zombie child
stays in the process table until the parent process terminates.
Most likely, your defunct process was the child of a still-executing parent. It cant be killed
because a zombie process is never scheduled to run and, thus, will never receive the signal youre
sending it.
d_edit Command
Usage:
[ENAOPT | -DISOPT | -DBASE | -DOVER | -ALARM]
[-OVLPOS=FULL | UL | UR | LL | LR | UP | LOW | LEFT | RIGHT]
[-SCDELAY=0255] [-SCRATE=120] [-v[fs]] [-o] [-lrxLRX]
[-ggroup_name] [-ompath] -[m[,n]]e[/search]/[search2]/[-I | -dump | -upload]
[-embed -l ] [-embed [script_file_name] -del | -upd]
[-embed script_file_name -add] disp_file_name
/usr/fox/bin/tools/d_edit -l filename
(lists all connections)
Page 58
/usr/fox/bin/tools/d_edit -I filename
(will ask for connection number to change - q quits
and reinstalls.
for x in $*
do
if [-f $x]
then
/usr/fox/wp/bin/tools/d_edit50 dump $x
vi $x.dmp
/usr/fox/wp/bin/tools/d_edit50 upload $x
rm $x.dmp
else
echo $x is NOT a file!!!
fi
done
Syntax:
editdisp displayname
To verify connections on displays:
tail f /usr/tmp/d_edit.log ..
Page 59
-m
-t
-T
When characters such as #, $, \, ? and * are used, be sure to use a pair of single or double quotes
to specify the character (e.g. $), or entire argument (e.g., -c/?/a/).
Device Monitor
The Device Monitor monitors the status of:
Comm Servers for all printers attached
Graphical Consoles (WPs, AWs, PWs)
Troubleshooting Hint:
If a wp has a cs_devmon.cfg file with the size of 0, copy the cs_devmon.cfg from another aw/wp on
the node. Once the cs_devmon.cfg file is 0 the devmon doesnt have any stations in his list to
initialize or update. (QF8410 4.2 fixed in 4.2.2 & 6.0).
On AP20s/PWs during the software install process there was a problem. Device Monitor was
started by the p_init script before the PW/AW had configured his nodebus NSAP address. This
caused Device Monitor to mark all configured alarm destinations as failed. (QF8945)(Fixed in 4.2.3).
glof p DEV_MONITOR
(glof returns a string of hex which contains the address of the master). Perform a fist on each
aw/ap/wp/pw in the system to get all file servers addresses.
/opt/fox/bin/tools/fist LID
Compare the address from the glof with the address from the fist and determine who the master is.
glof p DEV_MONITOR
/opt/fox/bin/tools/fist LID
run fist on all stations to determine master.
omdel p DEV_MONITOR
on the master find the pid of cs_devmon and kill it, then restart the cs_devmon process.
Page 60
kill 9 pid
cd /usr/fox/bin/tools
omdel p DEV_MONITOR
(delete shared object).
cd /usr/fox/cs
mv cs_devmon cs_devmon.old
(prevent restart on reboot).
kill 9 pid
cd /opt/fox/bin/tools
omdel p DEV_MONITOR
(delete shared object).
cd /usr/fox/cs
mv cs_devmon.cfg cs_devmon.cfg.old
(prevent restart on reboot).
kill 9 pid
cd /opt/fox/bin/tools
omdel p DEV_MONITOR
(delete shared object).
cd /usr/fox/cs
mv cs_devmon.c fg cs_devmon.cfg.old
(prevent restart on reboot).
omdel p DEV_MONITOR
cd /usr/fox/cs
mv cs_devmon cs_devmon.old
50 SERIES Termination:
ps aux | grep cs_devmon
(for 50 stations)
kill 9 pid
cd /opt/fox/bin/tools
omdel p DEV_MONITOR
cd /usr/fox/cs
mv cs_devmon.cfg cs_devmon.cfg.old
Device Names
PW - 3.5 F/D = /dev/fmh1 at v4.0=/dev/fh0
PW - 5.25 F/D = /dev/fh0 at v4.0=/dev/fh1
WYSE = /dev/fd0
AP/WP50 3.5 F/D = /dev/fd0
Floppy from single user mode = /dev/fd0c
Mirrored Drive = /dev/sd0
150 MB ST Drive = /dev/rst0
4MM 5GB TAPE = /dev/rst9
8MM Tape = /dev/rst1
There are instances where the newer tape drives will use the /dev/rst4 or /dev/rst36 driver. Make
sure that the thumbwheel on the back of the drive is set correctly.
Sun systems use the following naming convention to describe the logical device name for a disk:
/dev/[r]dsk/c#t#d#s#
The 1st # is the controller number.
The 2nd # is the target number.
The 3rd # is the disk or LUN number.
The 4th # is the slice/partition number.
The controller numbers would be c0 or c1. The target address would be t3 for a SPARC system
and t0 for an Ultra system. The disk number is also known as the logical unit number (LUN) and is
always set to d0 for any embedded SCSI device. The slice numbers range from 0 to 7 and are the
partitions. The following is an example of the slices:
s0 = / (root)
s1 = swap area
s2 = address of whole disk
s3 = metadevice database area
s4 = /var
s5 = INFORMIX raw database area
s6 = /usr
s7 = /opt
Page 62
To address the root partition of a SPARC machine, the address would be as follows:
/dev/dsk/c0t3d0s0
To address the root partition of an ULTRA machine the address would be as follows:
/dev/dsk/c0t0d0s0
Foxboro uses another naming convention and the relationship is as follows:
Foxboro Name
/dev/sd0a
/dev/sd0b
/dev/sd0c
/dev/sd0d
/dev/sd0e
/dev/sd0f
/dev/sd0g
/dev/sd0h
The AWs use the Metadevice address to access the drives which are as follows:
/dev/md/dsk/d0 = / (root)
/dev/md/dsk/d1 = swap
/dev/md/dsk/d2 = /var
/dev/md/dsk/d3 = INFORMIX
/dev/md/dsk/d4 = /usr
/dev/md/dsk/d5 = /opt
In the above mentioned naming convention, there are also directories of the same devices known as
the raw partition. There is a /dev/sd0a as well as a /dev/rsd0a. The /dev/sd0a is accessed by
blocks, is buffered, and is mountable. The /dev/rsd0a is accessed by characters, is not buffered
and is not mountable.
devnm <filesystem>
Identifies the device name associated with specified file system such as /usr, /opt, etc.
df command
df -t
on a 20 series station reports number of free blocks
/bin/df
on 50 stations
df -k -F ufs
on 51 stations
Page 63
dft commands
To concatenate a drive: (example is for the second drive; the one after the system disk. System
disk is esp0 scsi3 and the second drive is esp0 scsi2, the third is esp0 scsi1, etc.)
shutdown to single user mode
diag_fist
Uses the tool fist and the files sldb and hldb creating an output with Station letterbug, station
identifier, station address, station type, host AP, system monitor host, and system monitor domain.
Use on AP20:
/usr/fox/bin/remote/diag_fist > fist_out
Use on AP50:
/opt/fox/bin/remote/diag_fist50 > fist_out
Use on AP51:
/opt/fox/bin/remote/diag_fist51 > fist_out
Dir options:
-l
long output format
-s
report files that are identical
-Sfile
-r
recursive for common subdrs
begin dir. comp. with file
-wn
Page 65
The root (/) and /tmp should have at least 2000 blocks of free space (enough to tar in a floppy). The
/usr partition should have at least 4000 blocks free. Also check the number of free inodes. If files
use up all the inodes free, blocks will be inaccessible without an inode to reference the block.
50/51 Series
The Sun files system reserves 10% of total space in all partitions so when the df command shows a
partition at 100% there is still space left. The recommended level for all partitions is less than 90%
used for all partitions (Aps /usr should be less than 95% used). The number of inodes should be
less than 80% used.
cd /var
du > /usr/list
3) Sort lines in report by size, in reverse order.
cd /usr
sort n r +0 list > list1
4) Look for non-familiar names at the beginning of the list, or abnormal size.
more list1
Recommended ways to free disk space..
1. delete unwanted core files; see find command to help locate the core files.
2. UUCP is located in /var/mail and /var/cron and is an incremental log file that grows on 50 series
stations.
crontab -r uucp
echo > /var/cron/log
rm /var/mail/uucp
This procedure deletes UUCP, deflates the log file and stops crontab from writing to that file.
3. Another incremental log file that grows is online.log located in /var/tmp.
cd /var/adm
Page 66
cp /dev/null wtmpx
cp /dev/null utmpx
8. Look in /var/adm/messages. Some of these older messages can be deleted. (These messages
are report of all messages during station bootup.
9. In /etc/fox/users_apps.log file there are usually no more than 2 or 3 lines in this file, however if
an application is crashing or corrupt, it may dump an enormous amount of garbage to this file.
10. For root space issues, a common place to look is /dev. Look in here for irregular items or typos
such as someone tried to tar off information to /dev/fo instead of /dev/f0, or redirecting a file to a
printer (i.e. lp00 instead of LP00). If a device file/Driver needs rebuilding, see Drivers Rebuilding
Devices in this manual.
11. Check in /opt/fox/rpt_wrt/rpt_run to see if there are old report writer reports that can be deleted.
12. To free up space on /usr, the man pages may be moved to /opt and linked. See User notes for
v4.0 B01193Q1. Rev C 5.2.20.1.
13. When your root partition capacity is at 100% and you cant find any files to remove, theres the
possibility that while in single user mode, someone has Tarred a file or directory that is root relative.
The space increases the capacity used by root. The system then gets rebooted and root gets
mounted and the space that was used when in single user mode is now hidden. Shutdown the
AW/AP and do a boot s to go to single user mode. At the prompt in single user mode execute
the following du command: du / > /var/du.root. Examine the output file of the du command. The
space that was hidden while in the Multi User mode should now be visible. Remove the file or dir.
And reboot.
14. Umount all remote mounted stations and check the /rem directory for files named with the
letterbugs of the stations that could possibly be mounted. When trying to copy to a remote device
that is not rmounted, a file by the name of the station that youre copying to will be created in
/rem. This file will not be visibile while that station is rmounted, therefore it is necessary to
rumount all stations to find this problem file/files.
15. Another way to free space on the /usr partition is by using loopback mounting to the /opt
partition. An example of this would be the /usr/disp directory:
mkdir /opt/disp
cp rp /usr/disp /opt/disp
rm r /usr/disp
mount F lofs /opt/disp /usr/disp
Caution: Make sure that directories which are being loopback
mounted are not symbolically linked to other directories. Also do not
loopback mount to the / or /var partition. Usually loopbacks are only
performed to the /opt partition.
16. Use the du command to find what directories are using the most
space.
17. The /proc directory exists only on 51 series. The /proc is actually a file system which provides
access to the image of the process in the system. Even though the du command will show this
diretory as using a lot of space in the root
partition, NOTHING should ever be removed from
this directory.
18. If the root (/) partition fills up on a Solaris machine and you cant find the problem, try looking for
a hidden file called wastebasket. It is used by the Solaris file manager much the same way that
the Recycle Bin is used on Windows stations.
cd /usr/fox/wp/bin/tools
Page 67
use_foxview.sh
Then reboot the station.
If youre running Foxview and want to change to Display Manager:
cd /usr/fox/wp/bin/tools
use_displaymanager.sh
Then reboot the station.
Page 68
dmesg
This command provides a listing of the systems last reboot (only on 50/51 stations). Another way
to look at bootup history is to do a more /var/adm/messages.x, where x = the message number.
The higher the number, the older the file.
dmpcfg
Historian tool:
To list reduction group configuration:
dmpcfg r
To list reduction group configuration as well as operations and member points:
dmpcfg rom
To list collection point configuration:
dmpcfg -c
dmpnam
Example:
dmpstat
This tool prints the contents of __tdata for all sample collection points.
Example:
cd /usr/fox/bin/tools/hstorian/bin
/usr/fox/bin/tools/dmpstat
doscopy Command
Page 69
doscopy dos!a:fname.ext
doscopy -b dos!a:os1uc /usr/fox/sp/files/os1uc
(keeps same name into current directory)
/usr/lib/lpshut
ls li /dev/LP13
mknod LP13 c 23 13
chown lp LP13
chgrp sys LP13
/usr/lib/lpsched
Page 70
50 Stations
On 50 Series there an be files greater than 1K in the /dev/directory but device drivers should never
be that large. If a devie needs to be recreated you an delete it and use the MAKEDEV script
located in the /dev directory.
For example: If you wanted to create device ttyt0 you would type:
MAKEDEV ttyt
This would also try to create ttyt1-3. If they already existed you would receive a message.
51 Stations
On 51 Stations (Solaris 2.2 and up) devices are created when the box is booted with a boot r
(reconfigure). Use the boot r option to recreate a corrupted device. If the devices for tape or floppy
drives need to be rebuilt, the commands for rebuilding and linking these devices can be found in the
/etc/rc2.d/S99FOXBORO script file.
rm /dev/nrst9
reboot machine with boot -rs
/usr/sbin/drvconfig
/usr/sbin/devlinks
/usr/sbin/disks
/usr/sbin/tapes
/usr/sbin/ucblinks
You can also stick a tape in the drive and try running the command :
/usr/local/add_periphs
Check the file /dev/nrst9 and see that it got built and is linked to nrst29. If the file still doesnt exist,
type:
ln rst29 rst9
ln nrst29 nrst9
This method used on AW51E:
boot cdrom
Page 71
cd /devices/pci*/scsi@3
ln st@5,0:lb /tmp/rst9
cd /cdrom
cp restore_8MM /tmp
cd /tmp
vi restore_8MM
Toward bottom change TAPE device from /dev/rst9 to /tmp/rst9
/tmp/restore_8MM
if doing a level 0 dump, substitute dmp0_8MM for the restore script above.
mt f /dev/rst9 status
If mt returns status information, the tape drive is accessible, if not, correct the problem by:
Verifying that /dev/rst9 is still a device driver and is linked to a rmt device driver.
Verify power and cabling
Check the tape drives adddress, A QIC tape drive uses SCSI address 4, a 4mm tape drive uses
SCSI address 5.
Use above method for building drivers if necessary.
drvconfig
drvconfig creates the /devices directory tree which includes hardware devices.
dtree Command
dtree
to see directory tree
du Command
Disk Usage
Syntax:
du [-asrk] [name]
Page 72
-a
-s
-r
-k
AP20/PWs
cd /
du s * | more
(This will give files and directories in 512 byte blocks)
50 Stations
cd /
du s * | more
(This will give files and directories in kblocks)
51 Stations
cd /
du sk * | more
(This will give files and directories in kblocks)
.0
if [ $DMNAME = $GCLBUG ]
then
/opt/fox/wp/foxview/foxview.exe
else
exit
Page 73
fi
4. Edit /usr/fox/wp/data/fv_cmds. Place this line at the end of the file:
# magic number
# clear previous messages
#
== $DM_LOCAL N dmcmd protect value 100
# protect access to single instance
# applications
== $DM_LOCAL N dmcmd disable omsets
# disable OM sets for all remote DMs
# by default
== $DM_LOCAL N dmcmd disable clralm
# disable clearing CAD alarms for all
# remote DMs by default
== $DM_LOCAL Y getenv CADDD CADDD
# set CAD redirection variables to
# configured
== $DM_LOCAL Y getenv CADTP CADTP
# values when running locally
== $DM_LOCAL Y getenv CADUS CADUS
#
== $DM_LOCAL N = CADDD ""
# clear CAD redirection variables
== $DM_LOCAL N = CADTP ""
# when running on remote
== $DM_LOCAL N = CADUS ""
# terminal
#
disable monitor
# don't set OM monitoring variables
mount $TMHST
# mount the logical host
dmcmd ojinit
#
#$SYSDIR/Change_Env/Init_Env
# call in initial environment
$OPTFOX/env/Initial.env
# call in initial environment
#$ENV1
# call in configured first environment
= TCTOUT 10
# set on-line trend cfg timeout to 2 sec
$INITDSP
# call in initial display
#$INITDSP
# call in initial display
Page 74
Primary ECB
Primary ECB
Analog Input
Analog Input and Analog Output
Pulse In and Analog Output
Digital In, Sustained/Momentary, and Digital Out
Sequence of Events Input
Digital In and Pulse Count Input
Ladder Logic or DC Out/Validated Input
Remote/Manual Station (Analog I/O, Digital I/O)
Reserved for Primary FBM (ECBP)
Intelligent Transmitter 2 Interface (Parent)
Hydrostatic Tank Gauge
Panel Mounted Display
Allen-Bradley Programmable Logic Controller
Modicon Programmable Logic Controller
Intelligent Transmitter 2 (Child)
760 MICRO Controller
761 MICRO Controller
Mass Flow Transmitter (Coriolis)
Intelligent Transmitter 2 Interface (Parent)
MDACT Feedback Lag Tristate
MDACT Pulse Width Tristate
Intelligent Transmitter 2 Interface (Red Parent)
AMSPRI Gas Chromatograph
Analog Input FBC
Digital Input FBC
Analog Output FBC
Digital Output FBC
Digital Input/Digital Output FBC
FBP10 Interface to Cluster I/O (Parent)
DPIDA Controller
Analog Output
Port ECB
C50 RTU Intelligent Transmitter
Foundation Fieldbus H1 Interface
Profibus Application
Foundation Fieldbus H1 Device
Redundant DCI Fbm Interface
Page 75
Press Stop (L1) and n keys while turning the power on to the 50 series processor. This restores
the default NVRAM parameters defined by Sun.
Method 2
Performed from a Wyse terminal direct connected to a 50 series processor. These commands are
used to change parameters while in openprom mode (at ok prompt).
To get the current eeprom parameters:
printenv
To set the eeprom parameters:
eeprom input-device=keyboard
eeprom output-device=screen
Changing AW and WP NVRAM parameters to AP NVRAM parameters:
Method 1
In openprom mode on the AW or WP:
eeprom input-device=ttyb
eeprom output-device=ttyb
Page 76
Problem: Sometimes a 51 series station may not boot up properly or send its output to the monitor
due to incorrect settings and may need to have the NVRAM reset to default values. On earlier
models of SUN workstations the NVRAM could be reset by holding down the Stop Key and the "N"
key simultaneously while powering up the station. On SUN stations that have USB peripherals the
Stop "N" sequence does not work. This currently applies to the P79 (51F) and P80 (51G) stations.
In many cases the set-defaults command can be used to reset the NVRAM parameters to their
defaults but in cases where the input or output device has been changed you will need this
procedure.
Solution:
Note: The following procedure doesn't actually reset the NVRAM parameters to their default values.
This procedure enables the NVRAM parameters to be accessed to view their current and default
settings as well as change them.
Page 77
overwridden:
'diag-switch?' is true
'use-nvramrc?' is false
'input-device' 'output-device' are defaulted
'ttya-mode', 'ttyb-mode', are defaulted
5. At this point you must set the NVRAM values to the desired settings. Use the printenv
command to see current and default settings. Use the setenv command to set parameters to the
desired value. See Examples below. Make sure that the diag-switch? is set to false. Some NVRAM
settings are set to default by this procedure and must be manually reset in order for them to remain
permanent.
6. If the screen comes up with the normal boot sequence information power down and repeat the
procedure.
Printenv Example:
printenv <RET>
Value
test-args
diag-passes
1
pci-probe-list 7, c 3, 8, d, 13, 5
Default Value
1
7, c, 3, 8, d, 5, 13
Setenv Example:
setenv diag-switch? true <RET>
Page 78
Error Messages
ERROR received trying to enter a station in the Control
Configurator
Above messages received in control configurator going into a CP. Checkpoint process was running
at the same time - was able to kill the checkpoint process to fix.
Also, if the ICC is already open in that CP/Gateway on another AW/AP/WP, this message will be
given.
If the CP/Gateway is not completely booted, this message will be received.
Sometimes gateways on their first bootup will show booted green and on-line in System
Management but you cant get in them in the ICC. You get the error Database Operations In
Progress. Look in /usr/fox/sp/files for a DB<gateway letterbug>.UC file for that gateway. Copy the
DB<gateway letterbug>.init file to the DB<gateway letterbug>.UC file and it should finish booting.
This usually is only a problem on the first time that a gateway boots up or could be used when you
have a corrupted checkpoint file in a CP or gateway.
find the number of the process of smon and use in the next line.
The above error received while performing the Shrink Function. Shrink doesnt work properly after
v3.0, so you have to go into a library volume and initialize it then you can do the shrinks.
The following information for the 'SP Error lck_chkpt' failure is from the
Section 14. Integrated Control Configurator B0193QL - Rev C of the 'Release Notes for Version 4.0
Operational Recommendations' document :
14.1.27 Workstation Reboot While in ICC
If the Workstation Processor is inadvertently rebooted when in the
Integrated Control Configurator (ICC), the ICC attempts to clean up its database and leave the
environment in a usable state. When the system is busy, this can take a non-trivial amount of time.
If the user immediately re-enters the ICC using the WP which was rebooted, a number of
undesirable
symptoms can occur.
As a result of this possibility, it is recommended that when such a WP
reboot or other nonpermanent WP failure occurs, the user should wait at least five (5) minutes
before attempting to initiate a new ICC session using (1) the same WP and (2) referencing the CP
that was being edited when the reboot occurred.
If the user doesn't wait long enough, any or all of the symptoms listed
below may occur.
The top menu bar contains two overlapping sets of soft keys.
When attempting to re-enter the Control Station which was being edited when the WP failure
occurred, the user may be returned to the initial display (Foxboro logo).
When attempting to re-enter the Control Station which was being edited when the WP failure
occurred, the operation may be prevented due to the error "Open New Configuration", "Remote Host
Transfer", "Failure".
When attempting to re-enter the Control Station which was being edited when the WP failure
occurred, the operation may be prevented due to the error "SP Error lck_chkpt", "Failure".
When any of the above symptoms occur, the user should take the steps listed below to execute a
manual recovery. To begin, the user should exit from the ICC. Then, enter the VT100 screen from a
different WP or use a Wyse terminal to log in to the host AP of the CP which was being edited
when the WP failure occurred.
The steps are as follows:
1. Execute the shell command "ps -auxww" if on a SunOs system or the command "ps -aef" if on a
VENIX or Solaris system. Note if a process
"ciocfgtask.nhi" is active. If one or more such processes is active, note the process id (PID) of the
process where the command line contains the letterbug of the WP that failed. If one exists, execute
the following command:
kill -9 PID
2. Execute a "cd" command to "/opt/fox/ciocfg/tmp" if on a Sun system or to "/usr/tmp" if on a
VENIX system. Perform the command "ls -CF". If you find a directory whose name is the name of
the letterbug of the WP that failed (WPLBUG), execute the command "rm -r WPLBUG" to delete
that directory. (This operation removes the left-over PASTE buffer, if it exists).
3. Execute a "cd" command to "/usr/fox/sp/locks", and then execute "ls -CF". If either a file with the
name fCPLBUG+ or one with the name sCPLBUG exist in this directory, delete the file(s). CPLBUG
is the letterbug of the CP that was being edited when the WP failure occurred.
Page 81
4. Execute the command "/usr/fox/bin/rem_stop WPLBUG" where WPLBUG is the letterbug of the
failed WP.
5. Finally, reboot the previously failed WP.
At this point the ICC may be entered for normal operations.
Another thing to try is to review the /opt/fox/ciocfg/tmp/<WPLBUG>.log file that gets generated for
the AW51E on the boot host AW51.
cp BBUCE001.UC DBUCE001.UC
cd /
umount /dev/fh0
Page 82
AW51B1 AW51B1.
loghost
It should also be noted that the start-up file for sendmail is renamed
to /etc/rc2.d/s88sendmail (lower case s) to prevent sendmail start-up
by default.
/etc Directory
FILENAME
/etc/fox/loghost
/etc/aplns
/etc/cplns
/etc/histlns
/etc/histlocs
CONTAINS
Logical host of WP50/WP51
Logical names of all APs & PCs
Letterbugs of all Control stations and gateways
Names of all historians
Historian names and letterbug of host
Page 83
/etc/lblns
/etc/printers
/etc/wplns
0-20 mA Input
Thermocouple/mV Input
RTD Input
0-20 mA Input/Output
Redundant Input/Output 0-20 mA
Pulse Input 0-20 mA Out
Contact/dc Input
120 Vac Input
Contact/dc Input/Output
120 Vac Input/Output
240 Vac Input/Output
Contact/dc Input Expander
120 Vac Expander Input
Contact/dc Expander In/Out
120 Vac Input/Output Expander
240 Vac Input/Output Expander
0-10 Vdc, Contact/dc Input/Output
Intelligent Transmitter
240 Vac Input
240 Vac Input Expander
Auto/Man Station Int.
125 Vdc Input
125 Vdc Input Expander
125 Vdc Input/Output
125 Vdc Input/Output Expander
Copper RTD Input
Modified FBM02 - Calted Range 0-21.1 mV
0-20 mA Output Interface Module
Intelligent Xmit Input/0-20 mA Output
Contact/dc Input/High Current dc Output
Cont/dc Input/High Current dc Out Expder
Dualbaud Intelligent Transmitter
Dualbaud Intelligent Transmit Int/0-20 Out
Redundant Intelligent Transmt In/0-20 Out
P0400DA
P0400YC
P0400YD
P0400YE
P0400YF
P0400YG
CM400YH
DM400YJ
CM400YK
DM400YL
CM400YM
CM400YN
DM400YP
CM400YQ
DM400YR
CM400YS
DM400YT
P0400YV
CM700QV
CM700TW
P0900HS
DM900HT
DM900NX
DM900HU
DM900NY
P0912MJ
P0915DX
P0915FC
P0902UT
P0902XA
P0902XB
P0950BM
P0950BN
P0950DA
P0914SQ
P0914ST
P0914SV
P0914SY
P0914XG
P0916CQ
Page 84
FBM207
FBM207b
FBM207c
FBM211
FBM212
FBM213
FBM217
FBM219
FBM220
FBM221
FBM237
FBM241
FBM241B
FBM241C
FBM241D
FBM242
FBM243
FBM246
FCM10E
FCM10Ef
FCM2f
FCM2f
FCM2f4
P0914TD
P0914WH
P0917GY
P0914TN
P0914XL
P0914XN
P0914TR
P0916RH
P0917HA
P0917HB
P0914XS
P0914TG
P0914WK
P0914WM
P0914WP
P0916TA
P0914TK
P0917XN
P0914YM
P0916CP
P0916TQ
P0914YZ
P0917JA
Page 85
File Types
Usage: file [-c][-h][-f ffile][-m mfile] file
-c
check magic file for errors
-h
do not follow symbolic links
-f ffile ffilename contains names of files to be examined
-m mfile mfilename as an alternate magic file instead of /etc/magic
file filename
shows file type of filename
file *
shows file types of all files in a directory
find
Use on AP20 and AP/AW51:
find / -name <filename> -print
To skip searching for a file in remote directories you should use the following arguments in your find
command:
-fstype urfs prune o
To skip rmounted hosts
Example:
touch filename
(to timestamp the file)
Page 86
fist
Will locate any station on the node. It prints out several identifiers and the network address of the
station specified. (Station letterbug, NSAP address, mac/ethernet address)
on AP20:
/usr/fox/bin/tools/fist <Station_Lbug>
on AP50/51:
/opt/fox/bin/tools/fist <Station_Lbug>
/dev/rfd0
Page 87
Issue 3
For the Operating System Solaris 8 (On P80 and P81), the DOS 8.3 names
are in upper case unless you use the -o foldcase option. The foldscase
option forces all upper case and mixed case names to lower case, in this
way the contents of the diskette will be treated as Solaris 2.5.1.
Solution 3
The below procedure is assuming that the contents of the MS-DOS
diskette, is the following (Using the windows explorer):
text1.txt
text2.txt
TEXT3.txt
TExt4.txt
Solaris 2.5.1
Mounting a DOS diskette and listing its contents:
# mount -F pcfs /dev/fd0 /pcfs
# ls /pcfs
text1.txt
text2.txt
text3.txt
text4.txt
Solaris 8
Mounting a DOS diskette with out the foldcase option and listing its
contents:
# mount -F pcfs /dev/fd0 /pcfs
# ls /pcfs
TEXT1.txt
TEXT2.TXT
TEXT3.txt
TExt4.txt
Mounting a DOS diskette with the foldcase option and listing its
contents:
# mount -F pcfs -o foldcase /dev/fd0 /pcfs
# ls /pcfs
text1.txt
text2.txt
text3.txt
text4.txt
cd /usr/fox/wp/fonts
rm usr_mkr.bdf
rm Lusr_mkr.bdf
rm hhusr_mkr.bdf
(If you make a backup copy of these files before deleting, they should be stored in another
directory, NOT /usr/fox/wp/fonts)
You must now tar in the custom fonts from diskette.
You may get by with just tarring in the *usr_mkr*.bdf files from the tape or floppy, but if the fonts are
not correct, you will need to continue.
Page 88
Go into your font_editor and load this custom file and save the font.
Go back to VT100.
cd /usr/fox/wp/fonts
/usr/fox/wp/bin/tools/font_expand L o Lusr_mkr.bdf sr_mkr.bdf
/usr/fox/wp/bin/tools/font_shrink h o hhusr_mkr.bdf usr_mkr.bdf
/usr/fox/wp/bin/tools/install_fonts
You must now restart the Display Manager.
command-file
log-file
data-file
disk-name
disk-type
partition-name
enable SCSI expert menu
silent
enable extended messages
enable extended and diagnostic messages
Format Floppy
(20 series)
format /dev/fh0
(50 series)
fdformat -e
( -e switch ejects the floppy when done formatting)
fdformat -d
( -d formats the floppy in DOS format)
(AP/AW51)
Page 89
900
Select option:
13
You will then be asked for a set number. Your data set will start with set 3.
Select option:
3
This will show you how many lists are open and will show their values.
Note: The 900 menu item was moved to foxspy after FoxAPI version 4.2.2. Enter foxspy instead of
foxtst.
Example:
foxspy
913
(will select option 900, then 13)
Page 90
51 Series Stations
an_init.cfg is located in /opt/fox/wp/FoxDraw.
The following is an example an_init.cfg that is configured for support of an AIM* AT Server and a
FoxDraw Server.
[AISnet]
; In this section you should change the APNT01 to your real
; machine name. Keep all parameters as they are. The only two parameters
; you might need is Printerr and tracelevel. These are used for debugging.
; Printerr takes 0 or 1 or 2
; tracelevel takes 0 or 1
; these two parameters will generate a file with .log extension to show
; the history of the connection and provide some debugging capability.
;
Printerr = 0
tracelevel = 0
Host=2AW001
MaxEnt=500
NrServer=100
Protocol=tcpip
Multiples=yes
MaxWriteObjects=100
no_timeout=0
maxlog=50
S_STATION=2AW001
S_USER=ntdemo
;
[TCPIP]
;
;The next line should have the name of the FoxAPI server. If you
; have several servers, add them on separate lines.
;
; The line will read like this
; SERVERNAME = 152.155.28.90 55555 /dev/tcp 1024
;
2AW001 = 153.128.17.1 55555 /dev/tcp 1024
2AW002 = 153.128.17.2 45678 /dev/tcp 1024
;
[AIMServer Connections]
;
; The next line should have the name of your FoxAPI server also.
;
;
2AW002 = 2AW002 TCPIP 1 0 1 1 / 1
; make sure you remove the comment mark (;)
;
[IAServer Connections]
2AW001 = 2AW001 TCPIP 1 0 1 1 / 1
The AW with the letterbug 2AW002 in the above example hosts the AIM* historian. FoxDraw is
connecting to 2AW001.
Page 91
cd /opt/fox/wp/FoxSelect
Remove the *.DAT and *.INI files (The next time FoxSelect is selected, these files will be rebuilt).
We will also periodically get .INI and .DAT files in the (/) root directory and these are simply
removed.
Foxview Files
/opt/fox/env
/opt/customer/env
*** In older versions of Foxview, the program looks to /opt/customer/env first then will use
default /opt/fox/env if no entry found. Can lead to customer editing
/opt/fox/env and never seeing the result.
Foxview Environment Passwords:
/usr/fox/wp/bin/tools/dmsepass Operator.env -p password
/usr/fox/wp/data/dmpasswd_cfg
Foxview Display Manager Files:
/usr/fox/wp/data/
init.user
wp51.cmds
wp51_glbls etc.
/usr/fox/customer/hi/dmcfg
Alarming:
/usr/fox/alarms
WPLNAMEAApan
WPLNAMEAAtab
horn.cfg
commgrp.cfg
Alarm Manager:
/usr/fox/customer/alarms/cfg/am_def.cfg (use DispAlarm cfg)
Control:
/opt/fox/ciocfg
/usr/fox/sp/files
/opt/fox/csa
Displays
/opt/menus/d1
/opt/fox/displib
workfile, etc.
checkpoint, comex bin, etc.
csa files
default
bitmaps, markers, faceplates, trends
Foxdraw:
/opt/fox/wp/FoxDraw
Page 92
FoxAPI:
/opt/fox/ais/bin/an_init.tcp (on UNIX and NT)
c:\winnt/an_init.cfg (on NT)
Page 93
Also on the report was a suggestion that WP0001 had error messages occur since the last reboot.
The error messages were as follows:
"Aug 2 13:30:11 WP0001 unix: ecpp_isr: interrupt not for us.dcsr=c0800010
Aug 2 13:30:11 WP0001 unix: WARNING: interrupt level 3 not serviced"
(According to CAR# 1003863, this is a nuisance message and should be disregarded.)
Usage on AP20:
/usr/fox/bin/tools/frev SYSMN1
Usage on AP50/51:
/opt/fox/bin/tools/frev SYSMN1
The scripts (diag_frev/diag_frev50/diag_frev51) will awk station names from hldb, fist the station to
find if it is on line, identify the station type using sta_type file. It will then output the system
information to standard output.
Note: Using the System Monitor Name as an argument (SYSMN1, for example) will limit the report
to just the stations contained within the indicated smon this may save time in a large
configuration if you are targeting few stations. This command can be used with no arguments.
Page 94
cd /opt
ftp MYAW01
Name/login: root
Password: password
Will get an ftp> prompt
bin (will change to binary mode)
fuser c /rem/r0
shows the process using remote mount /rem/r0.
Page 95
/dev/term
AW51F1# ls -l
Page 96
NOTE: You can NOT not add a Serial Expansion card to a 51F!!! (See B0400QM for details). If
you still try to do it you will get:
"Although physically allowed, one or more component attachments specified are not
supported by I/A. Those attachments will not be made"
On Configuration Components View, add new Peripheral: GCDEV (Graphics Controller) and
attach (drag) it to the 51F station
NOTE:
On AW51F by default GCIO is connected to "Serial Port 3" (the other option is Serial Port 4).
On WP51F by default GCIO is connected to "Serial Port 1" (no more options).
Add also any Modular Keyboards (M KBD) as needed.
It might look like this:
P000nn GCDEV
P000nn M KB
NOTE: Remember you can have up to 4 Modular keyboards for the same station. The first 2 are
"M KB Modular keyboard", while 3rd and 4th should be "MH KB Modular keyboard". The last 2
keyboards are to be connected to a 2nd GCIO.
/usr/fox/exten/sxlinkd -f $GCIO_DEVICE
where GCIO_DEVICE is:
/dev/cua/a000 (51F) or /dev/ttyb (51G)
- SysMgmt will show: GCIO in White
If not, check /usr/fox/sp/wp_dta, verify DIP swicthes on both GCIO and modular keyboard, etc
Page 97
NOTE: If you remove "local_printer" (or modify S99FOXBORO to ignore the presence of that file)
you might have both Serial printer (on port "1) AND GCIO (on port "0") working. This configuration is
NOT supported because Device Monitor doesn't know how to handle this situation.
========================================================================
=================
From B0400QM-A, v7.1 Release Notes, page 22:
1.2.12.1 Configuring a Model 51F Workstation with GCIO or Serial Printer
The Model 51F (Sun Blade 150) workstation has only one serial port, and would normally need a
multiport serial card installed and configured using System Definition in order to connect
annunciator keypanels, a touchscreen, or a directly connected serial printer. However, System
Definition does not allow the configuration of a multiport serial card on a Model 51F (Sun Blade 150)
workstation. Due to remnant configuration parameters in System Definition and software install, and
the fact that the multiport serial card drivers are built in the Model 51F at boot time, you can perform
the following workaround that negates the System Definition problem.
NOTE
This problem also exists for the Model 51G workstation. However, Model 51G workstations are
equipped with two serial ports, and do not need multiport serial cards to connect annunciator
keypanels, a touchscreen, or a directly connected serial printer. The software installation process
does not allow both a serial printer and a GCIO configured through System Definition on the same
machine.
To work around this issue, perform the following steps:
1. Do not configure a multiport expander card for the Model 51F workstation in System
Definition. Simply create the GCDEV or directly connected serial printer in System
Definition, and physically connect the GCIO or printer to Serial Port 1 on the
workstation, as is done for a Model 51B, C, D, or E workstation.
2. Install the multiport serial card in the Model 51F station per the instructions in the
workstation-specific document shipped with your processor. When software install
executes, it builds the serial port configuration parameters as it did previously on the
Model 51B, C, D, or E workstations, which have two serial ports.
3. Connect the GCIO or printer to the multiport serial card, using the first connector
(0) for GCIO, or the second connector (1) for a serial printer.
=======================================================
B0400QM Rev A
1. Read Me First
23
Preliminary
June 23, 2003
4. The multiport serial card drivers are created on bootup.
When the devices are connected properly, SMDH, Device Monitor, lpstat,
and System Monitor messages show the devices as operational.
Page 98
cd /opt/fox/ciocfg/ifdenv
ucsaq > z
(wait until you get prompt back) (it might take longer if you have a lot of CPs)
more z
4CP401 103X_TK
4CP401 103X_TK
4CP401 103X_TK
AVAIL_CALC CALC
BYPASS
IND
DEP_SEQ1
STRING
getpars [-options]
Example:
To determine which PIDA blocks have the LIMOPT option set to 1 and redirect to a file named
pida.list:
/opt/fox/bin/tools/pida.list
Specifies a blocktype filter. Only blocks of the type t specified will be examined.
-m
Specifies a block parameter and how this parameter should appear in the report.
For other options and uses, see the getpars man page.
The option "-n" is very useful to eliminate headers and put everything from a block on one line.
Reports created this way can be easily imported into Excel or similar spreadsheets. The data
comes directly from the control processors and gateways.
Please remember the limitations of this utility:
- Up to 20 parameters with one shot
- Can not get string parameters like: EO1, NM0, NM1, SCTXT0, SCTXT1, EU, etc
Page 99
The only exceptions to this rule are name and description: NAME and DESCRP
Read /opt/fox/bin/tools/getpars.man to get more details on the use of this utility.
The following four examples show how to use this command.
cd /opt/fox/bin/tools
getpars -U4CP401* -n -mCMPNM:%15s -mCP:%7s -mTYPE:%7s
mDESCRP:%32s
more z
Wed Jun 2 17:00:48 2004
BLOCK-NAME CMPNM
CP
TYPE DESCRP
STATION
4CP401_STA
4CP401 STA
PRIMARY_ECB 4CP401_ECB
4CP401 ECBP
U64001
4CP401_ECB
4CP401 ECB48R UCM_64 MAIN FBP
U64102
4CP401_ECB
4CP401 ECB45 UCM64 NEST_1 SLOT_2, 2-I/O
1b: To create a report for a group of CP's with similar names,
like: 4CP401, 4CP402, 4CP403, etc
cd /opt/fox/bin/tools
getpars -n -mCP:%7s -mCMPNM:%14s mTYPE:%7s -mINITMA:%ld
mFSENAB:%2d > z
more z
Wed Jun 2 17:30:16 2004
BLOCK-NAME CP
CMPNM
TYPE INITMA FSENAB
STATION
3CP101 3CP101_STA
STA
NA
NA
PRIMARY_ECB 3CP101 3CP101_ECB
ECBP
NA
NA
...
Control Processor 4OM201 not accessible.
Page 100
CMPNM
CP3_K1BLREF
CP
PERIOD
3CP101
LSCO1
0.000
HSCO1 DESCRP
350.000 A REFINER CASING
Example 4:
To determine which PIDA blocks have the LIMOPT option set to 1, type:
glof
The glof command <global find> can be used to find a variable, global or process that is active
anywhere on the system. The glof command will search the entire I/A network.
Use AP20:
/usr/fox/bin/tools/glof -p <process>
Use AP50/51:
/opt/fox/bin/tools/glof -p <process>
The bold numbers represent the mac address and the italicized number represent the NSAP.
6C in the mac address represents a single Foxboro module
00006CC0xxxx in the mac address would represent a FT Foxboro module.
02xxxxxxxx in the mac address represents a PW station.
08xxxxxxxx in the mac address represents a 50/51 station.
glof LPXX
(will find owner of the LPXX printer).
Usage 1 : glof
LBUG [LBUG...]
ALIAS [ALIAS...]
Usage 3 : glof -p PROCESS [PROCESS...]
Usage 4 : glof -v VARIABLE [VARIABLE...]
Usage 2 : glof -a
grep
Page 101
The grep command searches files for a pattern and prints all lines that contain that pattern. The
grep command can be found in /bin.
Usage:
grep DNI *
(look in all files in current directory for DNI)
head command
Syntax:
head n <file-list>
Displays the top of the files, by default the top 10 lines.
-n Top n lines
See tail to get the last 10 lines of the file.
cd /opt/fox/hstorian/bin
saveh50
Then, on AW0002, copy the contents of hist02.exp directory to a file for later recovery if needed:
dbinit50
rm -r hist12.exp
On AW0001, tar hist01.exp directory to a file to copy to AW0002:
cd /opt/fox/hstorian/bin
tar cvf hist01122393.tar /opt/fox/hstorian/bin/hist01.exp/*
Copy hist01122393.tar (tar file on hist01) to AW0002:
cd /opt/fox/hstorian/bin
tar xvf hist01122393.tar
(this will extract to a hist11.exp dir on AW0002)
mv hist01.exp hist02.exp
The next step is to change any instance of hist01 in the files to hist02.
cd hist02.exp
grep hist01 *
(there is a space between "01 and *")
Now "vi" the listed files to change hist01 instances to hist02. The files modified may include:
pnt_memb.unl, all_groups.unl, arch_cfg.unl, and unload50.sql. Use the following command in vi to
globally search for hist01 and replace with hist02:
:g/hist01/s//hist02/g
Do the above command in each file and save. Perform another grep for hist01 in that directory to
make sure that all instances of hist01 have been changed to hist02:
grep hist01 *
Once all instances of hist01 have been changed to hist02, a loadh50 may be performed.
Stop the historian and perform loadh50:
loadh50
Restart the historian.
cd /usr/fox/hstorian/bin
/usr/fox/bin/tools/dmpnam | pg
(get index number)
cd /u0/sam/hist11
Page 103
/usr/fox/bin/tools/samspy
q to quit lists
history
(To display last n commands):
history n
history 5
(will show the last 5 commands)
(Repeats previous command)
!!
! -3
(will re-execute the 3rd last command in history)
!n
(will re-execute the n number in history)
(-r reverses the order of printout to be the most recent first rather than the oldest first.
history r
(-h displays the history list without leading numbers)
history h
(Refer to the last command which began with character <char>
!<char>
!n
(would repeat the last command which began with an n)
If you have issued the find command in error:
^fint ^find
Page 104
hldb
File that is built during the software install phase and is located in /usr/fox/sp directory. Use this
file to:
List all stations on an I/A system and determine the type of the station.
more /usr/fox/sp/hldb
hopspy
Displays the contents of the OM open-point-list used by the Historian.
Usage:
cd /usr/fox/hstorian/bin
/usr/fox/bin/tools/hopspy
hostid
AIM* Historian:
cd /opt/aim/bin
histps
iaboot
Page 105
The iaboot utility is a 50 Series version of the AP20 reboot program. Use iaboot to reboot other
stations. Access iaboot from the UNIX shell.
Use:
Iaboot <station_letter_bug>
Warning:
The iaboot command used without arguments will reboot the local box.
cd /opt/fox/ciocfg/api/
save_all CP0001 /opt/julie/cp0001
(to save the CP0001 database to a directory previously created named /opt/Julie/cp0001)
iccprt Command
This script lets the user produce a report of all parameter names and values of all compounds and
blocks in a specified station or volume, Compounds within a station, and Blocks within a specified
compound.
Location:
/opt/fox/ciocfg/api
Usage:
-o
-m
-p
Page 106
iccprt p o z 3CP401
To save a list of parameters of block ZF925AI of Compound ZINC_FLASH to ASCII file z:
ifconfig
ifconfig
-a
-ad
-au
ifconfig a
apply commands to all interfaces in system gives status of ethernet ports.
ifconfig le1 up
enable 2nd ethernet port
Page 107
cd /usr/fox/wp/fonts
rm usr_mkr.bdf
rm Lusr_mkr.bdf
rm hhusr_mkr.bdf
(If you make a backup copy of these files before deleting, they should be stored in another
directory, NOT /usr/fox/wp/fonts). You must now tar in the custom fonts from diskette. Go into
your font_editor and load this custom file and save the font.
Go back to VT100.
cd /usr/fox/wp/fonts
/usr/fox/wp/bin/tools/font_expand L o Lusr_mkr.bdf usr_mkr.bdf
/usr/fox/wp/bin/tools/font_shrink h o hhusr_mkr.bdf usr_mkr.bdf
/usr/fox/wp/bin/tools/install_fonts
You must now restart the Display Manager.
Accumulator
Analog Input
Redundant Analog Input
Alarm Priority Change
Analog Output
Redundant Analog Output
Bias
Binary Input Block
Binary Input Block Redundant
Boolean Alarm
Boolean Variable
Binary Output Block
Calculator
Advanced Calculator
Characterizer
Contact Input
Contact Output
Dependent Sequence
Differential Gap
Distributed PID with Adaptive Control Algorithm
Display Station Interface
Dead Time Compensator
Equipment Control (See ECBEquip.Control Blocks section)
Event
Exception Sequence
Feedback Self-Tuner
Feedforward Self Tuner
General Device
Independent Sequence
Limiter
Lead Lag
Logic
Long Integer Variable
Multiple Analog Input
Page 108
MATH
Mathematics
MCIN
Multiple Contact Input
MCOUT Multiple Contact Output
MDACT
Motor Driven Actuator Controller
MEALM
Measurement Alarm
MON
Monitor
MOVLV Motor Operated Valve
MROUT Multiple Real Output
MSG
Message Generator
MTR
Motor Control
MVC
Multivariable Controller
MVL
Multivariable Loop
OUTSEL
Output Select
PACK
Packed Long Integer Variable
PAKIN
Packed Input
PAKOUT
Packed Output
PATALM
Pattern Alarm
PATT
Pattern
PID
Proportional Integral Derivative
PIDA
Additive PID
PIDE
PID with Exact
PIDX
PID Extended
PIDXE
PID Extended with Exact
PLB
Programmable Logic
PLCIO
Programmable Logic Controller In/Out
PLSOUT
Pulse Output
PTC
Proportional Time Controller
RAMP
Ramp
RATIO
Ratio
REAL
Real Variable
REALM
Real Alarm
RIN
Real Input
RINR
Real Input Redundant
ROUT
Real Output
SIGSEL
Signal Selector
STALM
State Alarm
STATE
State
STRIN
String Input
STRING
String Variable
SWCH
Switch
TIM
Timer
VLV
Valve
/opt/fox/ciocfg/ifdenv/ucsaq t ECB13|ECB22|ECB74|ECB18
Page 109
At v4.3 and v6.1 the IFD Configurator comes on a CD separate from the Install CD. To install on
v6.1, you must first exit any open IFDC or ITMW applications.
cd/
umount /cdrom
To install on v4.3 WP51 or AW51, you must first exit any open IFDC or ITMW applications.
cd /usr/fox/sp/lastinst
Backup the REVLVL and SYSLVL files.
Change the first line of the REVLVL file from 4.3 to 6.1.
Change the lines in the SYSLVL that say 6.1 to 4.3.
Insert the IFDC CD into the CDROM.
cd/
umount /cdrom
Copy the original REVLVL and SYSLVL files back into the recently edited versions.
Page 110
See sipc.
/opt/informix/bin/isql
Letterbug Pinouts
Page 111
6
4
2
0
7
5
3
1
LETTERBUG PINOUTS
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
A
6
4
2
0
G
6
4
2
0
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
-(HYPH)
6 7
4 5
2 3
0 1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
6
4
2
0
7
5
3
1
7
5
3
1
7
5
3
1
7
5
3
1
(NULL)
6 7
4 5
2 3
0 1
6
4
2
0
F
7
5
3
1
E
7
5
3
1
4
6
4
2
0
6
4
2
0
Y
6
4
2
0
7
5
3
1
D
7
5
3
1
S
6
4
2
0
6
4
2
0
M
6
4
2
0
C
7
5
3
1
7
5
3
1
7
5
3
1
Page 112
cd /usr/fox/sysmgm/sysmon
/usr/foxbin/strings destact.cfg
Once youve determined which stations receive these messages, you can find the messages for
that station using the device listed.
To capture system monitor messages to a file:
See System Monitor Messages Capturing to a File.
uname -n
Letterbugs - Generic
WP10
WP20
WP30
WP50
COMM10
G2BOOT
G3BOOT
G4BOOT
G5BOOT
CSBOOT
ln file 1 file 2
Is a hard link. The two files share a common inode number. This gives you two ways to address
the same file. It can only be used in the same file system.
To cross to other file systems, you must use the symbolic link that uses the s switch as in:
ln s file1 file2
Page 113
This creates a small file that creates a path to the name of the file in the other file system. When
you do the ls l command, you will see that the first character is the letter l. See the man page
for more information.
/bin/sh
exec > <filename> 2>1&
set x
loopback mounts
To create a loopback mount on a model 51 processor, use the following syntax:
lp Command
lp filename
lists files to default printer
lp dLP00
will use the alternate LP00 as the default printer for the lp command.
lp n
number of copies
lpc Command
Page 114
The main interface for user control is the lpc command. The lpc command will enter a command
shell when it is typed with no arguments and a Return. Use the lpc command to enable/disable,
get status, clean queues and start/stop printers.
lpc
h
(to get a listing of all commands)
lpstat Command
Usage:
lpstat [-d][-r][-R][-s][-t][-a[list]][-c[list]][-f[list][-l]]
[-o[list]][-p[list][-D][-l]][-S[list][-1]][-u[login-ID-list]][-v[list]]
-a
-d
-f
-o
-p
-r
-R
-s
-S
-t
-u
-v
-l
lpstat -t
(gives printer status)
ls command
Syntax:
ls [-ladrsixCR] [dir-list]
-l
-a
-d
-r
-s
-i
-x
-C
-R
Long listing
All files
Directory information
Reverse alphabetic
Size in blocks
I-node number
Columns across screen
Columns down screen
Recursively list contents of subdirectories
Page 115
few commands can make using the man pages easier. The MANPATH environment path needs to
be setup properly. If not , you will get the error:
man -f intro
catman -p | more
to see how many changes will be made. IF the SYSTEM is SHORT ON DISC SPACE AND YOU
ARE SHORT ON TIME, DO NOT ENTER the catman command. You can still use the man pages
without access to man -f, whatis, and apropos commands. If there is plenty of space (17 MB)
enter: catman
To pre-format only a few sections, enter: catman 1 2
To search all sections for string "regexp", enter: apropos regexp
Compare with a search for string "regex": apropos regex
To view commands of only one section, when a command exists in many
sections, enter the section number: man -s 5 regex
If you are using truss to follow the execution of a process, a system
call is listed per line. You can usually find the call in section 2. A
common command is "fcntl". Use: man fcntl
Page 116
Truss also shows errors returned to the executing program. These are
all listed in intro(2). Enter: man -s 2 intro
To read the index of all file formats documented in section four,
man man
MANUAL PAGES ON WP51
The man pages are not installed on the local disc of WP51s. There are
instructions to access the man pages on a connected AW. The
instructions are in the User Guide B0193ND title "System Administration
Guide for 50 Series Stations (Solaris 2.x)", section "Miscellaneous
Administrative Tasks", paragraph "man Pages". Either remote login or
remote mount are specified.
dmesg | more
Or
Mesh Constraints
Maximum of 1920 stations (1920 Legacy I/A Stations)
No more than 250 managed switches
No more than 30 system monitors
Page 117
Page 118
Move CSA to a MESH station if it is to host control stations, otherwise CSA main remain on the
legacy station.
Install the pre-v8.x compatability diskette on legacy stations to fix host files after the super commit.
(After commit is run through the stations, /usr/fox/bin/mkhosts.sh will need to be run to fix the
/etc/hosts file.)
Cutover Procedure:
Make sure that the time is set ahead by a few minutes on the MESH host. Connect to the P MESH
stations to the network.
One person is stationed at the ATS and another at the System Monitor.
Connect fiber connections to front of ATS.
Unplug the LAN module.
Install ATS as single module, boot up.
Attach the redundant connector to the backup ATS.
Connect fiber cables to the backup ATS.
Slide the backup ATS into the slot engaging both the cellbus and the Primary module.
Check System Monitor for good status on the ATS.
Go to next ATS/LAN and repeat.
(This plan is to be used only as a guide in creating your own plan. It may be helpful and used as a
reference).
Page 119
metastat Command
Displays current status for each metadevice (including stripes, concatenations, mirrors, etc.)
-h
-p
-s setname
-t
metadevice
hot_spare_pool
Example:
metastat d0
dft show_status
It takes approx. 10 min. to mirror a 535 MB Hard Drive and approx. 20 min. for a 1 GB Hard Drive.
Page 120
Nds_Maint.Type:
metadetach f (metamirror) (submirror that needs maint)
or
mkmact Command
Example:
/usr/foxbin/mkmact /usr/menus
Modem Commands
&v
View the active profile
at&v
View
atz
Exit and Save
Foxwatch Setup 9600, N81, COM1
Page 121
at&z1=/asecure
This unsecures the modem
at&v
Displays configuration
atz
CTRL-P
<STOP>A
n
b
b -s
n
b -r
>
b
ok
boot disk
boot tape
more Command
Usage:
Page 122
+linenumber
start up at linenumber
+/pattern start up 2 lines about pattern
mount /pcfs
To mount a DOS diskette on the 51:
mount /pcfs
(PC file system)
If you have problems with this command try using:
mkdir /cdrom
Edit the file /etc/exports by adding:
/cdrom ro
If there is no /etc/exports file, create it so that it will contain the line above.
Page 123
You must now export the cdrom directory. If you modified an existing /etc/exports rather than
creating one, export it by typing:
exportfs a
If you are creating /etc/exports for the first time, you must reboot the remote processor to export the
/cdrom directory, type:
sync
sync
reboot
Mount the cdrom on the remote processor by typing:
shareall
On the remote processor, mount the CD-ROM by typing:
ps ef | grep ufds
If ufds is not running, reboot before continuing.
Mount the CD-ROM by typing:
Page 124
Page 125
current Nodebus Test Initiator. A bad fiber link between a RCNI and a
switch on the station that is the current NFD Initiator can cause a
slowdown if stations think there is a problem with the cable that
doesn't have a bad link. Note: This type of fault would have to be a
fault that does not cause a link loss but does create bad or
intermittent communications on the cable with the bad link.
3. Verify that the station is configured for redundant communications
(nodebus) and not ethernet.
Check the CMX_STAND_ALONE parameter in the
/usr/fox/exten/config/loadable.cfg file. For redundant busses (Nodebus)
you should see the following values.
Solaris Stations CMX_STAND_ALONE = 0
NT and XP CMX_STAND_ALONE=DNBI_PRESENT
If these values are not correct then a reconfiguration and re-committal
will be necessary to properly configure the station.
TCP/IP Communications Work But Not I/A Communications (Comex)
1. Check that the splitter cable is connected to serial port "A". IP
doesn't need a certain cable to work but I/A won't work properly if it
can't switch cables and switch the "A" & "B" receivers on/off. If
the Splitter Cable is properly connected replace it. Verify that the
Ethernet cable connected between the Splitter cable and the RCNI is Rev
C or higher for P0971XK, XL, XM and XN. Refer to SI 0-00528 for kits
AG100WD, WE, WF & WG.
2. On XP stations verify that the Foxboro Protocol is only enabled
for the NIC port connected to the RCNI. The Foxboro Protocol should not
be enabled (checked) on the Mother Board port but only on the NIC used
for I/A which is usually Local Area Connection 2.
I/A Communications Work But Not TCP/IP
1. Check that the proper subnet mask is set. Sun stations default to
255.255.0.0 NT stations
255.255.254.0 and XP 255.255.228.0. It is best to set them all to
255.255.0.0. Also verify that the Network portion of the I/A port is
151.128.
Note a ping can work even if the netmask is not properly configured.
2. Verify that the Ethernet cable connected between the Splitter cable
and the RCNI is Rev C or higher for P0971XK, XL, XM and XN. Refer to SI
0-00528 for kits AG100WD, WE, WF & WG.
3. If the IP communications is going across a LAN to another node
verify that the IP addresses for the destination and source stations
are in the correct IP range for the NSAP of each node. Check the CSC
Web page under Resources -> Troubleshooting Guides -> Tokenbus/Nodebus
for a table of NSAP to IP ranges.
Intermittent Cable Failures Reported by NFD
NFD thrashing between V6.x stations and V7.x stations has the potential
to create cable problems. On V7.x nodes verify that NFD has been
Page 126
disabled on all V6.x stations. The one exception is the LAN, which
can't be disabled at V7.0 & V7.1. A workaround is to manually select a
V7.x station to be the NFD Test Initiator even if a V7.x is already the
Initiator. On V7.x hosts running NFD the utility nfd_debug can be used
to determine if there is NFD contention occurring between multiple NFD
Initiators. See below for more information on nfd_debug. To set a
station as the NFD Test Initiator go to NETWORK in System Management
pick NEXT LEVEL, if there are LANs pick the LAN for the Node which
hosts the station which is to be the Test Initiator, pick NEXT LEVEL
and select the station which is to be the Nodebus Test Initiator,
select ONLINE DIAG and when the window opens select CHANGE NODEBUS TEST
INITIATOR. When the operation is complete use the CURRENT NODEBUS TEST
INITIATOR pick to verify.
Non Unique Letterbug Messages After Station Reboot
When a Non Unique Letterbug messages shows up in the smon_log this is
usually caused by by a Network loop in the system which allows cross
communications between the "A" and "B" cables. Check for crossed
cables or a defective NCNI, RCNI. Check for crossed cables on segments
other than the segment on which station reporting the Non Unique
Letterbug that won't boot is located.
Duplicate Mac Address Messages
If a station reports on Duplicate Mac Address when booting up, check
for port mirroring being enabled on the switch to which the station is
attached. When the station broadcasts it's Mac Address if port
mirroring is enabled on the switch it may cause the station to hear
it's own broadcast making it appear that someone else owns that Mac
Address.
Both Cables Fail or Wrong Cable Fails NFD Test After Breaking One Cable
There are several items that can cause NFD to fail a test. Verify the
items in the Basic Network Checks listed above. Usually an incorrect
cable diagnosis is caused by crossed cables or a problem with the
serial cable on a station(s), preventing the station from switching
cables. Check the station that is the NFD Initiator. Try changing the
NFD Initiator, running cable test and see if the same results occur.
Workstation Won't Read Letterbug
Verify that the proper letterbug is installed correctly in the RCNI.
The letterbug must be installed before powering up the RCNI in order
for it to be read by the RCNI. Verify that the status leds on the RCNI
are with one off and the other on (green), on the upper right corner of
the RCNI. Verify splitter cable is connected to serial port "A" on the
workstation. Verify that splitter and Ethernet cables are connected and
working. Verify that the serial connection on the splitter cable is
connected to serial port A or Comm 1.
Workstation Won't Communicate Through RCNI to Other Stations.
Page 127
Page 128
ftp 138.90.221.2
bin
cd /usr/disp
(cd to dir location of files to extract)
mget *
(to get multiple files in the directory)
(or use)
get filename
(to get one particular file)
Start
Run
regedit
(change XP/NT registry entry of the following to yes)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Browser\Parameters\Maintain Server List
(exit regedit)
Right click My Computer
Manage
double click Services and Applications
double click Services
Page 129
OK
(restart the system/reboot)
After system reboots, go to My Network Places
Select Add Network Place (use the wizard)
Choose another network location will be highlighted
Select Next and for Internet or Network Address type:
\\WP5111\D$
(WP5111 is the computer name)
netstat
Netstat shows network status. It displays the contents of various network-related data structures in
various formats, depending on the options you select.
Type:
man netstat
(for more details and instructions)
One example of using the netstat command is as follows to capture errors on the hme0 port:
netstat I hme0 5
Solaris stations:
In /usr/fox/exten:
Edit foxboro.local and add a # sign in front of the line in which nfd_8023 is started.
Reboot the station.
If the station cannot be rebooted, edit the foxboro.local file as stated above and rename the nfd
process:
#cd /usr/fox/exten
#cp
nfd_8023 nfd_8023.bak
#rm nfd_8023
Kill the running nfd_8023 process
Page 130
Page 131
a station to communicate on. On stations directly connected to the Nodebus, including DNBT/BX/BI
connections, cable faults such as constant carrier or Excess Collisions will cause Comex to
change cable combinations in order to find a good bus. If the NODEBUS MASTER (NFD) is running
on a station with a direct connection then cable fault reports and cable test results can be missed
when Comex is changing cables. When a station is connected via an RCNI/NCNI combination it is
isolated from the collisions and constant carrier faults that station connected directly to the
nodebus see.
Does NFD run in a WP?
No, in order to have NFD a station must be configured as an AW.
Can I add switches to Nodebus without adding a V7.x AW?
When switches are added to a Nodebus a V7.x workstation is required in order to have an updated
version of NFD. The updated version of NFD will be able to detect and handle the type of faults that
can occur due to the multiple segments in the node created by adding switches. An exception to
this would be if there are V6.5.2 workstations on the node because they also have an updated
version of NFD.
nohup
The nohup command runs immune to quit signals and log outs. Both standard output and standard
errors are sent to nohup.out. (See also Background Running files in Background for more
examples).
Usage:
NSAP Addresses
NSAP of the Mesh
I000000
NSAP of Single Node System
I000001
NSAP of Multi-Node System
I000101
d:
ncenv
sh
Page 132
oma Utility
On AP20:
cd /usr/fox/bin/tools
oma
On AP50/51:
cd /opt/fox/bin/tools
oma
to add point:
a0 ffic_4401:input.pnt f
a1 ffic_4401:cntl.ma b
a2 ffic_4401:stnreq b
a3 ffic_4401:cntl.meas f
to change FFIC_4401 from manual to automatic:
s1=1
to set back to manual: s1=0
b
(enter) will get bulk values
g2
to get value of one item (line number 2)
to save sheet to file
w filename
to read/retrieve file
r filename
to set bscale to 32 on TI_4209:
s ti_4209:input.bscale=32
alias
-v
variable
Page 133
20 series (/usr/fox/bin/tools)
50 series (/opt/fox/bin/tools)
omset
Usage:
alias
boolean
float
-v
-c
-I
variable
character
int. system performance
AW51A
AW51B
AW51B1
AW51C
AW51D
AW51E
AW51E1 (51E rev C)
CLASSIC
SPARC 5
SPARC 4
SPARC 20
ULTRA 5
ULTRA 30
ULTRA 60
Optimize Displays
(20 series)
This utility used to reoptimize displays.
/usr/foxbin/pdfpack r /usr/disp
(50 series)
/usr/foxbin/pdfpack r /usr/disp
Packing the files removes the OM optimized data (OM list within the display file for quick OM
connections). Once the file is re-opened within the DM, the display file is re-optimized.
Page 134
Partition
Number
Partition
Device 51D,
51E
Partitio
n Name
Page 135
Solaris 2.5.
1 (50, 51A,
51B, 51C)
Solaris 2.5.
1
(51D1 and
51E)
Partition
AP/AW root
partition
/dev
/rmd
0d
/dev/rdsk/ /dev/rdsk
c0t3d0s3
/c0t0d3s3
AP/AW disk
mirroring
database
partition
(primary)
/dev
/rmd
0d
/dev/rdsk/ /dev/rdsk
c1t3d0s3
/c1t0d3s3
AP/AW disk
mirroring
database
partition (sha
dow)
AP/AW /var
partition
Page 136
e
/dev
/rmd
0f
/dev/md/r
dsk/d3
AP/AW /usr
partition
AP/AW /opt
partition
cd /usr/fox/wp/bin/tools
dmsepass Proc_Eng_Env p newpassword f
/usr/fox/wp/data/dmpasswd_cfg
This will change the password to newpassword and update the dmpasswd_cfg file with the new
password.
Page 137
Example:
Build a 1.03 GB drive for a AW51B which has an internal drive. Available system:
AW51A with an external 1.03 GB drive.
Boot the AW51A with the Boot CD and start the IA install for AW51B processor.
On completion, mount the root (/) partition of the drive.
cd /etc
cp path_to_inst.B path_to_inst
Backup the system (dmp0).
There have been instances where an AW/AP would not boot any stations that it hosts after a
commit. One way that weve been able to correct this is to use the following method. If youre on
an AW51A, then you would go to the /etc directory and copy the path_to_inst.A file to the
path_to_inst file.
Example:
cd /etc
cp path_to_inst.A path_to_inst
If you are on a B then copy the path_to_inst.B instead of path_to_inst.A. The same if youre on an
AW51C, copy the path_to_inst.C instead of path_to_instA.
Phase
Values
Not allowed
[0] default
[0,1]
[0,1,2,3]
[0-19]
[0-59]
[0-119
Period
Value
Length
7
10 min
8
60 min
9
0.2 sec
10
5.0 sec
11
0.6 sec
12
6.0 sec
13
0.05 sec*
Phase
Values
[0-1199]
[0-7199]
Not allowed
[0-9]
[0] default
[0-11]
Not allowed
* Available in CP40, CP40B and CP60 only, when permitted by the selected BPC.
Page 138
Each block uses this integral multiple, N, to set up a modulo N counter that counts BPCs and
triggers block execution every Nth BPC. In the example where N equals 4, the block's modulo
counter cycles through the counts 0-1-2-3-0-1-2-3-0-1-2-3-0-, triggering block execution every fourth
cycle. The block's Phase value determines whether block execution occurs at the 0 count, the 1
count, the 2 count, or the 3 count. A Phase value greater than three in this example exceeds the
maximum modulo count and the block will never be executed. Generally, the legal phase values
are the integers from 0 to N-1, where N equals the number of BPCs in the Period. Thus, a block
having a PERIOD/PHASE assignment of 3/1 executes every 2.0 seconds in the second BPC frame
of the two second period.
ping Command
The ping command is sometimes used to check the communication from one station to another via
Ethernet ports. For example, to see if communications have been established between AW5101
and WP5101 across the hme1 port, in a VT100 session on AW5101, type:
pg Command
Usage:
pg [-number][-p string][-cefnrs][+linenumber]
[+/pattern][filename]
-c
clear before displaying
-p
use string as prompt
-number size of window to use
-e
do not pause at end of each file
-r
restricted mode
-s
standard output mode
-f
no page splitting
-lines display indicated # lines
+linenumber
start up at linenumber -n
auto end of cmd -cmd ltr is ent.
+/pattern start at first line with pattern expression
pg filename
ls | pg
(view one page at a time)
pr Command
Page 139
Usage:
pr [[-columns][-width][-a]][-eck][-ick][-drtfp][+page][-nck][-ooffset][-llength][-sseparator][hheader]
[-F][filename]
+page
-columns
-a
-m
-d
-eck
-ick
-nck
-wwidth
-ooffset
-llength
-hheader
-p
-f
-r
-t
-sseparator
-F
pr filename
( list file in page form)
pr filename | more
(file appears on screen formatted into numbered pages with header
w/filename and date and time)
pr -2 filename | more
(print file in 2 column format)
pref Command
Usage:
Page 140
ls -l
Page 141
2) SYSTEM DEFINITION
Use SysDef (2.4.1) to add the new serial printer to the 51F. NOTE: Do not add a Serial
Expansion card to this box!!! (See B0400QM for details). On the Configuration Components View,
add a new Peripheral. SysDef allows you to choose only these printers:
P80BWS 80 Dot-Matrix,B&W,Ser
P132S 132 Dot-Matrix,B&W Ser
P136S 136 Dot-Matrix,Color Ser to 51F
Select "Serial Port 3" for 'Connection'. (Only other option is "Serial Port 4")
Select View, Parameter Definition
Enter LP01 for 51F "Port 1 Logical Name"
NOTE: Leave "Port 3 Logical Name" empty
Options, Utilities, Check Configuration
Options, Utilities, View Log Files
Ignore all these errors:
- WARNING: Port has logical name but no peripheral is connected (P1LN) OS6AW1->AW51F1
- WARNING: Printer connected to port with no logical name
(P3LN) OS6AW1->AW51F1
- ERROR: Port Logical Name not 4 characters long
(P3LN) OS6AW1->AW51F1
- ERROR: Station needs serial expansion board, but no one found: AW51F1
Create Committal diskette using v7.1 10091 diskette
3) SOFTWARE INSTALLATION
Pass Committal diskette using "Install_AW"
Check log files and reboot the box
4) INITIAL VERIFICATIONS
After reboot you should notice:
Page 142
cd /usr/fox/exten
chown root cs_alarm
chgrp sys cs_alarm
Reboot box again. After reboot you should see now:
- cs_alarm is running
- SysMgmt now shows: LP01 in White, but as a TERMinal
- cat /etc/printers > dev/term/a001 It should print correctly
- cat
- lp -dLP01
6) FINAL CORRECTIONS
Change how printer shows in SysMgmt from 'Terminal' to Printer:
LPTYPE = 4 (VT100 Wyse Terminal)
LPTYPE = 3 (80 Dot-Matrix,B/W,Ser)
LPTYPE = 5 (132 Dot-Matrix,B/W,Ser)
LPTYPE = 5 (136 Dot-Matrix,Color,Ser)
cd /usr/fox/sp/files
vi cs_cfg.pars
Change line: LPTYPE#4
To:
LPTYPE#5
After the change, that section should look like this:
cd /etc
vi printers
Tip: copy an existing line, paste it, and edit it. The line should look like these lines
LP01 0002 80 Dot-Matrix,B&W,Ser
LP01 0004 132 Dot-Matrix,B/W,Ser
LP01 0005 136 Dot-Matrix,Color,Ser
After copying the line and editing use the "set list" command to view invisible characters and verify
that all lines are the same length. Make sure all the columns and dollar signs line up.
:set list
Reboot box.
type
7) FINAL VERIFICATIONS
System Management should now show Serial Printer (LP01) as a printer with a CLASS NAME =
OKI132 (or similar, under EQUIPMENT INFO)
You should be able now to print by redirecting files to /dev/LP01
Printer Troubleshooting
The best printer troubleshooting guide in the world can be found at Angel Corberas web site located
at:
http://www.geocities.com/SiliconValley/Peaks/5825/ac.htm
I cannot put all of the information in here because it is a booklet by itself. Great job, Angel!!!
cd /etc/lp/interfaces
cp ps_interface ps_interface.org
Use a text editor to add the following lines in the ps_interface file after the line that reads:
internal_lpset ${cpi}${lpi}${width}${length}
Add these lines:
Page 144
####
# Set the lines/page to 66 lines
####
echo \033%-12345X@PJL DEFAULT FORMLINES=66
echo \033%-12345X
After saving the file, assign interface program to printer:
lpadmin p LPxx H
Where xx is the printer number.
Page 145
some unused value, like LP99, and change the PTNAME parameter of the dummy to /dev/ttyb.
Save and exit the edit, and reboot the processor.
Problem Action
Quick Fixes 991068 and 990273 are needed to resolve this issue.
The following list has the 2 Quick Fixes that are needed, and must be
installed in the same sequence.
991068B - cs_devmon, etc
990273B - cs_devmon, cs_alarm, etc
Revision B of 991068 (existing Quick Fix) must be installed first if it
has not already been installed on the system. Revision B of 990273 should be installed next. It
detects when the Foxboro Alarm queue is stalled, and causes the printer to go off line in Station
Management.. It also offers much more consistent print options than the original Quick Custom.
The changes will be released in version 6.3.
REPORT DATE : 3/03/2000
cd /usr/fox/wp/bin
echo /usr/fox/wp/bin/xwd2ps g.50 > printscreen.cmd
The value g.50 represents the gamma correction value. Gamma factor: 0.25 < gamma < 1:
1=normal, 0.25=brighter
Page 146
When the line termination character in an ASCII file is a <LF> instead of a <CR><LF>, output may
be skewed. That is, each line of the output begins in the column following the end of the proceeding
line.
lp dLPXX filename.txt
Printing from Model 50 stations
On 50 Series stations, this problem can be worked-around by instructing the printer to do a
<CR><LF> each time it sees only a <LF>. This can be done sending the printer an escape
sequence as follows:
echo \033&k2G>/dev/LPXX
Sending the HP1200C/PS printer a Postscsript file (i.e. Printscreen from a 50 series workstation)
clears the setting and requires it to be resent. However, the above command can be added to a
script, or the escape sequence can be added to the beginning of the ASCII file.
cd /etc/lp/interfaces
cp LPXX HP1200 (LPXX: logical name for the HP 1200C/PS)
Using a text editor find the following at or about line 709:
####
#Set the page size and print spacing, but not the character set.
#We will be doing the character set later (after the header).
####
internal-lpset ${cpi}${lpi}${width}${length}
Add the following lines after the above text:
if [-n ${FF}-ayes=${nofilebreak}]
then
echo ${CR}${FF}\c
fi
Add the following lines after the above text:
Page 147
/usr/lib/lpsched
enables scheduler
To change default printer:
lpstat -t
/usr/lib/lpshut
/usr/lib/lpadmin -dLP02
/usr/lib/lpsched
lp /etc/inittab
(This line to check to see if you get a printout at new LP02 (new default)
cd /usr/lib
lpshut
lpadmin -pLP02 -v/dev/LP02 -i/usr/fox/eq/scoki293
(scoki293 found in /usr/spool/lp/interface)
/usr/lib/lpsched
enable LP02
accept LP02
then check /etc/printers to see if LP02 is there, if not,
copy that file from other AP
Description
80 Dot-Matrix,B/W,Ser
80 Dot-Matrix,B/W,Ser
80 Dot-Matrix,B/W,Par
80 Dot-Matrix,Color,Ser
132 Dot-Matrix,B/W,Ser
132 Dot-Matrix,B/W,Ser
132 Dot-Matrix,B/W,Par
Page 148
0005
0004
0006
0006
0006
0010
0006
0010
0006
136 Dot-Matrix,Color,Ser
136 Dot-Matrix,Color,Par
Color Ink-Jet,Ser
Color Ink-Jet,Par
Deskjet Printer,Ser
Deskjet Printer,Par
PS Postscript Printer
PS Postscript Printer
PC PRINTER
Note: The description of a PostScript printer does not tell you if the interface is Serial or Parallel,
however the PORT TYPE is 0006 for Serial, and 0010 for Parallel. (Above information taken from
Angel Corberas Printer Guide)
PARALLEL DIRECT CONNECT PRINTERS CONNECTED TO 50 SERIES STATIONS ARE TO BE
CONFIGURED TO PORT 2.
mount /pcfs
cp PCAT00.print /pcfs
6.
7.
8.
9.
10.
probe-scsi
probe-scsi-all
On a 51D, you can use probe-ide since the 51D does not use SCSI drives.
probe-ide
prtconf
Page 149
This command prints system information. The output includes the total amount of memory, and the
configuration of system peripherals formatted as a device tree.
To find out the port for the second ethernet port, type:
prtconf | grep le
or
ps Command
Shows what processes are currently running with process ID numbers.
ps -el (AP20)
ps -eaf (AW51)
ps -aux (AW50)
Example :
ps avx
(shows cpu and memory usage on 50 series stations.)
-e
Display status info. about all active processes controlled by any
terminal
L
Long, complete status report with 14 columns
S
State of process
R
Running
S
Sleeping
W
Waiting
PID
Process ID of the process
PPID Process ID of the parent process
TTY
Number of the terminal that controls this process
TIME Number of seconds the process has been executing
CMD Command line the process was called with.
Another version of the ps command can be found in /usr/ucb and will provide information such as
%CPU, %MEM, PID and more.
psrinfo
psrinfo v
This command prints the time of the last station reboot, and the speed of the stations process(s),
in MHz. It is only available on Solaris (51-series) machines.
Note: This command can be used with no arguments.
pstat
Page 150
Usage:
pstat -s
-s
rcp hostname:path
rcp [-p] file1 file2
rcp [-pr] filenamedirectory
To copy /usr/disp from remote machine AP5101 to /tmp on local machine:
cd /tmp
rcp AP5101:/usr/disp/* `pwd`
To copy /usr/disp from local machine to /tmp on remote machine AP5101:
cd /usr/disp
rcp `pwd`/* AP5101:/tmp
redinfo
Page 151
Usage on 20 stations:
cd /usr/fox/hstorian/bin
/usr/fox/bin/tools/redinfo
Usage on 50 series:
cd /opt/fox/hstorian/bin
redinfo
remd/remv
The remv process is the operator interface (VT100) to remote administration SMDH from a WYSE
terminal and remd provides that dispatch interface to filter and determine all messages, counter
information, station information, and ECB information.
a)The remd/remv files can be located in:
On AP20:
/usr/rem/remv/remv
Use on AP50/51:
/opt/rem/remv/remv
Syntax:
remv [-d<domain name>[-s<station name>[-e<ECB name>[-[c][r][t]]]]
Page 152
-c
-r
Retrieve counters
Reset counters
-cr
-t
Example:
(TMHST)
(GCLBUG)
Example:
dmcmd script
dmcmd run /usr/fox/bin/rem_strt 5 AW0001 /usr/fox/bin/run_cio WP0001
The above sript would start up the Control Configurator on AW0001 and the Display results and user
interface on WP0001. Verify that /etc/fox/loghost contains the proper Logical Host Letterbug.
sum /usr/fox/bin/rem_strt
Remote Copy
See rcp.
At ok prompt:
boot cdrom
While booted on the cdrom, type:
restore_8MM
(if on an AP or AW)
or
wprestore_8MM
(if on a WP)
or if using the new backup and restore utilities
restore
cd /opt/tmp
ufsrestore ifvs /dev/rst9 3
Prompt changes to ufsrestore.
A ? at the ufsrestore prompt will provide help on interactive mode.
Display the contents of the directory structure on the dump volume.
ls
You can change directories within the dump volume.
cd PDEMO/HI/annunc
ls
add REA*
(This flags all files named REA* to be extracted from the directory /usr/PDEMO/HI/annunc. Marked
files will show an "* in front of them).
delete REA*
(This clears them from extraction. It does not actually delete the file)
add REA*
add .rhosts .wastebasket
extract
When it asks you to specify the next volume, specify 1. When asked to set owner/mode for .?
Specify y. Set modes anyway? Specify y.
Exit the interactive restore once the files are extracted.
quit
ls R /opt/tmp
Page 154
Note: The extraction of the REA* files caused the creation of the parent directories
(/PDEMO/HI/annunc) under the /opt/tmp (where we originally started). Now these files can be
moved or copied wherever they may be required. When the exact location of the files is known
and/or only a few files are required, the Direct mode below proves to be faster.
cd /
ufsrestore xfs /dev/rst9 1 ./etc/hosts
It will ask you to specify the next volume, type in 1. It will also ask if you want to change the
permission/mode and you will answer y. The last question asked is if you want to change these
permissions anyway and the answer is y.
Another example:
To restore the /usr/fox/sys/Change_Env directory off the tape, you must first change directories to
/usr.
cd /usr
ufsrestore xfs /dev/rst9 3 ./fox/sys/Change_Env
The partition numbers for APs/AWs are as follows:
/(root) = 1
/var = 2
/usr = 3
/opt = 4
The partition numbers for WPs are:
/(root) = 1
/usr = 2
/opt = 3
Page 155
cd /
/etc/restore xfs /dev/rst1 1 ./etc/hosts
It will ask you to specify the next volume, type in 1. It will also ask if you want to change the
permission/mode and you will answer y. The last question asked is if you want to change these
permissions anyway and the answer is y.
Another example:
To restore the /usr/fox/sys/Change_Env directory off the tape, you must first change directories to
/usr.
cd /usr
/etc/restore xfs /dev/rst1 3 ./fox/sys/Change_Env
The partition numbers are as follows:
/(root) = 1
/var = 2
/usr = 3
/opt = 4
The partition numbers for WPs are:
/(root) = 1
/usr = 2
/opt = 3
cd /
shutdown the AP/AW
Do fsck on / and /usr to check their consistency.
fsck y /dev/md/rdsk/d0
fsck y /dev/md/rdsk/d4
newfs /dev/rsd0e
fsck y /dev/rsd0e
mount o rw F ufs /dev/sd0e /mnt
Page 156
cd /
shutdown the AP/AW
Do fsck on / and /usr to check their consistency.
fsck y /dev/md/rdsk/d0
fsck y /dev/md/rdsk/d4
newfs /dev/md/rdsk/d5
fsck y /dev/md/rdsk/d5
mount o rw F ufs /dev/md/dsk/d5 /opt
cd /opt
ufsrestore xfs /dev/rst9 4
cd /
umount /dev/md/rdsk/d5
fsck y /dev/md/rdsk/d5
rexec
The rexec command allows the remote execution of a command from the current AP to an AP
specified in the argument list. On AP20 it is located in /usr/bin and on AP50/51 it is in /usr/local.
Dont rmount to do this.
Use:
rexec <ap_letterbug> command
Or
rexec <ap_letterbug> /bin/sh
Example:
rm Interactive
You can perform an interactive rm r by typing:
rm ri
This will ask you whether to remove each file in the directory. Answer y to the problem file and n
to everything else. Unfortunately, this command will walk through every subdirectory and does not
work with many versions of rm. You can do a chmod a-x to those directories temporarily to
make them unsearchable. The best thing to do is to use the rm command with extreme caution
and you wont have to worry about it.
Page 157
rmount
rmount APLBUG /rem/r0
(or)
route Command
51 series:
(HH950)
Page 158
To add the default router upon an AW/AP reboot you must initiate the route add" at boot up. If you
have only one hop you can add the IP address and router name to /etc/hosts and /etc/defaultrouter.
If you have more than two hops from the AW/AP to your client machine it is recommended you use
/etc/fox/user_apps.dat. Create /etc/fox/user_apps.dat if not created using your favorite editor. Add
the path for your executable:
vi /etc/fox/user_apps.dat
/etc/fox/go_addroute
Create /etc/fox/go_addroute:
:
route add default 199.184.138.1 1 {for one hop}
route add 199.184.138.1 199.184.138.6 2 {for two hops}
199.184.138.1 & 199.184.138.6 are the IP addresses for the additional routers. Ensure you perform
# netstat -f
(flushes the routing table)
rumount
Page 159
rumount APLBUG
csh
2. Change to the /opt/fox/hstorian/bin directory.
cd /opt/fox/hstorian/bin
3. Set the PATH variable
more mon_msg
cd /opt/fox/ais/bin
2. Run foxtst
foxtst
3. From the Main Menu, select the "625 -(Menu 6) Historian" option.
Enter the information requested, the example below will give you an
idea what type of information you need to type.
Note: To enter the old and end time, go to the following address to convert the regular time to UNIX
time: http://www.onlineconversion.com/unix_time.htm
cd /opt/fox/ais/bin
Page 160
3. Run apitst
apitst
4. From the Main Menu, select the "711 -(Menu 7) AIM*Historian"
option.
5. Enter the information requested, the example below will give you an idea what type of information
you need to type.
Bulk output to file? [ N]: y
Historian
[ hist01
]: hist01
Output File
[ msg.txt]: smon.txt
Start time {04/17/02_06:14:13}=[1019024053]
Date? 04/16/02
Time? 12:00:00
Start time {04/16/02_12:00:00}=[1018958400]
Accept Date & Time [Y]y
End time {04/17/02_08:15:14}=[1019031314]
Enter "Now" for the current time!
Date? now
End time {04/17/02_08:15:51}=[1019031351]
Accept Date & Time [Y]y
filter
[ *]: legacy:sysmommsg
ok to add?
[ ]: y
6. APITST will provide the number of system monitor messages captures.
Historian = hist01
Start Time = 04/16/02_12:00:00 (1018958400)
End Time = 04/17/02_08:15:51 (1019031351)
Filter
=*
Msg 1
legacy:sysmonmsg
04/16/02_15:28:34 to smon.txt
Msg 2
legacy:sysmonmsg
04/16/02_15:28:53 to smon.txt
2 messages printed into the smon.txt file. Note:
The smon.txt file can be create in the /opt/aim/bin or /opt/aim/inst/histname directory. Where
histname is the name of the instance
7. Do more on the smon.txt file.
more smon.txt
cd /opt/aim/bin
2. Run fh_sacego to get the system monitor messages.
more msg_mon.out
Page 161
1. On NT, open a Command Prompt window and change to korn shell (d:, ncenv and sh).
UNIX, open a VT100 window.
2. Change to the /opt/fox directory:
On
cd /opt/fox
3. If the sysmgm directory doesn't exist then create it.
mkdir sysmgm
4. Change to the sysmgm directory.
cd sysmgm
5. Make a sysmon directory and change it to there.
mkdir sysmom
cd sysmon
6. In the /opt/fox/sysmgm/sysmon directory, create a file and name it smon_log.
touch smon_log
7. To verify that smon_log is capturing the system messages, perform a checkpoint on the CP
Database.
This can be done from SMDH or ICC.
8. Do more on the /opt/fox/sysmgm/sysmon/smon_log file.
cd /opt/fox/sysmgm
more smon_log
9. Periodicly check the size of the smon_log file because it may grow very fast and can take some
space in the /opt partition.
samspy
Legacy Historian:
Used to display the contents of the extended sample files which are located on the extended drive
/u0.
Usage on AP20:
/usr/fox/bin/tools/samspy
or for 50 series:
/opt/fox/hstorian/bin/samspy
See Historian for details.
save_all Command
For a detailed description of the save_all command, go to the section titled Utilities: Upload,
Shrink, Checkpoint, Save_all.
cd /opt/fox/hstorian/bin
Page 162
saveh50
When the saveh50 is saved to the hard drive instead of floppy or tape, a directory
/opt/fox/hstorian/bin/hist01.exp is created and can be compressed and saved to tape.
To Check saveh50 for errors:
SELCPSRH=*
As of v4.3 and v6.1 the file to use is wp51_glbls.all instead of wp51_glbls which gets written over at
time of reboot.
cd /usr/fox/ciocfg or /opt/fox/ciocfg
cd COMPOUND1
(where COMPOUND1 is the name of the sequence compound name)
You can use vi to edit this file or it can be edited offline.
When you want to get a good printout of sequence code to work with, you can print one with line
numbers using the following command:
setacl Command
dmcmd setacl 20 + + - + - - This display manager command says to give me access level 20, 21, not 22, give 23, not 24, 25, or
26.
Page 164
Shell On 50 Series
C Shell AP50/Wyse default
/bin/sh
Switches you to the Bourne shell
Bourne Shell AW/WP/VT100 default
csh
Switches you to the C shell
show_params
Used to display the current usage levels of each of the configurable operating system parameters.
(Currently configured maximum value, Quantity of that parameter free/available, and Quantity in
use).
/usr/local/show_params
showrev
with a Displays all revision information for the current system.
showrev a
with p Displays all revision information on all patches applied to the current system.
showrev p
Shrink Command
For a detailed description of the SHRINK command, go to the section titled Utilities: Upload,
Shrink, Checkpoint, Save_all.
cd /
/etc/shutdown
continue? Y
Page 165
telinit 2
CONDITIONING
NO CONDITIONING
0-64000 RAW COUNTS LINEAR
(0-10VDC) 1600-64000 RAW COUNTS LINEAR
(4-20MA) 12800-64000 RAW COUNTS LINEAR
0-64000 RAW COUNTS SQ. RT.
12800-64000 RAW COUNTS SQ. RT.
LOW CUTOFF 0-64000 RAW COUNTS SQ. RT.
LOW CUTOFF 12800-64000 RAW COUNTS SQ. RT.
PULSE RATE
LOW CUTOFF 1600-64000 RAW COUNTS LINEAR
LOW CUTOFF 12800-64000 RAW COUNTS LINEAR
TYPE B THERMOCOUPLE
TYPE E THERMOCOUPLE
TYPE E THERMOCOUPLE EA-2
TYPE J THERMOCOUPLE
TYPE K THERMOCOUPLE
TYPE N THERMOCOUPLE
TYPE R THERMOCOUPLE
TYPE S THERMOCOUPLE
Page 166
28
40
41
42
43
44
TYPE T THERMOCOUPLE
COPPER RTD
NICKEL RTD
PLATINUM RTD (DIN)
PLATINUM RTD (EIC)
PLATINUM RTD (SAMA)
PARAMETER: SCO
ANALOG OUTPUT SIGNAL CONDITIONING:
1
2
3
sipc
This utility transfers control to a command environment in which you can view the IPC software
database in the 50 series station or AP20/PW where sipc is executing. Access sipc from the shell
level and from the /opt/fox/bin/tools (50 series) or /usr/fox/bin/tools (20 series/PW).
cd /opt/fox/bin/tools
sipc
Example:
If one of the om_server entries in the dt (data transfer) table has a cmxid of 043A, then messages
being sent to this om_server connection can be identified in foxwatch messages with the first two
protocol id fields having a value of 4 and 58.
dt scan_task
(gives scanner connections)
CP10 max= 12
CP30 max= 30
CP40 max= 30
dt om_server
(gives server connections)
CP10 max= 12
CP30 max= 20
CP40 max= 20
sldb
File that is built during the software install. File is in /usr/fox/sp directory and can be used to find a
letterbug, determine a stations host AP, and determine which System Monitor monitors a station.
more /usr/fox/sp/sldb
or
Page 167
snapshot
The snapshot command is a procedure for saving graphics from Fox I/A Sun workstations
(AW/WP51s) to Windows compatible format such as .jpg or .gif.
From VT100, type:
cd /usr/openwin/bin
snapshot
This will start the snapshot application in an X-window on your screen. To capture or snap a
window on the screen click on Snap Type: Window. If the snapshot window overlaps the window
that you want to capture, click a checkmark by the : Hide Window During Capoture box. Then
click the snap button on the window. It will print a prompt at the bottom of the snapshot window
that says: SELECT Select Window, ADJUST or MENU Cancel. At this time, left click on the
window you want to capture. If you have Hide Window checkmarked the window will disappear and
you will hear beeping until the capture is complete. Shortly after the capture is complete the
snapshot application window will re-appear on the screen and you can pick the View button to start
Imagetool and vi ew what you have captured. The graphic will be displayed. If the area comes in all
Black you need to simultaneously hold down the Control and Again keys found on the keyboard to
make the graphic display correctly.
You are then ready to save the graphic to the desired format by clicking the File button on the
Imagetool window, and then selecting Save_As from the pulldown menu. From here you can select
the location to save the file and the file type. It is good practice to put a .gif after the name if you
are saving in GIF format, a .tif if saving as TIFF, etc. This will identify the file type correctly when
you FTP the file from the AW or WP to your PC.
CAUTION: The default selection will be Sun Raster and to select any other format you must first
click on Sun Raster and then click on the format you desire. If you dont follow this procedure Sun
Raster will continue to stay selected.
snoop
The snoop will capture network packets and displays their contents.
Usage:
Example:
snoop -i /usr/tmp/snoopinfo
Page 168
som/rsom
som is a Foxboro utility that can be used to monitor the utilization of the I/A Object Manager
subsystem. Use som to view the object manager functions on a station.
Usage:
/usr/fox/bin/tools/som
Note: Use rsom h to get help. Use cp10 for Modicon, comm10 and comm15.
Type rsom -u to be able to enter the target station on which you want to view the OM lists. The
station does not have to be hosted by the AP.
The opdb command displays the remote stations in which the selected station is the source of data
and the number of points requested. (m opdb = more opdb)
The command opvr is used to display the points contained in an opdb entry.
The command conn and sconn while using som allows you to examine IPC connections. The conn
command displays the number of SINK connections.
Other commands used are as follows:
ADR
CONN
DBID
ID
IMP
LIST
NADR
OBJ
OPDB
OPNL
OPVR
PQTBL
SCAN
SCONN
open id
open id
open id
object name
open id
<start row>
Disp OM AddrTable
Disp OM Conn.Table
Disp opn pts db hdr
Disp omopen tbl hdr
Disp import table
Disp object dir
Disp ID's netadrtbl
Disp obj val rec
Disp opn pts db
Disp omopen tbl
Disp opdb open vars
Disp OM Process Queue Table
Disp scanner db
Disp OM Scanner Conn.Table
CP30
CP0001
opdb
f
opvr 0
f
conn
f
sconn
f
Page 169
q
Execute som/rsom from the command prompt using the following syntax:
vi cp_som_out
/opt/fox/bin/tools/rsom icp1_info tcp1_out > /dev/null
(Should be the only line put in this file.)
Add cp_som_out to crontab and test.
sort
Usage:
Example:
sort +1 -2 input-file
(Sort contents of input-file with the second field as the sort key)
spell command
Syntax:
man spell
Page 170
cd /tmp
mkdir mydir
cd mydir
tar xvf /dev/xxx
where xxx = fd0 for 50 series and xxx = fh0 for 20 series
Station Resources CP
CP10
CP30
CP30B
CP40
intro:
4.2.4, 6.1
RESOURCE
CP40B
CP60
intro:
4.2.4,
6.1
intro:
6.2
4000 ***
300
1000
2000
4000 ***
150
300
3200
120*
240*
2400*
??
n/a
n/a
?? *
??
2500
****
3400
Page 171
FBMs:
without FBI/with
FBI
ECBs
Minimum BPC
24 / 48
48
100
msec
Largest Sequence
10K total
Block (HLBL code)
(8.1K
/opt/fox/ciocfg/{cm
code)
pd}/{blk}.i
IPC Connections
17
(incl. 1 for ICC) (1)
Max OM Server
IPC Connections
12
(Sink) (2)
Max OM Scanner
IPC Connections
12
(Src)(3)
OM Get's/Set's per
Second (i.e.
1
Broadcasts)
Total OM Sink
50
Lists
Total
Recommended
??
OM Lists (4)
Total Points in
Scanner Database
(Rows x Points per
50x20
row). From this
= 1000
database the OM
source tables are
open. (5)
Connectionless
50
IPC Queue Size
Number of RUCBs
Connectionless
Receive's
30 ???
(Receive Unit
Control Blocks)
24 / 64
64 parent / 120 total
100 msec
<4.2,
10K total
(8.1K code)
4.2,
32K total
24 / 64
64 parent / 120
total
50 msec
<4.2,
10K total
(8.1K code)
4.2,
32K total
120 /
??
50 msec
32K total
51 **
51 **
51 **
20
20
20
30
30
30
50
50
50
60
360
360
150x20
= 3000
600x20
= 12000
600x20
= 12000
150
150
??
60
60
??
Page 172
Number of TUCBs
Connectionless
Transmit's
(Transmit Unit
Control Blocks)
Max Checkpoint
File Size
Total Station Free
Memory
Minimum Dynamic
Free Memory
30 ???
60
60
??
150,000
650,000
1,300,000
2,600,000
225,000 1,000,000
2,200,000
4,200,000
>30,000 >250,000
>300,000
>600,000
*
Note that several factors such as alarming and network traffic contribute significantly to loading
for CPs running at 0.1 sec or faster.
** Use of all 51 IPC connections is not feasible for 0.5 second BPC.
(1) rsom tools: conn + sconn
(2) rsom tool: conn
(3) rsom tool: sconn
(4) rsom tool: opdb. Local = Sink, Remote = Source.
(5) Theres no specification for the maximum memory segment. Anyway the following is the
calculation you have to use to understand the limitations of the station resources (in bytes):
From this calculation you can arrive to the conclusion that a list of 255 points consumes aprox 16K
of memory.
AB Int
Micro I/A
30
8 MB,
75 MHz,
>= 6.2
RESOURCE
300
300
4000
300
150
3100
Page 173
BPC = 0.1
second
BPC = 0.05
second
FBMs:
without FBI/with FBI
ECBs
64
100
msec
Minimum BPC
<4.2,
Largest Sequence 10K total
Block (HLBL code) (8.1K
/opt/fox/ciocfg/{cm
code)
pd}/{blk}.i
4.2,
32K total
IPC Connections
51 **
(incl. 1 for ICC) (1)
Max OM Server
IPC Connections
20
(Sink) (2)
Max OM Scanner
IPC Connections
30
(Src)(3)
OM Get's/Set's per
Second (i.e.
1
Broadcasts)
Total OM Sink
50
Lists
Total
Recommended
60
OM Lists (4)
Total Points in
Scanner Database
(Rows x Points per
150x20
row). From this
= 3000
database the OM
source tables are
open. (5)
Connectionless
150
IPC Queue Size
Number of RUCBs
Connectionless
60
Receive's
(Receive Unit
<4.2,
10K total
(8.1K
32K total
code)
4.2,
32K total
51 **
51 **
20
20
30
30
50
50
60
60
150x20 600x20
= 3000 = 12000
150
60
Page 174
Control Blocks)
Number of TUCBs
Connectionless
Transmit's
60
60
(Transmit Unit
Control Blocks)
Max Checkpoint
650,000 650,000
File Size
Total Station Free
1,000,00 2,140,00
1,000,000
Memory
0
0
Minimum Dynamic
>250,00
>250,000
Free Memory
0
Maximum segment
(6)
Total memory
available for block 512,000 512,000
database
Max number of
Analog registers
per
128
64
ABSCAN/MDSCA
N
Max number of
Digital registers
per
2048
1024
ABSCAN/MDSCA
N
Maximum number
of
64
64
MDSCAN/ABSCA
N
Maximum bytes/BPC @9600
128
baud (Gateway)
Maximum bytes/BPC
@19200 baud (Int 30)
350
*
Note that several factors such as alarming and network traffic contribute significantly to loading
for CPs running at 0.1 sec or faster.
** Use of all 51 IPC connections is not feasible for 0.5 second BPC.
(1) rsom tools: conn + sconn
Page 175
Station Blocks
LODSW makes display update when LODSW=white
Total CP average plus Cont. Block averages plus I/O load = Total CP Loading.
Overruns will be updated but not at the specified time.
170k of memory in CP10 - need to keep 30% free.
360k of memory in CP30 - need to keep 30% free.
There are 16 maximum peer to peer connections.
1/2 sec. BPCs are shown in station block (amount loading per 1/2 sec. BPC)
LODSW - ON
LODSYN-ON
LODPHS OFF
LODPER-
LODPHS
Page 176
Also Note: If an FBM07 is used for the status tap connections, then only one point of each pair
point (i.e. pts 1 and 2 are paired by grounds. Pts 3 and 4 are paired by their grounds, etc .) c an be
connected or both points will track each other.
Therefore:
Voltage High is Logical Low and no alarm
Voltage Low is Logical High and in alarm
Contact between status tap pt A and Comm is open for normal no alarm
Contact between status tap pt A and Comm is closed for problem in alarm.
If using a meter to measure the contact you must put the Positive lead on A and the negative lead
on Comm.
sum
This command calculates and prints a 16-bit checksum for the named file, and also prints the
number of 512 byte blocks in the file.
Use on AP20:
/bin/sum <filename>
Use on AP50/51:
sum </full/path/filename>
swap
swap -s
Above to get a summary of swap space usage.
swap l
Shows partition swap space and file swap space.
To add swap space to a 51:
vi /etc/fstab
(add to file on last line)
You must be certain to add the following line with the correct spaces, tabs, etc. or your machine
may not boot.
swi_pars.cfg file
Page 177
The file /usr/fox/exten/config/swi_pars.cfg gives information such as PSAP, STA_LBUG, LOG MAC
ADDRESS, etc.
ping 10.1.0.1
This should get a response that the switch is alive. If you do not get the "alive" response then the
switch has another IP address. If the switch has the Foxboro recommended address, you can try
an Invensys address in the AW/WP (eg. 151.128.79.12) but if this address does not connect to the
switch, then you need to use the serial port on the switch.
If the above "ping" was successful, then telnet to the switch
telnet 10.1.0.1
Page 178
Switch Power Up
When the switch first receives power, it will not communicate to connected devices for about 1
minute, 30 seconds. Wait this amount of time before expecting an "alive" response from your ping
command.
8 data bits
1 stop bit
No parity
19,200 baud rate
No flow control
Page 179
Name the connection "Switch" and select COM2 for the connection.
Select the Properties as specified above and pick OK. In the terminal
window, hit the ENTER key. The switch should prompt you for the User Name (admin) and
Password.
Configure the switch parameters as specified above in Telnet and Serial
Configuration.
Page 180
AW and WP Connection
Once the switch has the correct IP address and WP's or AW's are
connected to it, you may use the Foxboro station to configure or change
the switch settings.
51 Series
Call a VT100 terminal.
csh
Page 181
cd /usr/openwin/bin
setenv DISPLAY=0:0
xterm &
Go to the xterm window and telnet to the switch using its IP address.
70 Series
Start --> Run (insert the command cmd) which will open a cmd prompt
window.
configure terminal
(This enters configuration mode)
interface range fastethernet0/1 24 (Configures all
Switch(config)#
ports)
Switch(config-if)#
duplex full
Page 182
Switch(config-if)#
speed 100
Switch(config-if)# end
(This has set up all ports to
full duplex)
Always configure the vlan1 on all switches, must be same vlan to talk
together.
Switch(config)# interface vlan1 (Setting up switch IP address)
Switch(config-if)#
and masking)
no shut
Switch(configif)# end
Switch(config-if)#
end
Switch# show interfaces fastethernet0/3 (Shows port 3 setup)
Switch(config)#
Interface FastEthernet0/3
Switchport mode dynamic desirable
Duplex full
Switch#
end
Each switch needs to have a unique identifier from the range 151.128.79.1 thru 151.128.80.192
Switch Power Up
When the switch first receives power, it will not communicate to connected devices for about 1
minute.
AW and WP Connection
Once the switch has the correct IP address and WP's or AW's are connected to it the switch will
communicate across node.
Check Running Switch Status
This is with an IP address and the first two ports in use.
enable
Switch# show ip int brief
Switch>
Interface
Protocol
Vlan1
FastEthernet0/1
FastEthernet0/2
FastEthernet0/3
FastEthernet0/4
FastEthernet0/5
FastEthernet0/6
FastEthernet0/7
FastEthernet0/8
FastEthernet0/9
FastEthernet0/10
IP-Address
OK?
Method
Status
151.128.80.100
unassigned
unassigned YES
unassigned YES
unassigned YES
unassigned YES
unassigned YES
unassigned YES
unassigned YES
unassigned YES
unassigned YES
YES
YES
unset
unset
unset
unset
unset
unset
unset
unset
unset
NVRAM
unset
up
up
up
down
down
down
down
down
down
down
down
up
up
up
up
up
up
up
up
up
up
up
Page 183
FastEthernet0/11
FastEthernet0/12
FastEthernet0/13
FastEthernet0/14
FastEthernet0/15
FastEthernet0/16
FastEthernet0/17
FastEthernet0/18
FastEthernet0/19
FastEthernet0/20
FastEthernet0/21
FastEthernet0/22
FastEthernet0/23
FastEthernet0/24
Switch# end
Switch>
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
unset
unset
unset
unset
unset
unset
unset
unset
unset
unset
unset
unset
unset
unset
up
up
up
up
up
up
up
up
up
up
up
up
up
up
down
down
down
down
down
down
down
down
down
down
down
down
down
down
General
The 8-port managed switch is connected into the IA system per B0400DV
but before it will communicate to an Invensys computer (AW or WP), the
switch must be configured.
If the switch current address is known (default from manufacturer is
10.1.0.1) then the AW or WP ethernet port can be used to configure the
switch. If the address is not known, then the switch must be programmed
via its serial port. See the manufacturer's Management Guide.
Identification
Invensys Part Number: P0972MF
Enterasys Part Number: VH-8TX1MF
Enterasys WEB site:
http://www.enterasys.com/support/mibs
After configuration, you should mark each switch with its IP address and
the letter A or B, as applicable, to aid in trouble shooting the
network.
Wiring for Configuration
Connect one of the AW or WP's ethernet ports directly into the switch
(any port) with one of the copper cables. Do not use the RCNI or the
media converter. Once configuration is complete, re-connect per
B0400DV.
AW70 or WP70 Setup
Page 184
Configure the AW or WP ethernet port that you have used above, with an
IP address that will allow it to talk to the switch. If the switch IP
address is the default address, then set the AW or WP address:
AW/WP port address
10.1.0.2
AW/WP subnet mask 255.255.0.0
Start --> Settings --> Network Connections -> double click on your
network connection
Properties --> TCP/IP (select in blue) -- > Properties
Select OK to get out of all the selections.
(Note that you will have to re-set the 70 Series IP subnet mask to
255.255.0.0 after each committed software installation.)
Start --> Run (insert the command cmd ) which will open a cmd
prompt window.
ping 10.1.0.1
This should get a response that the switch is alive. If you do not get
the "alive" response then the switch has another IP address. If the
switch has the Foxboro recommended address, you can try an Invensys
address in the AW/WP (eg. 151.128.79.12) but if this address does not
connect to the switch, then you need to use the serial port on the
switch.
If the above "ping" was successful, then telnet to the switch
telnet 10.1.0.1
Telnet and Serial Configuration
Default User = admin
Password = none (Just hit Enter)
(Note that you should give the switch a password. If none is assigned,
you should use the default Invensys password.)
Use the arrow keys to select "Device Control Menu"
Use the arrow keys to select "Port Configuration"
Ensure that each port is set for:
Duplex Mode = Autonegotiate
Flow Control = Disable
Use the arrow keys to select "Management Setup Menu"
Use the arrow keys to select "Console Login Configuration" set the
password for all users
Use the arrow keys to select "Network Configuration"
Use the arrow keys to select "IP Configuration"
Enter your switch IP
switch)
Page 185
If you use telnet, the switch will immediately lose communication since
it has a network IP that is different from your network IP. Reconnect
the switch per B0400DV and ping the switch. The switch must give the
"alive" response. Ensure the IA port subnet mask is set to
255.255.0.0. The RCNI will determine whether Cable A or Cable B is
talking.
Note that the switch for Cable A must have a different IP address from
the Cable B switch.
Switch Power Up
When the switch first receives power, it will not communicate to
connected devices for about 1 minute, 30 seconds. Wait this amount of
time before expecting an "alive" response from your ping command.
Serial Communication Setup
Obtain the serial communications cable (9 pin female both ends) that is
shipped with the switch and connect to the back of the switch and the 70
Series COM2.
Serial Port Settings:
A)
B)
C)
D)
E)
8 data bits
1 stop bit
No parity
19,200 baud rate
No flow control
Page 186
cd /opt/rem/remd
nohup remd &
run remv in batch mode
cd /opt/rem/remv
remv d@ -s@ -cr > /opt/tmp/file1
(the r in cr resets the counters after sending counter information to file1)
This command can be run interactively. You should wait for one hour to get counter information
after resetting because the thresholds for these counters are based on one hour of data.
To get data without resetting counters:
cd /opt/fox/bin/remote
diag_cpload51 > /opt/tmp/file1
FOR SYSTEM MANAGEMENT COUNTER DETAILED INFORMATION, SEE COUNTERS.
To capture all system monitor messages to a file, You can create a smon_log file which will capture
date and time of all the sysmgm activities. It works in I/A v6.2 or later. However, it will capture the
data from the time the smon_log file was created
Here is the procedure:
CREATING A "smon_log" FILE,
1. On NT, open a Command Prompt window and change to korn shell (d:, ncenv and sh). On UNIX,
open a VT100 window.
2. Change to the /opt/fox
cd /opt/fox
3. If the sysmgm directory doesn't exist then create it.
mkdir sysmgm
4. Change to the sysmgm directory.
cd sysmgm
5. Make a sysmon directory and change it to there.
mkdir sysmon
cd sysmon
6. In the /opt/fox/sysmgm/sysmon directory, create a file and name it smon_log.
touch smon_log
7. To verify that smon_log is capturing the system messages, perform a checkpoint
CP Database. This can be done from SMDH or ICC.
8. Do more on the /opt/fox/sysmgm/sysmon/smon_log file.
cd /opt/fox/sysmgm
more smon_log
2002-04-29 14:09:59 CP3001 Software Manager SYSMON -00021 Checkpoint Success.
A CP Reboot will show:
2002-04-29 14:09:59 CP3001 Software Manager SYSMON -00021 Power up rebooted OK.
9. Periodicly check the size of the smon_log file because it may grow very fast and can take some
space in the /opt partition.
Page 188
cd /usr/fox/sysmgm/sysmon
bpatch destact.cfg
Check this file to see that it is actually configured as a System Monitor WP. If it is not, you may
have your field service representative to bpatch the file by making a copy of the original first to make
the necessary change adding the AW/WP as a SMGC station.
The final step is to stop and restart the system monitor.
tail command
Syntax:
Page 189
tar tvf a:
copy diskette:
tar cvf a:
extract:
tar xvf a:
Page 190
telnet - 50 series
telnet communicates with another host using the TELNET protocol. If telnet is invoked without
arguments, it enters command mode, indicated by its prompt telnet>. In this mode, it accepts
and executes its associated commands. If it is invoked with arguments, it performs an open
command with those arguments.
Type man telnet more more detailed instructions.
Example: To run a VT100 type session on an AW51 thats on my network, (connected through the
AWs second ethernet port) whose name is MYAW01, type:
telnet MYAW01
login: root
password: password
touch Command
Usage:
The touch command will change the date and time of creation of a file to the current date and time.
To create a temporary file to find all files newer than.
touch filename.new
This will create a file named filename.new and set the timestamp for the current date and time.
Troubleshooting scripts
One way to troubleshoot a script file to see what its actually doing:
sh x scriptname
This will show you the commands being executed and results of these processes.
Page 191
Verify that the Ethernet cable from the splitter combiner to the
RCNI is good. Verify
that the Ethernet cable connected between the Splitter cable and the RCNI is Rev C or higher for
P0971XK, XL, XM and XN. Refer to SI 0-00528 for kits AG100WD, WE, WF & WG.
Verify that on each NCNI pair one switch is set to "A" and the other set to "B".
Verify that the NCNI is connected to the proper switch (A or B)
If there is more than one switch in series for each cable verify that there are no crossed
cables between switches.
Verify that all switches have the proper configuration parameters as specified in B0400DV.
Use the latest revision of the document under the User Documents for the latest release. For
instance under L02-2 B0400DV-A is found but under L03-1 B0400DV-B is found.
Verify that the status leds and links are operating properly on all RCNIs. All three link leds
should be on and blinking. There will be a difference in the blink rate for the "A" & "B" fibers since
one cable will be the Primary for I/A but there should still be activity on both.
Verify that leds on the NCNIs are operating properly. There should be a link led on for each
cable connection on the NCNI, CAT-5, Fiber or both. When there is activity on a cable the led will
blink. The Nodebus led will blink when there is a transmission to the nodebus from the NCNI.
Verify that switches which have connections have the led on for receive. The receive led
being on indicates link. There should be activity on the receive led when a packet comes from the
switch to the station. The Transmit (TX) led will blink when the station sends a packet to the switch.
Flashing red on the transmit usually indicates a transmit problem such as a collision. Check the
switch port settings for full duplex and auto-negotiation.
Symptom: Network Slowdown
1. Check for crossed cables between the "A" and "B" paths in the V7.x network. A crossed cable
can also be produced by setting the NCNI switch to the wrong position i.e. connecting the NCNI to
a switch for cable "A" but setting the Nodebus Selection switch to "B", onnecting the cables from
the RCNI to the wrong switch or making a connection between a switch on the "A" cable to a switch
on the "B" cable.
2. Check for bad or missing connections on the station that is the
current Nodebus Test Initiator. A bad fiber link between a RCNI and a
switch on the station that is the current NFD Initiator can cause a
slowdown if stations think there is a problem with the cable that
doesn't have a bad link. Note: This type of fault would have to be a
fault that does not cause a link loss but does create bad or
intermittent communications on the cable with the bad link.
3. Verify that the station is configured for redundant communications
(nodebus) and not ethernet.
Check the CMX_STAND_ALONE parameter in the
/usr/fox/exten/config/loadable.cfg file. For redundant busses (Nodebus)
you should see the following values.
Solaris Stations CMX_STAND_ALONE = 0
NT and XP CMX_STAND_ALONE=DNBI_PRESENT
If these values are not correct then a reconfiguration and re-committal
will be necessary to properly configure the station.
TCP/IP Communications Work But Not I/A Communications (Comex)
1. Check that the splitter cable is connected to serial port "A". IP
doesn't need a certain cable to work but I/A won't work properly if it
can't switch cables and switch the "A" & "B" receivers on/off. If
the Splitter Cable is properly connected replace it. Verify that the
Ethernet cable connected between the Splitter cable and the RCNI is Rev
Page 192
C or higher for P0971XK, XL, XM and XN. Refer to SI 0-00528 for kits
AG100WD, WE, WF & WG.
2. On XP stations verify that the Foxboro Protocol is only enabled
for the NIC port connected to the RCNI. The Foxboro Protocol should not
be enabled (checked) on the Mother Board port but only on the NIC used
for I/A which is usually Local Area Connection 2.
I/A Communications Work But Not TCP/IP
1. Check that the proper subnet mask is set. Sun stations default to
255.255.0.0 NT stations
255.255.254.0 and XP 255.255.228.0. It is best to set them all to
255.255.0.0. Also verify that the Network portion of the I/A port is
151.128.
Note a ping can work even if the netmask is not properly configured.
2. Verify that the Ethernet cable connected between the Splitter cable
and the RCNI is Rev C or higher for P0971XK, XL, XM and XN. Refer to SI
0-00528 for kits AG100WD, WE, WF & WG.
3. If the IP communications is going across a LAN to another node
verify that the IP addresses for the destination and source stations
are in the correct IP range for the NSAP of each node. Check the CSC
Web page under Resources -> Troubleshooting Guides -> Tokenbus/Nodebus
for a table of NSAP to IP ranges.
Intermittent Cable Failures Reported by NFD
NFD thrashing between V6.x stations and V7.x stations has the potential
to create cable problems. On V7.x nodes verify that NFD has been
disabled on all V6.x stations. The one exception is the LAN, which
can't be disabled at V7.0 & V7.1. A workaround is to manually select a
V7.x station to be the NFD Test Initiator even if a V7.x is already the
Initiator. On V7.x hosts running NFD the utility nfd_debug can be used
to determine if there is NFD contention occurring between multiple NFD
Initiators. See below for more information on nfd_debug. To set a
station as the NFD Test Initiator go to NETWORK in System Management
pick NEXT LEVEL, if there are LANs pick the LAN for the Node which
hosts the station which is to be the Test Initiator, pick NEXT LEVEL
and select the station which is to be the Nodebus Test Initiator,
select ONLINE DIAG and when the window opens select CHANGE NODEBUS TEST
INITIATOR. When the operation is complete use the CURRENT NODEBUS TEST
INITIATOR pick to verify.
Non Unique Letterbug Messages After Station Reboot
When a Non Unique Letterbug messages shows up in the smon_log this is
usually caused by by a Network loop in the system which allows cross
communications between the "A" and "B" cables. Check for crossed
cables or a defective NCNI, RCNI. Check for crossed cables on segments
other than the segment on which station reporting the Non Unique
Letterbug that won't boot is located.
Duplicate Mac Address Messages
Page 193
Page 194
nfd_debug
Enable nfd_debug for information on the current NFD Test Initiator is.
This file will log information on all stations on which it exists. You
want to monitor the size of this file because it will grow indefinitely
and at a fairly high rate. This log is helpful to show how many
stations each potential Initiator thinks are on the node and also who
is the current Initiator. To enable nfd_debug create the directory
/opt/fox/sysmgm/nfd and create the file nfd_debug.
A station that is the NFD Initiator will report messages like the
following in nfd_debug
2004-06-18 09:26:33 ev_timeout: my_state: MASTER, Not Refreshing --num_stas: 18
my_state: Master (says this station is the Master)
num_stas: 18 (Says NFD on this stations sees 18 stations on the node)
A station that is not the NFD Initiator will have a messages like the
following in nfd_debug
2004-06-18 09:31:09 ev_timeout: my_state: Not Master, Not Refreshing -- num_stas: 20
(Message indicates this station is not the NFD Initiator "Not Master")
2004-06-18 09:31:16 Heartbeat Rcvd: Master: AW51F1, Override: 1,
Mast_type: 7d -- my_state: Not Master
(Message indicates that a NFD Initiator heartbeat another station
"AW51F1")
2004-06-18 09:31:16 2. I_OVERRIDE: No Action
(Message indicates that no attempt has been made by this station to
become the NFD Initiator by overriding)
smon_log
Enable the smon_log on all System Monitor hosts. This log along with
nfd_log can help debug cable problems. You will want to monitor the
file because it will grow indefinitely. To enable smon_log create the
directory /opt/fox/sysmgm/sysmon and create the file smon_log.
tput clear
Tuning
- Proportional band or gain (P) Output is proportional to error.
Farther away from SP, the more action youre gonna get
(Slow(100) > Fast(0.1))
Page 195
Integral Time, reset time, or reset rate (I) Output repeats proportional change over time. Integrates
area under error curve.
Looks at how long youve been away from SP. You dont have
enough integral if it really never reaches the setpoint.
(Slow(100) > Fast(0.1))
- Derivative Time or rate (D) Output repeats based on slope of error curve.
Time is how long derivative action lasts.
Looks to see if youre making progress and tries to catch
the measurement before it starts swinging back and forth.
(Slow(0) > Fast(5))
Turn the integral time to its highest setting (set to 10 minutes per repeat)
If used, turn the derivative time (rate time) to zero or its minimum
Decrease the proportional band until the loop maintains a small sustained cycle.
Then set the controller adjustments to:
Kc=Kcu/2 where Kc=100/Proportional Band
Pc=2Pcu where Kcu=ultimate gain, same units.
Ti=Pn where Ti=Integral time, minutes per repeat
Td=Pn/8 where Td=Derivative time, minutes
Use the open loop method on slow processes, such as temperature and composition. Also note
that the L parameter is more important then R. Also note that if R continues to increase, these
tuning rules do not apply.
Two important things to note: As the proportional band is increased, the loop will tend to oscillate.
Also, as the proportional control is decreased, the offset becomes smaller, but never reaches zero.
Cascade Control:
Tune the secondary controller first for tight control. The secondary controller should be faster. The
primary loop will see the secondary loop as another lag. Then tune the primary loop as you would
any other loop. The amount of lag seen in the primary loop depends on the tuning of the secondary
loop.
DO NOT HAVE EXACT ON BOTH MASTER AND SLAVE. Set parameters on secondary then turn
it off and leave exact on master.
Example tuning process:
Page 196
Turn off integral and derivative, set both to 0. Start with P-Band at 100 then just watch to see what
happens to it. If it starts to drift, keep changing P-Band until you get a slow kind of curve not a
zigzag curve. Figure the natural period in minutes. If Pband comes to 65 then set Pband to 130.
The natural period in minutes = Integral if natural time = 30 seconds then Integral = .5. Derivative =
natural period divided by 8 or .0625.
uname Command
uname [-amnprsv]
-a
-m
-n
-p
-r
-s
-v
Upgrade Utilities
Page 197
The Upgrade Utilities document should be read in its entirety before running these scripts. Below
are just brief descriptions and are to be used as a reference only. These notes are subject to
change so its important to read the actual manuals. Before performing a day0 upgrade, the latest
upgrade scripts should be downloaded.
Tar off the install_upg utility into /tmp and run this program. This program will generate a sort of
Upgrade Plan which is to be used as a reference when actually writing your own upgrade plan.
There are several reports that are generated from this utility. All of the information contained in
these reports is very useful. The install_upg utility will then run another script called upg_util. The
upg_util is an interface program which runs a series of scripts to inventory all files and directories as
well as the checksums of all Foxboro Standard System and display related files. This utility in
effect will give you three files that will be 1) a list of all custom directories that do not exist on a
day0 drive, 2) a list of all custom files that do not exist on a day0 drive, and 3) a list of the Foxboro
Standard System and Display related files that have been modified.
Upload Utility
For a thorough explanation of the UPLOAD utility, go to the section titled Utilities: Upload, Shrink,
Checkpoint, Save_all.
Command Line:
Page 198
<type>
1=upload compound
2=upload block
3=upload ECB compound
4=upload all
5=upload oper. status parameters
<block>
workfile.dat
<temp dir>
<CP type>
uptime
This command displays the length of time the system has been up since the last reboot.
Page 199
SHRINK The workfile grows without bound as blocks are changed. When the DONE button is
pressed, the altered block is written to the end of the workfile (appended).
CHECKPOINT The contents of the CSs RAM are written to the host machine. This file is used to
restore the RAM after a reboot. Since this is basically a copy of the contents of RAM at the time of
the checkpoint, the rebooted box can start with the previous setpoints and block states.
Parameters like INITMA are used to alter its behavior.
SAVE_ALL A directory structure using the native file system of the host is written to the floppy
when a SAVE_ALL is triggered. This directory structure contains a hidden file that holds the names
of the compounds on the floppy, directory for each compound that holds the sequence and ladder
logic files for the CS, and a file (parameters) that contains the parameter values for each parameter
of each block.
LOADALL The LOADALL pick causes the ICC to read the floppy created by the SAVE_ALL.
Related to this is the fact that the ICC database is actually in four different places.
The CSs RAM holds the working copy. This is the copy that changes made at a display will alter.
The checkpoint file, which is stored in /usr/fox/sp/files on the boot host of the control station. Its
name is DB<LBUG>.UC. Its backup is BB<LBUG>.UC
The source code files used by the ICC. These are stored in /opt/fox/ciocfg. The directory <LBUG>
stores the files related to the compounds, blocks, and parameters of the objects in the CS. The
directory <CMPDNAME> holds the sequence and ladder logic files for the compounds.
The CSA database contains a list of the compounds and blocks in the system. This list is used by
the ICC to guarantee uniqueness of names.
The source code files consist of two types of files: the .O files and the .wf file. The <LBUG>.O file
contains a record for each compound in the CS. There is one <LBUG>.O file for each station.
There is a <CMPDNAME>.O file for each compound. Each <CMPDNAME>.O file contains the
names of the blocks owned by that compound. The .wf file contains all of the parameter data. The
<CMPDNAME>.O records contain a pointer into the .wf file that is used to locate the parameters of
a particular block. Since changes to the block cause new records to be appended to the file, the .O
files must be updated with each change.
The SHRINK action causes the excess information in the .wf file to be squeezed out.
Problems arise when these files get out of synchronization.
If the CSs RAM is lost, the checkpoint file is used to recover. (This is a reboot)
If a checkpoint file is lost, the checkpoint operation can recreate it.
If the source files are lost, there is no standard approach to recovery and the ICC cannot be used
to recover with the CP running.
If CSA is lost, the SAVE_ALL, INITIALIZE, REBOOT, and LOADALL sequence may be required to
recover the database or to resynchronize to a backup.
VI - Colon Commands
:set all
:set wm=20
:set nu
:set ai
Page 200
:q!
exit without saving
:n
move to that line number
:x,ymz
move line between x & y to a position following z
:x,ycoz
makes copy of lines from x to y and places them after z
:x,ywfilename
copy lines from current file to new file
:x,yw>>filename append lines to existing file
:e
edit another file while in vi
:w
save changes to current file
:ZZ
saves and exits
:wq!
writes and quits
vi IIF.pkg
:g/FBM/s/NOTYET/DONE/g
This searches for a line that has FBM in it and changes the word NOTYET on that line to
DONE.
This could have been searching only for WP51s for instance:
Example:
:g/WP51/s/NOTYET/DONE/g
Example to remove unwanted hard carriage returns (^M) at the end of each line of a file.
The following command will globally replace the last character of each line (the carriage-return) with
nothing (i.e. delete it). The hard carriage returns are placed at the end of the line in a file saved in
DOS/Windows. Thank you Bob VI and awk Dombrowski. (Also see Copy - unix2dos and
dos2unix (50 series) for a different method).
:g/.$/s///
Page 201
i
l
a
A
o
O
r
cw
cc
x
dw
dd
D
3x
3dw
3dd
p
P
yw/yy
y1y
J
.
u
U
1p
/text
?text
n,N
c
Page 202
Ctrl-F
Ctrl-L
Ctrl-D
Ctrl-U
VI - Opening A File
at the end of the file =
at specific word =
at specific line =
vi + filename
vi +/word filename
vi +n filename
vmstat
For use on 50 series systems, vmstat will display certain system statistics regarding process,
virtual memory, disk, trap and CPU activity.
vmstat 5 10
(will run vmstat updating every 5 seconds displaying the first 10 lines)
For use on 50 series systems, the vmstat command will display certain system statistics regarding
process, virtual memory, disk, trap and CPU activity Note: vmstat statistics are only supported for
certain devices. Without options, vmstat displays a one-line summary of the virtual memory activity
since the system was last booted. If an interval is specified vmstat summarizes activity over the last
interval in seconds, repeating forever.
Note: In the example below vmstat will update every five seconds; vmstat terminates by entering
<ctrl>c Because vmstat consumes system resources be careful about leaving vmstate running for
extended periods.
Use:vmstat 5
OPTIONS
-c
Report cache flushing statistics. By default, report the total number of each kind of cache
flushed since boot time. The types are: user, context, region, segment, page, and partial-page.
-i
-s
-S Report on swapping rather than paging activity. This option will change two fields in
vmstat's ``paging''
procs
memory
page
disk
faults
cpu
r b w swap free re mf pi po fr de sr f0 s3 -- -- in sy cs us sy id
0 0 0 4188 2796 0 1 0 0 0 0 0 0 0 0 0 16 276 244 3 5 91
0 0 0 61800 2372 0 2 0 1 1 0 0 2 1 0 0 1785 322 271 10 5 85
procs - Report the number of processes in each of the three following states:
r
in run queue
b
blocked for resources (I/O, paging, and so forth)
w
runnable but swapped
memory - Report on usage of virtual and real memory. swap amount of swap space currently
available (Kbytes) free size of the free list (Kbytes)
page - Report information about page faults and paging activity. The information on each of the
following activities is given in units per second.
re page reclaims, see the -S option for how this field is modified.
mf minor faults, see the -S option for how this field is modified.
Page 203
pi kilobytes paged in
po kilobytes paged out
fr kilobytes freed
de anticipated short-term memory shortfall (Kbytes)
sr pages scanned by clock algorithm
disk - Report the number of disk operations per second. There are slots for up to four disks,
labeled with a single letter and number.The letter indicates the type of disk (s = SCSI, i = IPI, and
so forth); the number is the logical unit number.
Note : An idle time that is consantly below 50 percent should be investigated.
/.login
File executed at login into the Bourne Shell:
/.profile
File executed each time a shell is spawned in C Shell:
/.cshrc
File executed upon logout of the C Shell:
/.logout
wc Command
Syntax:
wc [-cwl] <file-list>
Counts characters, words, and lines of files
-c
-w
-l
Characters
Words
Lines
who
The who command examines the /var/adm utmp file to obtain information of everyone logged in.
/var/adm/wtmp contains a history of all the logins since the file was created.
who -a
who am I
who -u
who -b
(who -b will show the last boot date for the system)
(who -a and who -b are not available on the 50 series systems).
Page 204
bytes 0-6
WP letterbug plus the null terminator
byte 7
Secondary GCIO/Touchscreen letterbug, 50 series only
00 (Hex), no secondary GCIO and no touchscreen
S (ASCII), secondary GCIO and no touchscreen
6 (ASCII), secondary and touchscreen
byte 8
WPIO Primary Station ID
01 (Hex), no multiscreen
02 7F (Hex), multiscreen present, value assigned by SysCfg
byte 9
Primary GCIO/Touchscreen Letterbug
00 (Hex),if WP20/30 no touchscreen, if 50 series no primary
GCIO and no touchscreen
Page 205
Page 206
no touch, GCIO or no GCIO and Modular Keyboards (MK) (1 or 2) for the main CRT and/or the
second CRT. There are no changes for mouse or trackball, nor when the color TGX card is
selected. Adding a second CRT without touch and without MK but including GCIO did not make
any change to the file.
If you see the S on the ASCII side or a P and you know that you do not have linked WPs, then
check your System Configuration to ensure there is a GCIO for each CRT that you have MKs
configured on.
Page 208