Home About BC DR HA Support Training Download
You are here: Home/ Downloads/ Scripts/ Korn/ Functions/ Please Login or Register

-
Current Location
-

js
  Downloads
    Scripts
      Korn
        Functions
-
AIX Admin Methodology
Global Consolidation Project
All AIX admins should join
www.aixexpert.com


Join our LinkedIn Group
AIX Advanced Technical Experts
Contract Opportunities

www.LinkedIn.com

-
digg Digg this page
del.icio.us Post to del.icio.us
Slashdot Slashdot it!


LPAR Leasing
Lease an AIX / i5 LPAR
Reduce your costs

www.mtxia.com

Server Leasing
Lease a Server off-site
Reduce your costs

www.mtxia.com

Data Center Automation
Business Continuity and DR
Virtualization/Consolidation

www.mtxia.com

HMC Service
Hardware Management Console
Manage Remote AIX / i5 LPARs

www.siteox.com

Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com

Disaster Recovery
Small Business Oriented
Off-Site Facilities

www.mtxia.com

IBM pSeries / iSeries
Reduce your Costs
Off-Site Server Hosting

www.mtxia.com

-

Functions

-

Shell Curses Function Library
Korn Shell library of functions to provide cursor movement capabilities for the shell programmer. Similar in function and form to the Curses C library.

wikiAutoLoad Automated Wiki Content Uploading Script
Automated mechanism for uploading wiki content to a MediaWiki Server. This shell script can be run from any system in an organization to automatically upload information to a centralized wiki documentation server.

visualSelect Menuing and Data Interface
Menuing and data interface system written in Korn Shell 93. This program is to provide a visual interface into an array of values. The interface, written in Korn Shell, provides the user with the ability to use single key presses to peform cursor movement using the PC keyboard arrow keys, PgUp, PgDn, Home, and End keys. It also provides single key press execution for the PC Keyboard function keys.

French Menus Korn Shell Function Library
Korn Shell library of functions to provide menuing, data entry, and program management capabilities for the shell programmer.

cgiparse: CGI variable parsing function
Parses CGI variables for interpreting HTML values passed to a shell program from a web-based interface.
(non-html version)

displaydom_k93: Display dates in a month for a specified day of the week
This script examines a calendar for a specified month and year and outputs a day of the month or a list of days of the month on which a specified day of the week occurs. For example, this script will output the dates for all of the Sundays in February 2006, or it can output the date of the second Sunday in February 2006.
(non-html version)

fromdate_k93: Calculate a date from a specified beginning date
Shell function to calculate a date forward or backward for a specified number of days from a given date.
(non-html version)

getch: Retrieves a single keystroke from the keyboard
Shell function to read a single keystroke from the keyboard without requiring the user to press enter. Uses the "dd" command to provide this function.
(non-html version)

isLeap: Determine if a year is a leap year
Korn shell function to determine if the current or user specified year is a leap year. Returns boolean true or false, also will optionally return the number of days in February.
(non-html version)

mkascii: Generate an array of ASCII character values
Generates an associative array of ASCII character values indexed by the ASCII character, array element value is the numeric decimal value.
(non-html version)

mklpar: Script to Add/Create an LPAR on a Power5/6/7 HMC managed system
This script function will automatically create a template LPAR on a Power5/6/7 HMC managed system. The resulting LPAR will require manual configuration of physical and/or virtual I/O adapters. Environment variables may be specified to change the default values of the LPAR template.
(non-html version)

mkrandpwd_k93: Script to generate a random password string.
As a result of recent IT security requirements imposed upon many businesses, user passwords are typically required to be unintelligible strings of random characters. The purpose of this script is to generate random strings of characters that can be used as secure passwords to comply with IT security requirements.
(non-html version)

mkviolpar: Script to add/create a VIO Server LPAR on a Power5/6/7 HMC managed system.
This script function will create a VIO Server LPAR on a Power5/6/7 HMC managed system. The resulting LPAR will require manual configuration of physical I/O adapters. Environment variables may be specified to change the default values of the LPAR template.
(non-html version)

