Scripts
Script used to gather data on patch information on a system. Used to analyze a patchadd or patchrm failure in the Solaris OS. See article: http://www.sun.com/bigadmin/features/articles/patchanalysis.jsp for more information. (Updated 11/2009)
This script is used to capture info needed to recreate ZFS root system disk in a bare metal scenario so we can restore a server from Veritas NetBackup with new system disk inserted. See article that describes usage of this script: http://www.sun.com/bigadmin/content/submitted/restore_zfs_root.jsp
The program simplifies Sun Java Communications Suite domain removal, and allow to complete the task without the series of deletion/purge commands. This script is a part of Commandline Support Tools project # http://code.google.com/p/cs-tools/ Get the source from: http://cs-tools.googlecode.com/files/rmdom.pl
NDDcfg provides the ability to easily configure selectively your network interfaces. Revision 1.18 is provided here. Here is an example on how to use it: * Installation (as root): # cd NDD # make install * Installation example: root@mysun # cd Solaris-Tuning-scripts/NDD root@mysun # make install /usr/sbin/install -f /etc/init.d -m 0755 NDDcfg NDDcfg installed as /etc/init.d/NDDcfg test -s /etc/rc2.d/S78NDDcfg || (cd /etc/rc2.d/ ; /usr/bin/ln -s ../init.d/NDDcfg /etc/rc2.d/S78NDDcfg) /usr/sbin/install -f /etc/init.d -m 0755 TCPcfg TCPcfg installed as /etc/init.d/TCPcfg test -s /etc/rc2.d/S79TCPcfg || (cd /etc/rc2.d/ ; /usr/bin/ln -s ../init.d/TCPcfg /etc/rc2.d/S79TCPcfg) test -f /etc/inet/NDDcfg.conf || /usr/sbin/install -c /etc/inet -m 0644 NDDcfg.conf NDDcfg.conf installed as /etc/inet/NDDcfg.conf * Installed files are: -rw-r--r-- 1 bin bin 375 Apr 2 12:07 /etc/inet/NDDcfg.conf -rwxr-xr-x 1 bin bin 13339 Apr 2 12:07 /etc/init.d/NDDcfg -rwxr-xr-x 1 bin bin 4631 Apr 2 12:07 /etc/init.d/TCPcfg lrwxrwxrwx 1 root other 16 Apr 2 12:07 /etc/rc2.d/S78NDDcfg -> ../init.d/NDDcfg lrwxrwxrwx 1 root other 16 Apr 2 12:07 /etc/rc2.d/S79TCPcfg -> ../init.d/TCPcfg
This script creates/configures guest LDOM's.
This script will check the status of a Sun HW Raid configured with raidctl and report errors via logger and mail NOTE: This script only applies to raid volumes on Solaris 10 8/07 (aka update 4) and newer. The raidctl command changed with that version.
This script creates XML backup files of all configured domains and saves an SP config.
This script monitors Disksuite databases and also verifies that all metadevices are in the Okay state.
This script creates a primary IO/Control/Service LDOM. This should be run after you have the aggregates network devices configured
Simple script to check Oracle alert logs. This script can monitor a single instance, or all of them! Can be run as often as you like. It also rotates the alert log weekly, in this case on a Tuesday. Mainly written as a series of funtions so you can choose what you want without having to re-write the entire script. Read description for more information and customization.
zone_console is a script to start or stop screen sessions for one, some or all defined zones on a machine.
Package for ZFS backup/restore to the local mounted storage or NFS. README file included in English and Russian. FIle: zfs_backup_restore.tar.gz Contains: readme_en.txt readme_ru.txt zfs_backup.sh zfs_restore.sh
This script creates a snapshot of the given ZFS filesystem and keeps a limited number of daily, weekly, monthly, yearly snapshots by deleting some old ones.
Designed to run from cron, it parses itself for a data file and crates a baseline on your system in /var/cmcs. Any file changes since last run, get a new version and the difference is emailed. Original Location: http://www.bdragon.net/cmcs.html
Shell based menu program that parses a comma delimit file and generates a menu. You will need a sample .menu file - see comments. It does support recusive menus and has a hidden option 'E', that lets the menu be edited while you use it and changes take effect without restarting. Good example of using arrays. Original location of script: http://www.bdragon.net/menu.html
Gives a nice overview output of machine configuration (hardware). Has a verbose mode and a "normal" mode. Works on x86 as well as sparc based systems.
This script checks Solaris 8, 9, and 10 Servers, but is basically designed for Solaris 10. This script presents a menu of options and monitors for SVM, Filesystem status, Filesystem Inodes status, syslog, Sun clusters, zones, zfs, prstat, zfs, lan, IPMP, process stat, sar, and root mirror status.
wshang.ksh version 3.1, Script for Gathering Debug Data for Web Server 6.0, 6.1 and 7.0 (and Proxy Server 4.0) on Solaris SPARC and x86 for debugging hang conditions.
Sun Gathering Debug Data Script pkg_app - collects libraries of Sun Java System Server environment that are useful for debugging core/gcores. SuSE Linux 9/10 version.
Sun Gathering Debug Data Script dirtracer - collects all parts of Sun Java System Directory Server environment that are useful for debugging, such as log files, database, information platform information, and others. This version works on RedHat Linux.
Sun Gathering Debug Data Script dirtracer - collects all parts of Sun Java System Directory Server environment that are useful for debugging, such as log files, database, information platform information, and others. Works with the Solaris OS on x86 platforms.
Sun Gathering Debug Data Script pkg_app - collects libraries of Sun Java System Server environment that are useful for debugging core/gcores. Redhat Linux version.
Sun Gathering Debug Data Script dirtracer - collects all parts of Sun Java System Directory Server environment that are useful for debugging, such as log files, database, information platform information, and others. Works on Solaris OS (SPARC).
Sun Gathering Debug Data Script dirtracer - collects all parts of Sun Java System Directory Server environment that are useful for debugging, such as log files, database, information platform information, and others. SuSE Linux version.
Sun Gathering Debug Data Script pkgapp - collects libraries of any Softwares that are useful for debugging core/gcores. Solaris OS version.
This script can be run from cron to periodically check filesystems for low disk space and send an e-mail if a filesystem is above the defined threshhold. Note: If there is an issue running directly, wrap the test of $FSLIST in quotes: if [ -z "$FSLIST" ];
Example of using a foreach loop in the 'tcsh' shell (or csh shell).
My personal .bashrc file. Features: - Auto version control - Logging - Window title changes with path - Prompt is in color and shows: Jobs, error status of last command, and history number - ssh now has history Very well commented to see how items can be adjusted or set.
This is a very useful tool for managing your personal notes. It parses all the text files in a directory and creates a menu to edit, search, views, etc.... Sample notes: http://www.bdragon.net/qrefdir.gz On the command line, if you pass it a string it will look for a note with that name to display and if it does not find a match it will then look inside the note. I wrote it on linux, work on Solaris with minor changes. Original location: http://www.bdragon.net/qref.html
This script helps make NIS+ a little easier to use. It allows you to view users and change their attributes in a nicer way than using the NIS+ commands. Ability to change all fields of a user in NIS+. Ability to view properties of a NIS+ user in human format. Ability to back up and restore NIS+ directory.