You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+20-57
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,10 @@
1
-
arsa
2
-
====
3
-
1
+
# arsa
4
2
`arsa.py` is a script for archiving and removing old [Spacewalk](http://www.spacewalkproject.org/), [Red Hat Satellite](http://www.redhat.com/products/enterprise-linux/satellite/) or [SUSE Manager](http://www.suse.com/products/suse-manager/) actions.
5
3
6
4
The login credentials **are prompted** when running the script. If you need to automate this (*e.g. cronjobs*) you have two options:
7
5
8
-
**1.Setting two shell variables:**
6
+
## Setting two shell variables
7
+
The following shell variables are used:
9
8
***SATELLITE_LOGIN** - a username
10
9
***SATELLITE_PASSWORD** - the appropriate password
11
10
@@ -14,66 +13,30 @@ You might also want to set the HISTFILE variable (*depending on your shell*) to
A better possibility is to create a authfile with permisions **0600**. Just enter the username in the first line and the password in the second line and hand the path to the script:
20
18
```
21
19
$ ./arsa.py -n -a myauthfile
22
20
```
23
21
24
22
By default the script archives completed actions but you can also remove archived actions.
25
23
26
-
Parameters
27
-
==========
28
-
29
-
Show internal help:
30
-
```
31
-
$ ./arsa.py -h
32
-
```
33
-
34
-
Archive completed actions and remove all archived actions afterwards:
35
-
```
36
-
$ ./arsa.py -r
37
-
```
38
-
39
-
Only list which actions would be deleted (*dry-run*):
40
-
```
41
-
$ ./arsa.py -n
42
-
```
43
-
44
-
Archive and remove all actions (*completed, already archived and also failed actions*):
45
-
```
46
-
$ ./arsa.py -rf
47
-
```
48
-
49
-
Only archive and remove tasks executed automatically by Satellite (*such as updating package and hardware profiles*):
50
-
```
51
-
$ ./arsa.py -rft
52
-
```
53
-
54
-
Specify a different Spacewalk/Red Hat Satellite/SUSE Manager server than **localhost**:
55
-
```
56
-
$ ./arsa.py -s 192.168.178.100
57
-
```
58
-
59
-
Suppress status outputs:
60
-
```
61
-
$ ./arsa.py -q
62
-
```
63
-
64
-
Enable debugging outputs for troubleshooting purposes:
65
-
```
66
-
$ ./arsa.py -d
67
-
```
68
-
69
-
The parameters can also be combined - e.g. doing a dry-run of removing all completed and archived actions:
0 commit comments