Autosys for Beginners

History

  • CA Workload Automation AE (Autosys Edition) was formerly known as Unicenter Autosys Job Management.
  • Autosys was first developed by William Arntz in early 90s and marketed it by creating his own firm called AutoSystems Corp.
  • It later got acquired by Platinum Technology Inc. in 1995 before finally being bought by CA Technologies in 1999.
  • First version was released in 1992.
  • Current version (11.3) was released in 2010.
  • Only minor versions have been released in last 5 years, with current one being 11.3.5.

Introduction

  • Autosys Workload Automation tool is supplied by CA Technologies and the current version is r11.3
  • Autosys is an automated job control system for scheduling, monitoring, and reporting.
  • The Autosys r11 architecture is a 3-tier architecture consisting of Client utilities, Application Server(s) and/or Scheduler Server(s) and Database(s)
  • Autosys jobs resides only on Autosys configured server
  • An Autosys job is any single command, executable, script, or Windows batch file.
  • There are 3 types of jobs: Command, Box and File Watcher.

Basic Terms

  • Job States and Status: AC – ACTIVATED, FA – FAILURE, IN – INACTIVE, OH – ON_HOLD, OI – ON_ICE, QU – QUE_WAIT, RE – RESTART, RU – RUNNING, ST – STARTING, SU – SUCCESS
    TE – TERMINATED
  • Autosys determines when to start a job based on the conditions (Parameters/arguments) defined while creating the job. The conditions can be any or either of the below: Date, Day, Time, Success of another job, Box job, etc.
  • Insert_job: Name of the job that gets inserted into Autosys Database (command or box).
  • box_name: Box job name (can contain many box jobs or command jobs).
  • commands: This can be a command or an executable script
  • machine: Server, where the job needs to run
  • owner: Owner of the job(Application ID)
  • date_conditions: 1(yes)
  • days_of_week: Days of the week the jobs needs to run.
  • start_time: Time at which the job should start
  • run_window: Window when the job should run continuously (helpful for file watchers).
  • Conditions: Any dependencies, pre-conditions etc.
  • description: useful for documentation/purpose of job
  • n_retrys: no of retrys on a failure.
  • term_run_job: the job will terminate if it runs for specified time.
  • std_out_file: Log file for the job
  • std_err_file: Error file for the job
  • min_run_alarm: if the job terminates/completes with in the timeframe it will generate an alarm
  • max_run_alarm: if the job runs for more than the specified time, it will generate an alarm
  • alarm_if_fail: generates an alarm if the job fails
  • profile: the file where you can keep all your variables (variable names)

Basic Commands

  • autorep -J
  • autorep -J –q
  • sendevent –E STARTJOB -J
    • -E has these arguments (STARTJOB, KILLJOB, FORCE_STARTJOB, JOB_ON_ICE, JOB_ON_HOLD, CHANGE_STATUS)
  • Jobs can be created and jilled in 2 ways:
    • GUI(outside the scope of this presentation) and
    • Command line.
  • Inserting a job into the JIL database using JIL command:
    • jil < .jil

Architecture

Autosys

  • Step 1: The Event Processor scans the Event Server for the next event to process. If no event is ready, the Event Processor will again scan in 5 seconds.
  • Step 2: The Event Processor reads the next event that is ready from the Event Server. The job definition and attributes are retrieved from the Event Server, including the command and the pointer to the profile file to be used for the job
  • Step 3: The Event Processor processes the event and attempts to establish a connection with the Remote Agent on the client machine. It passes the job attributes to the client machine. The Event Processor sends a CHANGE_STATUS event marking in the Event Server stating that the job is in STARTING state
  • Step 4: The Remote Agent is invoked using the User ID and Password passed from the Event Processor.
  • Step 5: The Remote Agent receives the job parameters and sends an acknowledgement to the Event Processor
  • Step 6: The Remote Agent Starts a process and executes the command in the job definition.
  • Step 7: The Remote Agent issues a CHANGE_STATUS event marking to the Event Server stating that the job is in RUNNING state
  • Step 8: The client job process runs to completion and then returns an exit code to the Remote Agent before quitting.
  • Step 9: The Remote Agent sends the Event Server a CHANGE_STATUS event corresponding to the completion(Successful/Failure) status of the job.

