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 /
lib /
python3 /
dist-packages /
uaclient /
jobs /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-07-09 11:30
__init__.py
0
B
-rw-r--r--
2022-05-18 21:44
metering.py
595
B
-rw-r--r--
2022-04-01 15:27
update_messaging.py
13.91
KB
-rw-r--r--
2022-05-18 21:44
update_state.py
260
B
-rw-r--r--
2022-05-18 21:44
Save
Rename
""" Functions to be used when running metering jobs """ from uaclient import config from uaclient.cli import assert_lock_file from uaclient.contract import UAContractClient @assert_lock_file("timer metering job") def metering_enabled_resources(cfg: config.UAConfig) -> bool: # We only run this job if there is no other job running. # The reason for that is to avoid potential conflicts with # auto-attach, attach and enable operations. if not cfg.is_attached: return False contract = UAContractClient(cfg) contract.report_machine_activity() return True