rmlpar: Script to remove/delete an LPAR from a Power5/6/7 HMC managed system.
This script function will remove or delete an LPAR and associated profiles from a Power5/6/7 HMC managed system.
(non-html version)

mkord: Generate an array of ASCII character values
Generates an array of ASCII character values indexed by the numeric decimal value, the array element value is the ASCII character.
(non-html version)

mkuid: Generate unique UID/GID numbers
Uses the Unix user or group name to generate a unique UID/GID number for the user which can be regenerated on any other machine in a consistent and reliable basis.
(non-html version)

xyz2onedim_k93: Simulate Multi-Dimension Korn Shell Arrays
This function allows the simulation of multi-dimensional Korn shell arrays. Accepts multi-dimensional arguments and calculates the equivalent single dimension array element position.
(non-html version)

onedim2xyz_k93: Simulate Multi-Dimension Korn Shell Arrays
This function allows the simulation of multi-dimensional Korn shell arrays. Accepts single dimension array argument and calculates the equivalent multi-dimensional array element positions.
(non-html version)

psmonitor_k93: Automated process monitoring script
This function reads a list of process arguments from a process list file and checks the system process list to see if that process is running, if not it logs an error in the AIX error log. This function is intended to be run from cron once every minute of every day.
(non-html version)

isBetween: Determine if a file's date/time stamp is between two specified dates
This function will determine if the last modification date/time on a file is between two specified date/time values. The date/time values required consist of a beginning and an ending date/time, and are expected to be in the following format: YYYY-MM-DD HH:MM:SS.
(non-html version)

vscsiPriority: Assign Path Priorities to Virtualized Disks
Script to assign priorty to vscsi paths based on even/odd numbers associated with each disk and each path to disk. This script is useful in a Virtualized environment utilizing VIO servers with MPIO on the client LPAR's. This script provides the system admin with the ability to manually load balance SAN traffic from client LPAR's between dual VIO servers.
(non-html version)

cmptime_k93: Compare the system time between two or more systems
Compare the time from the system running this script to the time on each system from a list of remote systems, and generate a time synchronization report in HTML format to identify the differences. Color coded output is generated to segment the synchronized systems from the out-of-sync.
(non-html version)

email2hex_k93: Encode Email addresses into HEX to prevent spammer scraping
In an effort to make it more difficult for spammers to scrape email addresses from HTML pages, this technique of encoding the characters of an email address into their HEX code equivalent was created. These HEX codes are then imbedded into a javascript segment into the HTML page and are displayed as their ASCII characters when a browser executes the generated javascript segment.
(non-html version)

threeDigitOctet_k93:
This script accepts one or more IP address arguments on the command line and converts each octet into 3 digits, zero filling where necessary. The result is an IP address where each octet is a 3 digit number.
(non-html version)

sortarray_k93:
Sorts a Korn Shell indexed array of values by a variety of mechanisms:
  • Lexical - Alphabetic sort order
  • Numeric - Sorts by decimal digits or floating point numbers
  • Reverse - Changes sort order to decending

(non-html version)

-
Functions
-
 

shcurses
frenchMenus
CGI Parser
Display Day of Month
Days from Date
Get a single Char
Is Date Between
Is Leap Year
VIO LUN Mapping
ASCII Table
Create LPAR
ASCII Table
Create Password
Unique UID Number
Create VIO LPAR
1 Dim to Multi Dim Array
Process Monitor
Delete LPAR
Prioritize SAN Path
Multi Dim Array to 1 Dim
Compare System Time
Email Address Encoding


LPAR Leasing
Lease an AIX / i5 LPAR
Reduce your costs

www.mtxia.com

Server Leasing
Lease a Server off-site
Reduce your costs

www.mtxia.com

Data Center Automation
Business Continuity and DR
Virtualization/Consolidation

www.mtxia.com

HMC Service
Hardware Management Console
Manage Remote AIX / i5 LPARs

www.siteox.com

Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com

FREE Domain Registration
included with Web Site Hosting
Tools, Social Networking, Blog

www.siteox.com

Disaster Recovery
Small Business Oriented
Off-Site Facilities

www.mtxia.com

IBM pSeries / iSeries
Reduce your Costs
Off-Site Server Hosting

www.mtxia.com