Linux ubuntu 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64
nginx/1.24.0
: 67.217.245.49 | : 216.73.216.153
Cant Read [ /etc/named.conf ]
8.3.6
www-data
Bypass.pw
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
Backdoor Scanner
Backdoor Create
Alfa Webshell
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
pcp /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
discover
[ DIR ]
drwxr-xr-x
chkhelp
14.02
KB
-rwxr-xr-x
find-filter
14.02
KB
-rwxr-xr-x
mkaf
2.82
KB
-rwxr-xr-x
newhelp
22.57
KB
-rwxr-xr-x
pcp-atop
374.23
KB
-rwxr-xr-x
pcp-atopsar
374.23
KB
-rwxr-xr-x
pcp-buddyinfo
8.03
KB
-rwxr-xr-x
pcp-dmcache
7.13
KB
-rwxr-xr-x
pcp-dstat
74.98
KB
-rwxr-xr-x
pcp-free
9.79
KB
-rwxr-xr-x
pcp-geolocate
2.6
KB
-rwxr-xr-x
pcp-htop
290.05
KB
-rwxr-xr-x
pcp-iostat
20.79
KB
-rwxr-xr-x
pcp-ipcs
6.82
KB
-rwxr-xr-x
pcp-lvmcache
7.13
KB
-rwxr-xr-x
pcp-meminfo
7.75
KB
-rwxr-xr-x
pcp-mpstat
31.26
KB
-rwxr-xr-x
pcp-netstat
18.55
KB
-rwxr-xr-x
pcp-numastat
6.33
KB
-rwxr-xr-x
pcp-pidstat
48.4
KB
-rwxr-xr-x
pcp-ps
39.43
KB
-rwxr-xr-x
pcp-python
925
B
-rwxr-xr-x
pcp-reboot-init
2.52
KB
-rwxr-xr-x
pcp-shping
3.47
KB
-rwxr-xr-x
pcp-slabinfo
8.7
KB
-rwxr-xr-x
pcp-ss
17.4
KB
-rwxr-xr-x
pcp-summary
11.21
KB
-rwxr-xr-x
pcp-tapestat
18.38
KB
-rwxr-xr-x
pcp-uptime
4.9
KB
-rwxr-xr-x
pcp-verify
7.72
KB
-rwxr-xr-x
pcp-vmstat
1.54
KB
-rwxr-xr-x
pcp-zoneinfo
18.81
KB
-rwxr-xr-x
pmcd
119.26
KB
-rwxr-xr-x
pmcd_wait
14.51
KB
-rwxr-xr-x
pmconfig
14.52
KB
-rwxr-xr-x
pmcpp
26.51
KB
-rwxr-xr-x
pmfind_check
4.29
KB
-rwxr-xr-x
pmgetopt
23.29
KB
-rwxr-xr-x
pmhostname
14.41
KB
-rwxr-xr-x
pmie_check
21.38
KB
-rwxr-xr-x
pmie_daily
14.42
KB
-rwxr-xr-x
pmie_dump_stats
14.02
KB
-rwxr-xr-x
pmie_email
1.76
KB
-rwxr-xr-x
pmie_farm
896
B
-rwxr-xr-x
pmie_webhook
1.79
KB
-rwxr-xr-x
pmiestatus
14.02
KB
-rwxr-xr-x
pmlock
14.02
KB
-rwxr-xr-x
pmlogconf
55.26
KB
-rwxr-xr-x
pmlogextract
74.88
KB
-rwxr-xr-x
pmlogger
159.62
KB
-rwxr-xr-x
pmlogger_check
30.62
KB
-rwxr-xr-x
pmlogger_daily
55.78
KB
-rwxr-xr-x
pmlogger_daily_report
12.47
KB
-rwxr-xr-x
pmlogger_farm
919
B
-rwxr-xr-x
pmlogger_janitor
20.87
KB
-rwxr-xr-x
pmlogger_merge
6.66
KB
-rwxr-xr-x
pmlogger_rewrite
8
KB
-rwxr-xr-x
pmlogredact
1.79
KB
-rwxr-xr-x
pmlogreduce
30.7
KB
-rwxr-xr-x
pmlogrewrite
158.76
KB
-rwxr-xr-x
pmnewlog
810
B
-rwxr-xr-x
pmnsadd
2.89
KB
-rwxr-xr-x
pmnsdel
22.45
KB
-rwxr-xr-x
pmnsmerge
22.57
KB
-rwxr-xr-x
pmpause
14.02
KB
-rwxr-xr-x
pmpost
14.14
KB
-rwxr-xr-x
pmproxy
140.61
KB
-rwxr-xr-x
pmsignal
2.72
KB
-rwxr-xr-x
pmsleep
14.02
KB
-rwxr-xr-x
pmwtf
7.63
KB
-rwxr-xr-x
runaspcp
14.45
KB
-rwxr-xr-x
telnet-probe
14.02
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pcp-dmcache
#!/usr/bin/env pmpython # # Copyright (C) 2014-2017 Red Hat. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # pylint: disable=bad-continuation,invalid-name,global-statement # pylint: disable=line-too-long,too-many-locals """ Display device mapper cache statistics for the system """ import sys from pcp import pmapi, pmcc if sys.version >= '3': long = int # python2 to python3 portability (no long() in python3) CACHE_METRICS = ['dmcache.cache.used', 'dmcache.cache.total', 'dmcache.metadata.used', 'dmcache.metadata.total', 'dmcache.read_hits', 'dmcache.read_misses', 'dmcache.write_hits', 'dmcache.write_misses', 'disk.dm.read', 'disk.dm.write'] COLUMN_HEADING = \ ' ---%used--- ---------reads--------- --------writes---------' SUBHEAD_IOPS = \ ' meta cache hit miss ops hit miss ops' SUBHEAD_RATIO = \ ' meta cache hit miss ratio hit miss ratio' RATIO = True # default to displaying cache hit ratios REPEAT = 10 # repeat heading after every N samples def option(opt, optarg, _): """ Perform setup for an individual command line option """ global RATIO global REPEAT if opt == 'R': REPEAT = int(optarg) elif opt == 'i': RATIO = False def cache_value(group, device, width, values): """ Lookup value for device instance, return it in a short string """ if device not in values: return '?'.rjust(width) result = group.contextCache.pmNumberStr(values[device]) return result.strip(' ').rjust(width) def cache_percent(device, width, used, total): """ From used and total values (dict), calculate 'percentage used' """ if device not in used or device not in total: return '?%'.rjust(width) numerator = float(used[device]) denominator = float(total[device]) if denominator == 0.0: return '0%'.rjust(width) value = 100.0 * numerator / denominator if value >= 100.0: return '100%'.rjust(width) return ('%3.1f%%' % value).rjust(width) def cache_dict(group, metric): """ Create an instance:value dictionary for the given metric """ values = group[metric].netConvValues if not values: return {} return dict(map(lambda x: (x[1], x[2]), values)) def max_lv_length(group): """ look at the observation group and return the max length of all the lvnames """ cache_used = cache_dict(group, 'dmcache.cache.used') if not cache_used: return 0 lv_names = cache_used.keys() return len(max(lv_names, key=len)) class DmCachePrinter(pmcc.MetricGroupPrinter): """ Report device mapper cache statistics """ def __init__(self, devices): """ Construct object - prepare for command line handling """ pmcc.MetricGroupPrinter.__init__(self) self.hostname = None self.devices = devices def report_values(self, group, width=12): """ Report values for one of more device mapper cache devices """ # Build several dictionaries, keyed on cache names, with the values cache_used = cache_dict(group, 'dmcache.cache.used') cache_total = cache_dict(group, 'dmcache.cache.total') meta_used = cache_dict(group, 'dmcache.metadata.used') meta_total = cache_dict(group, 'dmcache.metadata.total') read_hits = cache_dict(group, 'dmcache.read_hits') read_misses = cache_dict(group, 'dmcache.read_misses') read_ops = cache_dict(group, 'disk.dm.read') write_hits = cache_dict(group, 'dmcache.write_hits') write_misses = cache_dict(group, 'dmcache.write_misses') write_ops = cache_dict(group, 'disk.dm.write') devicelist = self.devices if not devicelist: devicelist = cache_used.keys() if devicelist: for name in sorted(devicelist): if RATIO: read_column = cache_percent(name, 7, read_hits, read_ops) write_column = cache_percent(name, 7, write_hits, write_ops) else: read_column = cache_value(group, name, 7, read_ops) write_column = cache_value(group, name, 7, write_ops) print('%s %s %s %s %s %s %s %s %s' % (name[:width], cache_percent(name, 5, meta_used, meta_total), cache_percent(name, 5, cache_used, cache_total), cache_value(group, name, 7, read_hits), cache_value(group, name, 7, read_misses), read_column, cache_value(group, name, 7, write_hits), cache_value(group, name, 7, write_misses), write_column)) else: print('No values available') def report(self, manager): """ Report driver routine - headings, sub-headings and values """ self.convert(manager) group = manager['dmcache'] max_lv = max_lv_length(group) padding = " "*max_lv if manager.counter % REPEAT == 0: if not self.hostname: self.hostname = group.contextCache.pmGetContextHostName() stamp = group.contextCache.pmCtime(long(group.timestamp)) title = '@ %s (host %s)' % (stamp.rstrip(), self.hostname) if RATIO: style = "%s%s" % (padding, SUBHEAD_RATIO) else: style = "%s%s" % (padding, SUBHEAD_IOPS) heading = ' device '.center(max_lv, '-') + COLUMN_HEADING print('%s\n%s\n%s' % (title, heading, style)) self.report_values(group, width=max_lv) if __name__ == '__main__': try: options = pmapi.pmOptions('iR:?') options.pmSetShortUsage('[options] [device ...]') options.pmSetOptionCallback(option) options.pmSetLongOptionHeader('Options') options.pmSetLongOption('repeat', 1, 'R', 'N', 'repeat the header after every N samples') options.pmSetLongOption('iops', 0, 'i', '', 'display IOPs instead of cache hit ratio') options.pmSetLongOptionVersion() options.pmSetLongOptionHelp() dmcache = pmcc.MetricGroupManager.builder(options, sys.argv) missing = dmcache.checkMissingMetrics(CACHE_METRICS) if missing is not None: sys.stderr.write('Error: not all required metrics are available\nMissing: %s\n' % (missing)) sys.exit(1) dmcache.printer = DmCachePrinter(options.pmGetOperands()) dmcache['dmcache'] = CACHE_METRICS dmcache.run() except pmapi.pmErr as error: print('%s: %s\n' % (error.progname(), error.message())) except pmapi.pmUsageErr as usage: usage.message() except KeyboardInterrupt: pass
Close