================================================ Netra T1 105 ----------------------------- RJ45 Serial Port Pinouts Pin 1 RTS Pin 2 DTR Pin 3 TXD Pin 4 REF (GND) Pin 5 REF (GND) Pin 6 RXD Pin 7 DSR Pin 8 CTS ================================================ ======================================== Status sysdef -[nhdD] output system definition sysinfo S Y S C O N F ------------------------------- reconfigure add_drv runs drvconfig add disk drive to system configuration /etc/path_to_install file with config info; remove if corrupted; boot -ar and the system will rebuild it ======================================== ndd, setup ethernet (hme) interfaces # run these as root to set hme interface settings ndd -set /dev/hme instance 0 ndd /dev/hme instance ndd -set /dev/hme adv_autoneg_cap 0 ndd -set /dev/hme adv_100hdx_cap 0 ndd -set /dev/hme adv_100fdx_cap 1 ndd /dev/hme link_mode # 1 link mode is full duplex ------------------------------- force hme to full duplex /etc/system add the following lines (* is a comment) * force hme interfaces to full duplex set hme:hme_adv_autoneg_cap=0 set hme:hme_adv_100hdx_cap=0 set hme:hme_adv_100fdx_cap=1 * end hme cd /etc vi system tail system ------------------------------- test # run these are root to query hme interface settings ndd -set /dev/hme instance 0 ndd /dev/hme instance ndd /dev/hme adv_autoneg_cap ndd /dev/hme adv_100hdx_cap ndd /dev/hme adv_100fdx_cap ndd /dev/hme link_mode # 0 link mode is half duplex - i think # run as root to see all possible settings ndd /dev/hme \? ======================================== DSL ndd -set /dev/tcp ip_forwarding 1 enable IP forwarding ======================================== create file system see also devices /usr/sbin/newfs -i 8192 -m 5% /dev/rdsk/c6t1d0s2 tunefs unmounted filesystem, must be in /etc/vfstab ======================================== metadevices /usr/opt/SUNWmd/sbin growfs metadetach metaoffline metarename metaset metattach metaclear metahs metaonline metareplace metastat rpc.metad metadb metainit metaparam metaroot metasync rpc.metamhd /usr/opt/SUNWmd/sbin/metainit d25 init metadevice vi /etc/opt/SUNWmd/md.tab newfs -i 8192 -m 5% /dev/md/rdsk/d25 fsck /dev/md/dsk/d25 mkdir /export/mdisk25 mount /dev/md/dsk/d25 /export/mdisk25 ------------------------------- remove from the disk pool unshare /export/mdisk13 umount /dev/md/dsk/d13 metaclear /dev/md/dsk/d13 ------------------------------- metareplace -e d21 c1t4d0s2 d21: device c1t4d0s2 is enabled # metastat d21 d21: RAID State: Resyncing Resync in progress: 0% done Interlace: 32 blocks Size: 106067367 blocks Original device: Size: 106068864 blocks Device Start Block Dbase State Hot Spare c1t0d0s2 3921 No Okay c1t1d0s2 3921 No Okay c1t2d0s2 3921 No Okay c1t3d0s2 3921 No Okay c1t4d0s2 3921 No Resyncing ------------------------------- To preserve RAID add -k to the last line in md.tab /dev/dsk/c2t7d0s2 -k -i 16k and run /usr/opt/SUNWmd/sbin/metainit -a ------------------------------- metadb -d /dev/dsk/c2t7d0s2 delete all replicas located on the same slice /etc/system file is automatically edited, /etc/opt/SUNWmd/mddb.cf is updated metadb -i Inquire about the status of the replicas. ------------------------------- metareplace d1 c2t17d0s2 c2t16d0s2 d1 device c2t17d0s2 is replaced with c2t16d0s2 ------------------------------- remove the disk drive luxadm remove -F /dev/rdsk/c2t17d0s2 The FPM icon for the disk drive to be removed should be blinking. In addition, the amber LED under the disk drive should also be blinking. ------------------------------- insert the new disk drive luxadm insert macs1,r1 ======================================== data transfer filesync - synchronize ordinary, directory or special files -s source-dir -d dest-dir -o src Specify -o src to propagate changes only from the source system to the destination system. Changes made on the destination system are ignored. filesync aborts if it cannot access a source or destination directory. ======================================== cleanup directory with old files rsh remotehost "cd /export/home ; find . -user raffi \( -type f -o -type l \) -m time +5 -atime +5 -ls -ok /bin/rm -f {} \;" ======================================== kill multiple processes pid=`ps ax | egrep "/usr/lib/l[p]d" | awk '{print $1}'` for proc in $pid do echo ps ax | egrep "[ ]*$proc" | egrep -v grep echo kill $proc kill $proc ======================================== Move file (systems) (cd source.dir;tar cvfp - .)|(cd dest.dir; tar xvfp -) ------------------------------- tar cvf - * | rsh mercury dd of=/dev/rmt/0 bs=126b rsh mercury dd if=/dev/rmt/0 | tar xvBpf - ------------------------------- rdist -c : rdist -c hornet-rel10 yeehaw:/export/mdisk15/hornet-rel10 - rdisting automatically /etc/cad/Rdist/distfile.SERVER_NAME = defines which directory to rdist to which server ------------------------------- rsh HOST '(cd DIRECTORY; find . -print | cpio -ocm)' | cpio -icdumv need (/.rhosts on HOST) ------------------------------- find | cpio -pdmvl dest ======================================== NFS problems Mar 23 06:05:56 concept unix: NFS server for volume management (/vol) not respon ding still trying ------------------------------- /etc/init.d/volmgt stop;/etc/init.d/volmgt start restart volume management rmmount volcancel volcheck volmissing vold ======================================== rename files for x in *txt; do mv $x `echo $x | sed s/txt/doc/`; done csh for i in *.txt; do mv $i ${$i%.txt}.doc; done ksh ------------------------------- getfacl get file permissions ======================================== console fuser -u /dev/console whos using console fuser -k /dev/console kill processes using console ======================================== SAR 0,10,20,30,40,50 * * * * /usr/lib/sa/sa1 ======================================== config devices drvconfig - configure the /devices directory devlinks - adds /dev entries for miscellaneous devices and pseudo-devices disks - creates /dev entries for hard disks attached to the system ======================================== printing lpstat -l hp54d printer status Starting with Solaris 2.6, there's a new lp "model" script, "netstandard". This script allows you to print to remote BSD type printers as well as over raw TCP/IP connections. It's used like this: # Raw TCP lpadmin -p -m netstandard -o protocol=tcp -o dest=host:port \ -v /dev/null # BSD lpadmin -p -m netstandard -o protocol=bsd -o dest=host \ -v /dev/null Enable/accept and you're all set. When using netstandard, all filtering is done locally. When configured as a BSD print client, filtering isn't done locally as only print servers should filter jobs. ------------------------------- HP large size printers plq -P:hp54b ======================================== syslog logger - add entries to the system log -ppriority priority can be specified numerically, or as facility.level pair (-plocal3.info assigns info level in the local3) ================================================== Priority level tainan% priority -m gunbelt -l hostname priority -------------------- -------- gunbelt 3 --------------------------------- Change priority priority -m gunbelt 3 Change current entry (4) to (3) (1 row affected) ================================================== Server sys files /import/crm/data/getinfo/SERVER server system files ======================================== volume management problems Mar 23 06:05:56 concept unix: NFS server for volume management (/vol) not resp onding still trying ------------------------------- /etc/rc2.d/S73nfs.client stop;/etc/rc2.d/S73nfs.client start /etc/init.d/volmgt stop;/etc/init.d/volmgt start restart volume management ------------------------------- ======================================== ping all nts- devices db hostname all | egrep nts- | egrep nts | awk '{printf "ping %s 2\n",$1}' | /bi n/sh ======================================== console use fuser -u /dev/console whos using console fuser -k /dev/console kill processes using console ==================================== ~/bin/install.OS install see file --> OS.install When re-loading OS, make sure the SSA/A5000 has the required firmware and FCODE patch. ==================================== Patches When installing y2k disksuite patch, please use 104172-14 instead of 104172-13. Don't worry about machines already done. Following the instructions on the readme file to install the patch. Install y2k disksuite patch Disksuite 4.0 - /import/crm/patchdb/5.x/102580-18 Disksuite 4.1 - /import/crm/patchdb/5.x/104172-14 <------ instead of 104172-13 Disksuite 4.1.1 - Not required Disksuite 4.2 - Not required Patch for old type SSA firmware upgrade, firmware must be upgraded to 3.12 /impport/crm/patchdb/5.6/105223-05 - for 5.6 /import/crm/patchdb/5.5.1/104708-16 - for 5.5.1 /import/crm/patchdb/5.x/103346-21 - Flash prom update - A5000 /import/crm/patchdb/5.6/105375-10 - A5000 firmware upgrade, must be upgrade to 1 .08 No 5.5.1 server using A5000 Notes: if A5000 firmware is below 1.07, there are additional steps, please read the README file. Daniel ==================================== Mail echo sun.com > /etc/mail/relay-domains cd /etc/mail makedbm relay-domains relay-domain ==================================== siminfo, how to change projcode -m dixie common configcode -m dixie file projusage -m dixie fileserver-critical-NULL ==================================== automation /etc/cad/lib/nsswitch.sh script will look for a file called /etc/nsswitch.conf.nonis.README (date, created by, what purpose, project) links to nsswitch.conf nsswitch.conf.std nsswitch.conf.nonis.std ==================================== Dream DRMHOME=import/drm/viper DRMDOMAIN=viper drmjabstat host drmback -off host drmback -on host Solstice DiskSuite Disk Replacement http://docs.sun.com:80/ab2/coll.223.1/A5KSUPPLEMENT/@Ab2PageView/idmatch This section contains the procedure for replacing disk array disk drives that ar e managed by Solstice DiskSuite software. 1.Preserve the disk label if multiple slices on the disk drive are being use d. Up to 180 Mb/s throughput Perform this step if you are using a slice other than s2. See the prtvtoc man page for more information. 2.Use the metareplace command to replace the disk slices if they have not be en hotspared. # metareplace d1 c2t17d0s2 c2t16d0s2d1: device c2t17d0s2 is replaced wi th c2t16d0s2# 3.Use the luxadm remove -F to remove the disk drive. The -F option is required because SDS doesn't offline disks. # luxadm remove -F /dev/rdsk/c2t17d0s2 WARNING!!! Please ensure that no filesystems are mounted on these devic e(s). All data on these devices should have been backed up. The list of devices which will be removed is: 1: Box Name "macs1" rear slot 1 Please enter 'q' to Quit or to Continue: stopping: Drive in "macs1" rear slot 1....Done offlining: Drive in "macs1" rear slot 1....Done Hit after removing the device(s). Note - The FPM icon for the disk drive to be removed should be blinking. In addi tion, the amber LED under the disk drive should also be blinking. 4.Remove the disk drive and hit Return. Hit after removing the device(s). Drive in Box Name "macs1" rear slot 1 Removing Logical Nodes: Removing c1t17d0s0 ................ # 5.Repeat for all hosts if the disk array is in a multi-host configuration. 6.Use the luxadm insert command to insert the new disk drive. # luxadm insert macs1,r1 The list of devices which will be inserted is: 1: Box Name "macs1" rear slot 1 Please enter 'q' to Quit or to Continue: Hit after inserting the device(s). 7.Insert the disk drive and hit the Return key. Note - The FPM icon for the disk drive you replaced should be lit. In addition, the green LED under the disk drive should be blinking. Hit after inserting the device(s). Drive in Box Name "macs1" rear slot 1 Logical Nodes under /dev/dsk and /dev/rdsk : c1t17d0s0 c1t17d0s1 c1t17d0s2 ........... # 8.Restore the disk label if you saved it in Step 1 . # cat /var/tmp/c2t17d0.vtoc | fmhard -s - /dev/rdsk/c2t17d0s2 # 9.Replace metdb if needed. # metadb -d c2t17d0s0; metadb -a c2t17d0s0 # See the metadb man page for more information. 10.Enable new disk slices with the metareplace -e command. # metareplace -e d0 c2t17d0s0 d0: device c2t17d0s0 is enabled # See the metareplace man page for more information.