Need’s and Uses

  • To schedule daily, nightly, weekly jobs.
  • Schedule data load jobs.
  • To have better control of running the scripts and scheduling tasks. Managing and monitoring of tasks.
  • Remove the human entity and automate tasks to make them more efficient.
  • Nice way to monitor when and how the jobs ran.
  • Provides better management of profiles for running redundant tasks.
  • Helps distribute the control of execution and help maintain the tasks from a central place.

Sample JIL file:


insert_job: sample_box.TestBoxJob   job_type: BOX
owner: testID
permission: gx
date_conditions: 0
description: "sample test box job"
alarm_if_fail: 1
application: Testing Application

insert_job: sample_cmd.TestCmdJob   job_type: CMD
box_name: sample_box.TestBoxJob
command: ps -ef|grep -i testID
machine: testMachineIP
owner: testID
permission: gx
date_conditions: 0
description: "Sample command Job"
std_out_file: /tmp/log/$AUTO_JOB_NAME.out
std_err_file: /tmp/log/$AUTO_JOB_NAME.err
alarm_if_fail: 1
application: Testing Application

References used:

Nexus7 vs New Nexus7 vs iPad mini

Feature Nexus 7 New Nexus7 iPad mini
Dimensions 120 x 198.5 x 10.45 mm 114 x 200 x 8.65 mm 134.7 x 200 x 7.2 mm
Weight 340g 290 g 308 g
Display Screen 7 inch 7.02 inch 7.9 inch
Display Resolution 1280×800 (216ppi) 1920×1200 HD display (323 ppi) 1024 x 768 display (163ppi)
Front Camera 1.2MP front facing 1.2MP front facing 1.2MP front facing
Back Camera NA 5MP rear facing, auto focus 5MP rear facing, auto focus
Bluetooth Bluetooth 3.0 Bluetooth 4.0 Bluetooth 4.0
Audio Stereo speakersSurround sound, powered by Fraunhofer¹

3.5mm audio connector

Built-in
Video 720p 1080p HD Video 1080p HD Video
Memory 16GB, 32GB 16GB, 32GB 16GB, 32GB, 64GB
Connectivity Bluetooth 4.0, dual-band Wi-Fi, 4G LTE, NFC Bluetooth 4.0, dual-band Wi-Fi, 4G LTE
RAM 1 GB RAM 2 GB RAM 512 MB
Processor NVIDIA® Tegra® 3 quad-core processor CPU: Qualcomm Snapdragon S4 Pro, 1.5GHzGPU: Adreno 320, 400MHz 1GHz Dual Core A5 Processor
Battery

4,325 mAh battery

Up to 8 hours active use

3950 mAh,Up to 9 hours active use 16.3-watt-hour,Up to 10 hours active use
Wireless Charging No Yes No
Ports microUSB, 3.5mm audio microUSB and HDMI,3.5mm audio Lightning connector, 3.5-mm audio
Accelerometer Yes Yes Yes
Microphone Yes Yes Yes
Gyroscope Yes Yes Yes
GPS  Yes Yes Yes
Compass Yes Yes Yes
Price $199 (16GB Wi-Fi), $249 (32GB Wi-Fi), $299 (32GB 4G LTE) $229 (16GB Wi-Fi), $269 (32GB Wi-Fi), $349 (32GB 4G LTE)

$329 (16GB Wi-Fi), $429 (32GB Wi-Fi), $529 (64GB Wi-Fi), $459 (16GB 4G LTE), $559 (32GB 4G LTE), $659 (64GB 4G LTE)

Winner NEW NEXUS 7

iPhone 5 vs Google Galaxy nexus

Device iPhone 5 (16GB)

(No Contract GSM)

Google Galaxy Nexus (16GB)

(No Contract GSM)

