Solved

AIX IBM equivalent to "scheduled tasks"

Posted on 2014-01-08
5
1,082 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

910 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now