public:scripts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:scripts [2017/09/07 07:59] – Roland Hansmann | public:scripts [2018/02/06 11:10] (current) – [accounts.sh] Roland Hansmann | ||
|---|---|---|---|
| Line 1283: | Line 1283: | ||
| # edit | # edit | ||
| - | vi $ACCOUNTFILE | + | $VIBIN |
| # encrypt new file and overwrite existing one | # encrypt new file and overwrite existing one | ||
| Line 1582: | Line 1582: | ||
| ifconfig $MON down | ifconfig $MON down | ||
| </ | </ | ||
| + | ==== spacewalk-package-installed ==== | ||
| + | This script shows which servers have installed a specific package | ||
| + | <file bash spacewalk-package-installed> | ||
| + | #!/bin/bash | ||
| + | PACKAGE=$1 | ||
| + | VERSION=$2 | ||
| + | RELEASE=$3 | ||
| + | [[ $@ -ne 3 ]] && { echo " | ||
| + | |||
| + | for id in `/ | ||
| + | | ||
| + | | ||
| + | | ||
| + | |cut -f1 -d, |grep -v ^system_id` | ||
| + | do | ||
| + | / | ||
| + | | ||
| + | |cut -f3 -d, |tail -1 | ||
| + | done | ||
| + | </ | ||
| ===== C ===== | ===== C ===== | ||
public/scripts.1504771147.txt.gz · Last modified: by Roland Hansmann
