Solved

AIX IBM equivalent to "scheduled tasks"

Posted on 2014-01-08
5
1,136 Views
Last Modified: 2014-01-13
does aix ibm have an equivalent to windows servers/OS "scheduled tasks", and if so how can you get a report of all current scheduled tasks for an AIX IBM server?
0
Comment
Question by:pma111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39765233
That's the cron daemon and its configuration tool "crontab". Each user can have their own crontab file in /var/spool/cron/crontabs/username

Run

crontab -l

to get a list of all the scheduled tasks of your userid and run (as root)

crontab -l username

to get a list of that user's scheduled tasks.

See "man crontab" to learn about the format of a crontab file.

Basically it's this (quoting a non-AIX manpage):

Each line in the cron table follows the following format:

* * * * *  Command_to_execute
- – – – -
| | | | |
| | | | +—– Day of week (0–6) (Sunday=0) or Sun, Mon, Tue,…
| | | +———- Month (1–12) or Jan, Feb,…
| | +————-— Day of month (1–31)
| +——————– Hour (0–23)
+————————- Minute (0–59)

There are several ways of specifying multiple values in a field:

• The asterisk (*) operator specifies all possible values for a field. e.g. every hour or every day.
• The comma (,) operator specifies a list of values, for example: "1,3,4,7,8"
• The dash (-) operator specifies a range of values, for example: "1-6", which is equivalent to "1,2,3,4,5,6"
If you're root you can run something like this to get a full list:

for file in /var/spool/cron/crontabs/*; do awk 'BEGIN {print "\n" FILENAME} !/^#/ {print $0}' $file; done

Open in new window

Note: Please don't edit a crontab file by hand. Use "crontab -e" to modify your crontab or (as root) "crontab -e username" to modify another user's crontab.

wmp
0
 
LVL 3

Author Comment

by:pma111
ID: 39767524
wmp, do you have any healthcheck scripts to identify issues with AIX IBM installations, and what kind of parameters do your scripts/software check for?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39767888
Isn't the latter a completely different question?

Anyway, we're running Nagios for monitoring since long so we don't have any elaborated scripts in place anymore.

We use to monitor filesystem filling level (df), system load (uptime), paging space consumption (lsps), paging activity (vmstat), physical CPU consumed by LPAR (lparstat) or non-LPAR (vmstat), network activity (entstat/netstat), MPIO path status (lspath for native MPIO, pcmpath for the sddpcm drivers), NFS mount status (mount), error log entries (errpt, ODM errnotify) etc. etc.

Besides that there is application specific monitoring (processes, filesystems, connectivity, responsiveness, logs ...)

For real-time monitoring try "topas" and "nmon".

You could search here at EE for e.g. "AIX monitoring" or similar and you'll find a lot of info (my contributions included) and also several scripts.

Did my little cron tutorial above help?
0
 
LVL 3

Author Comment

by:pma111
ID: 39767896
yes it was! :(

The tutorial was useful.
0
 
LVL 3

Author Comment

by:pma111
ID: 39776259
Would be great if you could point me in the way of those scripts?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ubuntu not booting - How get past GRUB? 3 76
Linux Hosting 16 75
Expiration and Locking of Unix/Solaris OS Accounts 7 63
regular expression help for sed command 5 38
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question