86%
30.11.2025
","stage","app","gateway","eth0-ip","eth0-mask","eth1-mac","eth1-ip","eth1-mask" ]
19 system_dict = {}
20
21 f = open(cblr_systems, "r")
22 for line in f:
23 if line.startswith("#"):
24 continue
25 system
86%
30.11.2025
Connection
01 #!/usr/bin/expect
02
03 set host [lindex $argv 0]
04 set timeout 5
05 spawn /usr/bin/ssh aefrisch@$host
06 expect "(yes/no)? " {
07 send "yes\r"
08 }
09 expect "password:"
10 send
86%
30.11.2025
cache_credentials = True
19 ldap_id_use_start_tls = False
20 debug_level = 0
21 enumerate = True
22 krb5_kpasswd = tiffy.tuxgeek.de
23 ldap_schema = rfc2307bis
24 ldap_search_base = dc=tuxgeek,dc=de
25
86%
30.11.2025
end (Figure 2).
Listing 3
update-dns
01 #!/usr/bin/perl
02
03 use DBI;
04
05 $db_user = "powerdns";
06 $db_passwd = "powerpass";
07
08 $hostname = $ARGV[0] . ".my.org";
09 $ip = $ARGV[1
86%
31.10.2025
% of 454.22GB Processes: 168\r
60 Memory usage: 22% Users logged in: 1\r
61 Swap usage: 0% IP address for eth0: 192.168.1.250\r
62 \r
63 Graph this data
86%
30.11.2025
clear
03 while true
04 do
05 echo "New record"
06 maxrecord=`ls -1 *.dat | sort | tail -1 | cut -d. -f 1`
07 newrecord=$(echo $maxrecord + 1 | bc )
08 width=`echo $newrecord | wc -c`
09
10 ...
11
12
85%
26.03.2025
to a file:
{
"accept": {
"server_time": {
"seconds": 1716370731,
"nanoseconds": 137298080,
"iso8601": "20240522093851Z",
"localtime": "May 22 09
85%
30.11.2025
Cluster Generation: 748
08 Membership state: Cluster-Member
09 Nodes: 2
10 Expected votes: 1
11 Total votes: 2
12 Node votes: 1
13 Quorum: 1
14 Active subsystems: 8
15 Flags: 2node
16 Ports Bound: 0
17 Node
85%
30.11.2025
= DeltaCloud.new(USER, PASSWORD, URL)
05 summary = Hash.new(0)
06 state = client.instances.inject({}) do |state, inst|
07 state[inst.id] = inst.state
08 summary[inst.state] += 1
09 state
10 end
11
84%
30.11.2025
Throttling Script
01 #!/bin/bash
02 # Our predefined variables
03 DEV=eth0
04 DEVING=eth1
05 DIR=src
06 PKT=920
07 BAND=1Gbit
08 # Reset values from previous script runs
09 tc qdisc del dev $DEV root
10