Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

Scheduled Tasks

Windows Jobs

A job could be running at a certain time that causes high I/O, CPU, RAM or bandwidth bottlenecks. It’s worth at least looking if you get an error only at certain times, consistently:

C:\>schtasks /query /fo TABLE | findstr /R "AM PM"

Crontab (Non LDAP)

Linux, if you do not use ldap. You check a single user using

sudo crontab -u someuser -l

Or you can check all users using a one liner like this:

for user in $(cut -f1 -d: /etc/passwd); do echo $user; sudo crontab -u $user -l 2>/dev/null | grep -v '^#'; done

Crontab (LDAP)

Linux, if you do use ldap (sorry no examples):

for user in $(getent passwd | awk -F : '{print $1}');); do echo $user; sudo crontab -u $user -l 2>/dev/null | grep -v '^#'; done