Winner
Image
OS iOS 6 Android Jelly Bean (4.1) Both are  good
Dimensions (inches) 4.87 x 2.31 x 0.30 5.33 x 2.67 x 0.35 iPhone
Dimensions (mm) 123.8 x 58.6 x 7.6 135.5 x 67.94 x 8.94 iPhone
Weight 112 g 135 g iPhone
Screen Resolution 1136 x 640 1280 x 720 Nexus
Battery ~ 1500mAH 1750mAH Nexus
CPU ~ 1GHz processor 1.2 GHz dual-core processor Nexus
Screen LED Notifications None 3 color LED Nexus
RAM 1GB 1GB Both
Camera 8 MP 5 MP iPhone
Front Camera 1.2 MP 1.3 MP Both
HD Video Recording 1080p 1080p Both
Connectivity Prorietary Micro USB NA
SIM Card Standard Mini-SIM NA
USB Charging USB Charging USB Charging NA
Bluetooth 4.0 3.0 iPhone
Mobile Hotspot Yes Nexus
Talk Time 8 hours ~6-7 hours iPhone
Stand-by-Time
  • 225 hours
~200 hours iPhone
Browsing Time
  • 8 hours
4-6 hours iPhone
Audio playback
  • 40 hours
~20 hours iPhone
Special Features
  • Accelerometer
    Gyroscope
  • Siri
  • LTE
  • Passbook
Buttonless
NFC
Accelerometer
Gyroscope
Compass
Proximity/Light sensor
Barometer

Google Wallet

Google Now

Face Unlock

Google Maps

Nexus
Browser supports HTML HTML & Flash Nexus
Networks
  • GSM (850, 900, 1900, 2100 MHz); GSM/EDGE (850, 900, 1800, 1900 MHz); LTE (Bands 4 and 17)
GSM/EDGE/GPRS (850, 900, 1800, 1900 MHz)
3G (850, 900, 1700, 1900, 2100 MHz)
HSPA+ 21
iPhone

(Because of LTE)

Price $650 $350 Nexus

Looking at the overall comparison, iPhone 5 wins many points, but it still feels as if Nexus is the winner specially if you consider the Price factor. Another BIG positive with nexus is Google Maps and Voice Search.

iPhone Maps are really bad and nowhere close to Google Maps, and definitely not going to come even closer to competition for coming year or two.

Browsing Time on iPhone 5 is definitely better than Nexus, but Browsing experience on Nexus was better than iPhone 5. Browsing on Nexus was faster and crispier compared to iPhone 5.

Google’s voice search is also better compared to iPhone’s SIRI.

Being an owner of Nexus (with Jelly Bean) and iPhone 5, I like my Google Nexus better than iPhone 5.

Embedding/importing a custom font in css and applying to html

Embedding/importing a custom font in css and applying to html

Declare the following block at the top of CSS.

@font-face {
font-family: ‘CustomNatrajBold’;
src: url(‘all_fonts/CustomNatrajBold.otf’) format(‘opentype’),
url(‘all_fonts/CustomNatrajBold.woff’) format(‘woff’),
url(‘all_fonts/CustomNatrajBold.ttf’) format(‘truetype’);
src: url(‘all_fonts/CustomNatrajBold.eot’);
font-weight: normal;
font-style: normal;
}

once the above declaration for embedding/importing the custom fonts is done, we are free to use them in our CSS files as below.

eg.
h2{
font: normal 20px “CustomNatrajBold”, Times, serif;
}

Now if we have the following tag in HTML then the custom font should show.

<h2>This Text should be in ‘CustomNatrajBold’ font type.</h2>

Hello World in Core Java

Hello World in Core Java.

public class HelloWorld {

public static void main(String[] args)
{
System.out.println(“Hello World!”);
}
}

 

Save the above code in a file with the name HelloWorld.java. Make sure that the file name must match the name of the class.
Compiling the program: “javac HelloWorld.java”  is the command that need to be executed to compile the source code.
After the program is compiled, it will generate a byte code class file called “HelloWorld.class”.

Executing the Class File: “java HelloWorld” is the command that will execute the byte code class file and do the actions as coded.

Here the action performed will be to print the String “Hello World!”