sar usage

I like to use the linux utility sar (system activity reporter (?)) I gives a fast and quite complete overview over the performance of a linux system. SAR has a lot of possibilitys. I just highlight a few of them to remember how the syntax is 🙂 CPU information of today oracle@lqas4342:~$sar Linux 4.18.0-425.13.1.el8_7.x86_64 (lqas4342.mod.nl) […]

Continue Reading

ORAENV_ASK

Just a reminder I keep forgetting what the environment variable is called: ORA_ASKENV ORA_ENVASK ORAASK_ENV ORAENV_ASK This is _the_ variable: ORAENV_ASK=NO ORAENV_ASK=YES Happy scripting

Continue Reading

tcpdump

Just a write up of the filters I sometimes use/need. (work in progress…) Filtering _out_ ssh: tcpdump “port ! ssh” Just seeing ICMP packets: tcpdump “icmp” Filtering on port _and_ host: tcpdump “port ssh && host host-name”

Continue Reading

ansible reboot after updating packages

When installing security/kernel packages the system must be rebooted. It would be a bit silly to reboot always. So..without further ado…you can solve this for example with the following playbook: [martijn@fedora basis]$ cat update_all.yaml — – name: Update alle hosts hosts: all become: true tasks: – name: install dnf tools dnf: state: present name: dnf-utils […]

Continue Reading

Create bridge device on my KVM host

I installed KVM on my debian host. Since I have 8 cores and 32GB RAM I have room to play around 🙂 And since I have some experience with KVM it was the obvious choice. Installing KVM : easy … apt is your friend Creating an VM : easy … Maybe I’ll once write it […]

Continue Reading

vi beep

I’m was going crazy because off the annoying bell sound vi(m) makes all the time. To solve it I put “set belloff=all” in my .vimrc martijn@radijs:~$ cat .vimrc set belloff=all martijn@radijs:~$

Continue Reading

DIG

Whenever I need to do something concerning DNS resolving I resort to dig. Some examples: Getting the IP adres for maboc.nl: martijnmbos@penguin:~$ dig maboc.nl ; DiG 9.11.5-P4-5.1+deb10u3-Debian maboc.nl ;; global options: +cmd ;; Got answer: ;; ->>HEADERHEADERHEADERHEADER

Continue Reading