Topic: Tools
Oct 13, 2020
Windows Tools
- Load Balancer (level 4, i.e. TCP, not level 7):
- md5:
- Different ways to generate an md5 checksum:
d:\sysinternals\sigcheck.exe -h c:\temp\appurl.exe
certutil.exe -hashfile c:\temp\appurl.exe md5
- SSH client (tabbed and with sftp client and XWindows server): https://mobaxterm.mobatek.net/
- Tree Size (free) download
Oct 13, 2020
Subversion
- Show log history including code changes:
svn log --diff
- Revert add’ed documents:
svn revert
- List inherited svn properties (and their value):
svn proplist --show-inherited-props -v .
- svn unencrypted password caching on Linux:
Example file: /home/hub/.subversion/auth/svn.simple/65b1be3cfa4a989d76fe9c3b14b925b2
- Checkout a specific version of file (using Tortoise):
- Right click on your source file, and select “TortoiseSVN” -> “Show log”.
- Right click on a revision in the log, and select “Save revision to…”.
- Let the old revision overwrite your current file.
- Commit the overwritten source file.
- checkout:
svn co http://nwb-svn/... --username=jc
svn --non-interactive --trust-server-cert --no-auth-cache --username fred --password bert co ...
- commit:
svn commit --username jc -m"My change" scripts/compcob
Note: We don’t seem to be using svn propset svn:executable ON compcob
, which means executable permission is not preserved. See here
- Resolving conflicts
Note: Using Tortoise “Resolve” does not commit anything. It should be enough to remove the “conflict” icon in Windows.
- Creating a branch:
svn copy http://nwb-svn/mf/old/estest/trunk http://nwb-svn/mf/old/estest/branches/XXXXXXXXX -m"New branch"
Oct 13, 2020
Grafana
- Dashboards
- Granfana URL to jump to a specific time range:
Haven’t tried this yet, but I think it will work: https://grafana.com/docs/grafana/latest/reference/timerange/
- Annotations:
- Loki
- promtail
- Grafana vs MS OpsBridge
- Grafana / Influxdb / Telegraf - capturing windows performance counters
- Use Prometheus (and PushGateway) to record process “top” snapshots
- Introduction to Prometheus
- Getting started with Prometheus
- PushGateway
- Querying my Pushgateway manually:
http://nwb-tpccrhes1:9091/metrics
:
cpu_usage{instance="nwb-tpccrhes1",job="top",pid="1",process="/usr/lib/systemd/systemd_--system_--deserialize_22"} 0
cpu_usage{instance="nwb-tpccrhes1",job="top",pid="10",process="[rcu_sched]"} 0
cpu_usage{instance="nwb-tpccrhes1",job="top",pid="108",process="[kthrotld]"} 0
cpu_usage{instance="nwb-tpccrhes1",job="top",pid="1083",process="[kdmflush]"} 0
- Prometheus vs InfluxDB:
ME: Both are time-series databases. They have different SQL-like query languages; Prometheus’s language is briefer than InfluxDB; for example there are functions such as “sum”, “avg” and “topk”. The main difference is that Prometheus ‘scrapes targets’ to retrieve the metrics, whereas InfluxDB expects the metrics to be ‘pushed’ to it, for example using Telegraf.
- Windows download
- Influxdb: