Solved

AIX IBM equivalent to "scheduled tasks"

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
digital ocean web console access ? does it use port 22 4 115
postfix start error! 9 86
Linux kernel panic ext3-fs error 14 77
simple bash script needed to unpack tar.gz 4 63
Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses

752 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