Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

AIX IBM equivalent to "scheduled tasks"

Posted on 2014-01-08
5
Medium Priority
?
1,277 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 2000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

#Citrix #POC #XenDesktop #vCenter #VMware #ESX
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.
Suggested Courses

730 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