Solved

AIX IBM equivalent to "scheduled tasks"

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

11 Experts available now in Live!

Get 1:1 Help Now