Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
sosreport /
sos /
plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2021-12-04 13:17
__init__.py
71.25
KB
-rw-r--r--
2020-03-24 16:33
abrt.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
acpid.py
900
B
-rw-r--r--
2020-03-24 16:33
activemq.py
1.68
KB
-rw-r--r--
2020-03-24 16:33
alternatives.py
1.21
KB
-rw-r--r--
2020-03-24 16:33
anaconda.py
1.36
KB
-rw-r--r--
2020-03-24 16:33
anacron.py
811
B
-rw-r--r--
2020-03-24 16:33
ansible.py
834
B
-rw-r--r--
2020-03-24 16:33
apache.py
3.6
KB
-rw-r--r--
2020-03-24 16:33
apparmor.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
apport.py
1.31
KB
-rw-r--r--
2020-03-24 16:33
apt.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
ata.py
1.14
KB
-rw-r--r--
2020-03-24 16:33
atomichost.py
1.26
KB
-rw-r--r--
2020-03-24 16:33
auditd.py
1.08
KB
-rw-r--r--
2020-03-24 16:33
autofs.py
2.1
KB
-rw-r--r--
2020-03-24 16:33
azure.py
2.29
KB
-rw-r--r--
2020-03-24 16:33
block.py
2.15
KB
-rw-r--r--
2020-03-24 16:33
boom.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
boot.py
1.48
KB
-rw-r--r--
2020-03-24 16:33
btrfs.py
773
B
-rw-r--r--
2020-03-24 16:33
buildah.py
2.03
KB
-rw-r--r--
2020-03-24 16:33
candlepin.py
4.25
KB
-rw-r--r--
2020-03-24 16:33
canonical_livepatch.py
946
B
-rw-r--r--
2020-03-24 16:33
ceph.py
3.61
KB
-rw-r--r--
2020-03-24 16:33
ceph_ansible.py
937
B
-rw-r--r--
2020-03-24 16:33
cgroups.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
chrony.py
1.45
KB
-rw-r--r--
2020-03-24 16:33
cifs.py
1012
B
-rw-r--r--
2020-03-24 16:33
clear_containers.py
2.59
KB
-rw-r--r--
2020-03-24 16:33
cloud_init.py
943
B
-rw-r--r--
2020-03-24 16:33
cman.py
1.89
KB
-rw-r--r--
2020-03-24 16:33
cobbler.py
1.12
KB
-rw-r--r--
2020-03-24 16:33
cockpit.py
926
B
-rw-r--r--
2020-03-24 16:33
collectd.py
2.02
KB
-rw-r--r--
2020-03-24 16:33
composer.py
1.18
KB
-rw-r--r--
2020-03-24 16:33
conntrackd.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
console.py
859
B
-rw-r--r--
2020-03-24 16:33
container_log.py
1.09
KB
-rw-r--r--
2020-03-24 16:33
convert2rhel.py
787
B
-rw-r--r--
2020-03-24 16:33
corosync.py
2.26
KB
-rw-r--r--
2020-03-24 16:33
crio.py
3.01
KB
-rw-r--r--
2020-03-24 16:33
cron.py
1022
B
-rw-r--r--
2020-03-24 16:33
crypto.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
cs.py
4.36
KB
-rw-r--r--
2020-03-24 16:33
ctdb.py
1.42
KB
-rw-r--r--
2020-03-24 16:33
cups.py
1.23
KB
-rw-r--r--
2020-03-24 16:33
date.py
813
B
-rw-r--r--
2020-03-24 16:33
dbus.py
906
B
-rw-r--r--
2020-03-24 16:33
devicemapper.py
937
B
-rw-r--r--
2020-03-24 16:33
devices.py
764
B
-rw-r--r--
2020-03-24 16:33
dhcp.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
distupgrade.py
1.51
KB
-rw-r--r--
2020-03-24 16:33
dlm.py
1.49
KB
-rw-r--r--
2020-03-24 16:33
dmraid.py
1.31
KB
-rw-r--r--
2020-03-24 16:33
dnf.py
2.69
KB
-rw-r--r--
2020-03-24 16:33
docker.py
4.86
KB
-rw-r--r--
2020-03-24 16:33
docker_distribution.py
1.3
KB
-rw-r--r--
2020-03-24 16:33
dovecot.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
dpkg.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
dracut.py
887
B
-rw-r--r--
2020-03-24 16:33
ds.py
2.48
KB
-rw-r--r--
2020-03-24 16:33
ebpf.py
3.13
KB
-rw-r--r--
2020-03-24 16:33
elastic.py
2.26
KB
-rw-r--r--
2020-03-24 16:33
etcd.py
2.42
KB
-rw-r--r--
2020-03-24 16:33
fcoe.py
1006
B
-rw-r--r--
2020-03-24 16:33
fibrechannel.py
1.1
KB
-rw-r--r--
2020-03-24 16:33
filesys.py
2.52
KB
-rw-r--r--
2020-03-24 16:33
firewalld.py
2.01
KB
-rw-r--r--
2020-03-24 16:33
foreman.py
12.77
KB
-rw-r--r--
2020-03-24 16:33
frr.py
665
B
-rw-r--r--
2020-03-24 16:33
fwupd.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
gdm.py
822
B
-rw-r--r--
2020-03-24 16:33
gfs2.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
gluster.py
4.67
KB
-rw-r--r--
2020-03-24 16:33
gluster_block.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
gnocchi.py
3.46
KB
-rw-r--r--
2020-03-24 16:33
grafana.py
1.5
KB
-rw-r--r--
2020-03-24 16:33
grub.py
1022
B
-rw-r--r--
2020-03-24 16:33
grub2.py
2.58
KB
-rw-r--r--
2020-03-24 16:33
gssproxy.py
857
B
-rw-r--r--
2020-03-24 16:33
haproxy.py
2.17
KB
-rw-r--r--
2020-03-24 16:33
hardware.py
1.01
KB
-rw-r--r--
2021-04-22 18:49
host.py
1.07
KB
-rw-r--r--
2020-03-24 16:33
hpasm.py
932
B
-rw-r--r--
2020-03-24 16:33
hts.py
688
B
-rw-r--r--
2020-03-24 16:33
i18n.py
793
B
-rw-r--r--
2020-03-24 16:33
infiniband.py
2.57
KB
-rw-r--r--
2020-03-24 16:33
insights.py
1.39
KB
-rw-r--r--
2020-03-24 16:33
ipa.py
6.78
KB
-rw-r--r--
2020-03-24 16:33
ipmitool.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
iprconfig.py
4.47
KB
-rw-r--r--
2020-03-24 16:33
ipvs.py
1.03
KB
-rw-r--r--
2020-03-24 16:33
iscsi.py
1.4
KB
-rw-r--r--
2020-03-24 16:33
iscsitarget.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
jars.py
5.03
KB
-rw-r--r--
2020-03-24 16:33
java.py
1007
B
-rw-r--r--
2020-03-24 16:33
juju.py
2.35
KB
-rw-r--r--
2020-03-24 16:33
kata_containers.py
1.8
KB
-rw-r--r--
2020-03-24 16:33
kdump.py
2.66
KB
-rw-r--r--
2020-03-24 16:33
keepalived.py
833
B
-rw-r--r--
2020-03-24 16:33
kernel.py
4.17
KB
-rw-r--r--
2020-03-24 16:33
kernelrt.py
1.41
KB
-rw-r--r--
2020-03-24 16:33
keyutils.py
882
B
-rw-r--r--
2020-03-24 16:33
kimchi.py
1.02
KB
-rw-r--r--
2020-03-24 16:33
kpatch.py
1.02
KB
-rw-r--r--
2020-03-24 16:33
krb5.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
kubernetes.py
7.13
KB
-rw-r--r--
2020-03-24 16:33
kvm.py
998
B
-rw-r--r--
2021-04-22 18:49
landscape.py
3.28
KB
-rw-r--r--
2021-04-22 18:49
ldap.py
3.11
KB
-rw-r--r--
2020-03-24 16:33
leapp.py
1006
B
-rw-r--r--
2020-03-24 16:33
libraries.py
1.5
KB
-rw-r--r--
2020-03-24 16:33
libreswan.py
2.23
KB
-rw-r--r--
2020-03-24 16:33
libvirt.py
2.71
KB
-rw-r--r--
2020-03-24 16:33
lightdm.py
1.2
KB
-rw-r--r--
2020-03-24 16:33
lilo.py
704
B
-rw-r--r--
2020-03-24 16:33
login.py
1.03
KB
-rw-r--r--
2020-03-24 16:33
logrotate.py
1.09
KB
-rw-r--r--
2020-03-24 16:33
logs.py
3.21
KB
-rw-r--r--
2020-03-24 16:33
lstopo.py
1.22
KB
-rw-r--r--
2020-03-24 16:33
lustre.py
1.9
KB
-rw-r--r--
2020-03-24 16:33
lvm2.py
3.02
KB
-rw-r--r--
2020-03-24 16:33
lxd.py
1.3
KB
-rw-r--r--
2020-03-24 16:33
maas.py
4.01
KB
-rw-r--r--
2021-04-22 18:49
manageiq.py
2.84
KB
-rw-r--r--
2020-03-24 16:33
md.py
870
B
-rw-r--r--
2020-03-24 16:33
megacli.py
1.01
KB
-rw-r--r--
2020-03-24 16:33
memcached.py
1.16
KB
-rw-r--r--
2020-03-24 16:33
memory.py
1.35
KB
-rw-r--r--
2020-03-24 16:33
mongodb.py
2.02
KB
-rw-r--r--
2020-03-24 16:33
monit.py
2.39
KB
-rw-r--r--
2020-03-24 16:33
mpt.py
767
B
-rw-r--r--
2020-03-24 16:33
mssql.py
3.19
KB
-rw-r--r--
2020-03-24 16:33
multipath.py
936
B
-rw-r--r--
2020-03-24 16:33
mysql.py
3.17
KB
-rw-r--r--
2020-03-24 16:33
named.py
2.56
KB
-rw-r--r--
2020-03-24 16:33
navicli.py
3.33
KB
-rw-r--r--
2020-03-24 16:33
networking.py
12.92
KB
-rw-r--r--
2021-04-22 18:49
networkmanager.py
4.71
KB
-rw-r--r--
2020-03-24 16:33
nfs.py
943
B
-rw-r--r--
2020-03-24 16:33
nfsganesha.py
1.25
KB
-rw-r--r--
2020-03-24 16:33
nfsserver.py
1.47
KB
-rw-r--r--
2020-03-24 16:33
nginx.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
nis.py
847
B
-rw-r--r--
2020-03-24 16:33
nodejs.py
1.15
KB
-rw-r--r--
2020-03-24 16:33
npm.py
3.86
KB
-rw-r--r--
2020-03-24 16:33
nscd.py
1000
B
-rw-r--r--
2020-03-24 16:33
nss.py
919
B
-rw-r--r--
2020-03-24 16:33
ntb.py
926
B
-rw-r--r--
2020-03-24 16:33
ntp.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
numa.py
1.41
KB
-rw-r--r--
2020-03-24 16:33
nvidia.py
1.1
KB
-rw-r--r--
2020-03-24 16:33
nvme.py
1.53
KB
-rw-r--r--
2020-03-24 16:33
oddjob.py
859
B
-rw-r--r--
2020-03-24 16:33
omnipath_client.py
1.77
KB
-rw-r--r--
2020-03-24 16:33
omnipath_manager.py
2.42
KB
-rw-r--r--
2020-03-24 16:33
omsa.py
1.76
KB
-rw-r--r--
2020-03-24 16:33
opencl.py
726
B
-rw-r--r--
2020-03-24 16:33
opendaylight.py
1.37
KB
-rw-r--r--
2020-03-24 16:33
opengl.py
728
B
-rw-r--r--
2020-03-24 16:33
openhpi.py
869
B
-rw-r--r--
2020-03-24 16:33
openshift.py
6.5
KB
-rw-r--r--
2020-03-24 16:33
openssl.py
1.54
KB
-rw-r--r--
2020-03-24 16:33
openstack_ansible.py
1.36
KB
-rw-r--r--
2020-03-24 16:33
openstack_aodh.py
2.84
KB
-rw-r--r--
2020-03-24 16:33
openstack_ceilometer.py
3.04
KB
-rw-r--r--
2020-03-24 16:33
openstack_cinder.py
4.8
KB
-rw-r--r--
2020-03-24 16:33
openstack_glance.py
4.16
KB
-rw-r--r--
2020-03-24 16:33
openstack_heat.py
4.8
KB
-rw-r--r--
2020-03-24 16:33
openstack_horizon.py
3.52
KB
-rw-r--r--
2020-03-24 16:33
openstack_instack.py
5.7
KB
-rw-r--r--
2020-03-24 16:33
openstack_ironic.py
6.23
KB
-rw-r--r--
2020-03-24 16:33
openstack_keystone.py
4.42
KB
-rw-r--r--
2020-03-24 16:33
openstack_manila.py
3.25
KB
-rw-r--r--
2020-03-24 16:33
openstack_neutron.py
4.56
KB
-rw-r--r--
2020-03-24 16:33
openstack_nova.py
8.57
KB
-rw-r--r--
2020-03-24 16:33
openstack_novajoin.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
openstack_octavia.py
3.5
KB
-rw-r--r--
2020-03-24 16:33
openstack_placement.py
3.75
KB
-rw-r--r--
2020-03-24 16:33
openstack_sahara.py
2.7
KB
-rw-r--r--
2020-03-24 16:33
openstack_swift.py
2.73
KB
-rw-r--r--
2020-03-24 16:33
openstack_tripleo.py
1.73
KB
-rw-r--r--
2020-03-24 16:33
openstack_trove.py
2.29
KB
-rw-r--r--
2020-03-24 16:33
openvswitch.py
6.78
KB
-rw-r--r--
2020-03-24 16:33
origin.py
9.24
KB
-rw-r--r--
2020-03-24 16:33
os_net_config.py
771
B
-rw-r--r--
2020-03-24 16:33
ovirt.py
7.98
KB
-rw-r--r--
2020-03-24 16:33
ovirt_engine_backup.py
1.72
KB
-rw-r--r--
2020-03-24 16:33
ovirt_hosted_engine.py
2.09
KB
-rw-r--r--
2020-03-24 16:33
ovirt_imageio.py
1.33
KB
-rw-r--r--
2020-03-24 16:33
ovirt_node.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
ovirt_provider_ovn.py
1.14
KB
-rw-r--r--
2020-03-24 16:33
ovn_central.py
5.2
KB
-rw-r--r--
2020-03-24 16:33
ovn_host.py
1.58
KB
-rw-r--r--
2020-03-24 16:33
pacemaker.py
5
KB
-rw-r--r--
2020-03-24 16:33
pam.py
1.18
KB
-rw-r--r--
2020-03-24 16:33
pci.py
916
B
-rw-r--r--
2020-03-24 16:33
pcp.py
6.12
KB
-rw-r--r--
2020-03-24 16:33
peripety.py
1.18
KB
-rw-r--r--
2020-03-24 16:33
perl.py
691
B
-rw-r--r--
2020-03-24 16:33
podman.py
4.28
KB
-rw-r--r--
2020-03-24 16:33
postfix.py
1.22
KB
-rw-r--r--
2020-03-24 16:33
postgresql.py
5.17
KB
-rw-r--r--
2020-03-24 16:33
powerpath.py
1.81
KB
-rw-r--r--
2020-03-24 16:33
powerpc.py
2.85
KB
-rw-r--r--
2020-03-24 16:33
ppp.py
882
B
-rw-r--r--
2020-03-24 16:33
procenv.py
698
B
-rw-r--r--
2020-03-24 16:33
process.py
1.86
KB
-rw-r--r--
2020-03-24 16:33
processor.py
1.2
KB
-rw-r--r--
2020-03-24 16:33
psacct.py
1.29
KB
-rw-r--r--
2020-03-24 16:33
ptp.py
851
B
-rw-r--r--
2020-03-24 16:33
pulp.py
6.38
KB
-rw-r--r--
2020-03-24 16:33
puppet.py
1.83
KB
-rw-r--r--
2020-03-24 16:33
pxe.py
1.34
KB
-rw-r--r--
2020-03-24 16:33
python.py
3.06
KB
-rw-r--r--
2020-03-24 16:33
qpid.py
3.41
KB
-rw-r--r--
2020-03-24 16:33
qpid_dispatch.py
2.03
KB
-rw-r--r--
2020-03-24 16:33
qt.py
792
B
-rw-r--r--
2020-03-24 16:33
quagga.py
743
B
-rw-r--r--
2020-03-24 16:33
rabbitmq.py
2.05
KB
-rw-r--r--
2020-03-24 16:33
radius.py
1.37
KB
-rw-r--r--
2020-03-24 16:33
rasdaemon.py
1022
B
-rw-r--r--
2020-03-24 16:33
rear.py
1.15
KB
-rw-r--r--
2020-03-24 16:33
redis.py
2.01
KB
-rw-r--r--
2020-03-24 16:33
release.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
rhcos.py
921
B
-rw-r--r--
2020-03-24 16:33
rhui.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
rhv_analyzer.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
rpm.py
2.37
KB
-rw-r--r--
2020-03-24 16:33
rpmostree.py
1.08
KB
-rw-r--r--
2020-03-24 16:33
ruby.py
842
B
-rw-r--r--
2020-03-24 16:33
runc.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
s390.py
2.25
KB
-rw-r--r--
2020-03-24 16:33
salt.py
892
B
-rw-r--r--
2020-03-24 16:33
saltmaster.py
732
B
-rw-r--r--
2020-03-24 16:33
samba.py
1.6
KB
-rw-r--r--
2020-03-24 16:33
sanlock.py
1020
B
-rw-r--r--
2020-03-24 16:33
saphana.py
2.82
KB
-rw-r--r--
2020-03-24 16:33
sapnw.py
5.33
KB
-rw-r--r--
2020-03-24 16:33
sar.py
2.2
KB
-rw-r--r--
2020-03-24 16:33
sas3ircu.py
1.25
KB
-rw-r--r--
2020-03-24 16:33
scsi.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
selinux.py
1.74
KB
-rw-r--r--
2020-03-24 16:33
sendmail.py
1.2
KB
-rw-r--r--
2020-03-24 16:33
services.py
1.36
KB
-rw-r--r--
2020-03-24 16:33
skydive.py
2.12
KB
-rw-r--r--
2020-03-24 16:33
smartcard.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
snappy.py
1014
B
-rw-r--r--
2020-03-24 16:33
snmp.py
1014
B
-rw-r--r--
2020-03-24 16:33
sos_extras.py
3.72
KB
-rw-r--r--
2020-03-24 16:33
soundcard.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
squid.py
1.26
KB
-rw-r--r--
2020-03-24 16:33
ssh.py
830
B
-rw-r--r--
2020-03-24 16:33
ssmtp.py
968
B
-rw-r--r--
2020-03-24 16:33
sssd.py
2.01
KB
-rw-r--r--
2020-03-24 16:33
storageconsole.py
1.64
KB
-rw-r--r--
2020-03-24 16:33
stratis.py
975
B
-rw-r--r--
2020-03-24 16:33
subscription_manager.py
1.82
KB
-rw-r--r--
2020-03-24 16:33
sudo.py
906
B
-rw-r--r--
2020-03-24 16:33
sunrpc.py
852
B
-rw-r--r--
2020-03-24 16:33
symcli.py
3.45
KB
-rw-r--r--
2020-03-24 16:33
system.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
systemd.py
2.48
KB
-rw-r--r--
2020-03-24 16:33
systemtap.py
912
B
-rw-r--r--
2020-03-24 16:33
sysvipc.py
920
B
-rw-r--r--
2020-03-24 16:33
targetcli.py
1.02
KB
-rw-r--r--
2020-03-24 16:33
teamd.py
1.55
KB
-rw-r--r--
2020-03-24 16:33
tftpserver.py
863
B
-rw-r--r--
2020-03-24 16:33
tomcat.py
1.82
KB
-rw-r--r--
2020-03-24 16:33
tuned.py
1.07
KB
-rw-r--r--
2020-03-24 16:33
ubuntu.py
721
B
-rw-r--r--
2020-03-24 16:33
udev.py
792
B
-rw-r--r--
2020-03-24 16:33
unity.py
691
B
-rw-r--r--
2020-03-24 16:33
unpackaged.py
2.75
KB
-rw-r--r--
2020-03-24 16:33
upstart.py
1.35
KB
-rw-r--r--
2020-03-24 16:33
usb.py
765
B
-rw-r--r--
2020-03-24 16:33
validation_framework.py
1.5
KB
-rw-r--r--
2020-03-24 16:33
vdo.py
964
B
-rw-r--r--
2020-03-24 16:33
vdsm.py
4.74
KB
-rw-r--r--
2020-03-24 16:33
veritas.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
vhostmd.py
1.68
KB
-rw-r--r--
2020-03-24 16:33
virsh.py
2.25
KB
-rw-r--r--
2020-03-24 16:33
virtwho.py
975
B
-rw-r--r--
2020-03-24 16:33
vmware.py
805
B
-rw-r--r--
2020-03-24 16:33
vsftpd.py
712
B
-rw-r--r--
2020-03-24 16:33
vulkan.py
734
B
-rw-r--r--
2020-03-24 16:33
watchdog.py
2.71
KB
-rw-r--r--
2020-03-24 16:33
wireless.py
969
B
-rw-r--r--
2020-03-24 16:33
x11.py
1.41
KB
-rw-r--r--
2020-03-24 16:33
xen.py
3.48
KB
-rw-r--r--
2020-03-24 16:33
xfs.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
xinetd.py
871
B
-rw-r--r--
2020-03-24 16:33
yum.py
3.91
KB
-rw-r--r--
2020-03-24 16:33
zfs.py
1.09
KB
-rw-r--r--
2020-03-24 16:33
Save
Rename
# Copyright (C) 2018 Red Hat, Inc., Jake Hunsaker <jhunsake@redhat.com> # This file is part of the sos project: https://github.com/sosreport/sos # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # version 2 of the GNU General Public License. # # See the LICENSE file in the source distribution for further information. from sos.plugins import Plugin, RedHatPlugin from pipes import quote from re import match class Pulp(Plugin, RedHatPlugin): """Pulp platform""" plugin_name = "pulp" packages = ("pulp-server", "pulp-katello") option_list = [ ('tasks', 'number of tasks to collect from DB queries', 'fast', 200) ] def setup(self): # get mongo DB host and port from line like: # seeds: host1:27017,host2:27017 # take just the very first URI and ignore possible failover # if no such config is present, default to localhost:27017 # further, take optional user credentials - here we assume the # credentials dont contain a whitespace character (that would # make the parsing more difficult) # # further, collect location of CA file for contacting qpid in section # [messaging] # certfile: /etc/pki/katello/qpid_client_striped.crt self.dbhost = "localhost" self.dbport = "27017" self.dbuser = "" self.dbpassword = "" self.messaging_cert_file = "" in_messaging_section = False try: for line in open("/etc/pulp/server.conf").read().splitlines(): if match(r"^\s*seeds:\s+\S+:\S+", line): uri = line.split()[1].split(',')[0].split(':') self.dbhost = uri[0] self.dbport = uri[1] if match(r"\s*username:\s+\S+", line): self.dbuser = "-u %s" % line.split()[1] if match(r"\s*password:\s+\S+", line): self.dbpassword = "-p %s" % line.split()[1] if line.startswith("[messaging]"): in_messaging_section = True if in_messaging_section and line.startswith("certfile:"): self.messaging_cert_file = line.split()[1] in_messaging_section = False except IOError: # fallback when the cfg file is not accessible pass self.add_copy_spec([ "/etc/pulp/*.conf", "/etc/pulp/server/plugins.conf.d/", "/etc/default/pulp*", "/var/log/httpd/pulp-http.log*", "/var/log/httpd/pulp-https.log*", "/var/log/httpd/pulp-http_access_ssl.log*", "/var/log/httpd/pulp-https_access_ssl.log*", "/var/log/httpd/pulp-http_error_ssl.log*", "/var/log/httpd/pulp-https_error_ssl.log*" ]) num_tasks = self.get_option('tasks') mtasks = self.build_mongo_cmd( '\"DBQuery.shellBatchSize=%s;; ' 'db.task_status.find().sort({finish_time: -1})' '.pretty().shellPrint()\"' % num_tasks ) mres = self.build_mongo_cmd( '\"DBQuery.shellBatchSize=%s;; ' 'db.reserved_resources.find().pretty().shellPrint()\"' % num_tasks ) prun = self.build_mongo_cmd( r'"DBQuery.shellBatchSize=%s;; ' r'db.task_status.find({state:{\$ne: \"finished\"}}).pretty()' r'.shellPrint()"' % num_tasks ) # prints mongo collection sizes sorted from biggest and in human # readable output csizes = self.build_mongo_cmd( '\"function humanReadable(bytes) {' ' var i = -1;' ' var byteUnits = [\'kB\', \'MB\', \'GB\', \'TB\', \'PB\', ' ' \'EB\', \'ZB\', \'YB\'];' ' do {' ' bytes = bytes / 1024;' ' i++;' ' } while (bytes > 1024);' ' return Math.max(bytes, 0.1).toFixed(1) + \' \' + byteUnits[i];' '};' 'var collectionNames = db.getCollectionNames(), stats = [];' 'collectionNames.forEach(function (n) {' ' stats.push(db[n].stats());' ' });' 'stats = stats.sort(function(a, b) {' ' return b[\'size\'] - a[\'size\']; });' 'for (var c in stats) {' ' print(stats[c][\'ns\'] + \': \' +' ' humanReadable(stats[c][\'size\']) + \' (\' +' ' humanReadable(stats[c][\'storageSize\']) + \')\'); }\"' ) dbstats = self.build_mongo_cmd('\"db.stats()\"') self.add_cmd_output(mtasks, suggest_filename="mongo-task_status") self.add_cmd_output(mres, suggest_filename="mongo-reserved_resources") self.add_cmd_output(prun, suggest_filename="pulp-running_tasks") self.add_cmd_output(csizes, suggest_filename="mongo-collection_sizes") self.add_cmd_output(dbstats, suggest_filename="mongo-db_stats") self.add_cmd_output([ "qpid-stat -%s --ssl-certificate=%s -b amqps://localhost:5671" % (opt, self.messaging_cert_file) for opt in "quc" ]) def build_mongo_cmd(self, query): _cmd = "bash -c %s" _mondb = "--host %s --port %s %s %s" % (self.dbhost, self.dbport, self.dbuser, self.dbpassword) _moncmd = "mongo pulp_database %s --eval %s" return _cmd % quote(_moncmd % (_mondb, query)) def postproc(self): # Handle all ".conf" files under /etc/pulp - note that this includes # files nested at several distinct directory levels. For this reason we # use a regex that matches all these path components with ".*", and # ensure that the path ends with ".conf". etcreg = r"(([a-z].*(passw|token|cred|secret).*)\:(\s))(.*)" repl = r"\1 ********" self.do_path_regex_sub(r"/etc/pulp/(.*)\.conf$", etcreg, repl) # Now handle JSON-formatted data in the same /etc/pulp directory # structure. We use a different substitution string here to preserve # the file's JSON syntax. jreg = r"(\s*\".*(passw|cred|token|secret).*\"\s*:\s*\")(.*)(\")" repl = r"\1********\4" self.do_path_regex_sub("/etc/pulp(.*)(.json$)", jreg, repl) # vim: set et ts=4 sw=4 :