Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
share /
hplip /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
align.cpython-310.pyc
6.53
KB
-rw-r--r--
check.cpython-310.pyc
19.69
KB
-rw-r--r--
check-plugin.cpython-310.pyc
6.89
KB
-rw-r--r--
clean.cpython-310.pyc
4.69
KB
-rw-r--r--
colorcal.cpython-310.pyc
6.75
KB
-rw-r--r--
config_usb_printer.cpython-310.pyc
4.87
KB
-rw-r--r--
devicesettings.cpython-310.pyc
1.65
KB
-rw-r--r--
diagnose_plugin.cpython-310.pyc
2.34
KB
-rw-r--r--
diagnose_queues.cpython-310.pyc
2.54
KB
-rw-r--r--
doctor.cpython-310.pyc
8.35
KB
-rw-r--r--
fab.cpython-310.pyc
15.9
KB
-rw-r--r--
faxsetup.cpython-310.pyc
1.54
KB
-rw-r--r--
firmware.cpython-310.pyc
3.99
KB
-rw-r--r--
hpdio.cpython-310.pyc
3.78
KB
-rw-r--r--
hpssd.cpython-310.pyc
14.21
KB
-rw-r--r--
info.cpython-310.pyc
3.65
KB
-rw-r--r--
__init__.cpython-310.pyc
166
B
-rw-r--r--
levels.cpython-310.pyc
4.16
KB
-rw-r--r--
linefeedcal.cpython-310.pyc
1.62
KB
-rw-r--r--
logcapture.cpython-310.pyc
8.61
KB
-rw-r--r--
makecopies.cpython-310.pyc
7.08
KB
-rw-r--r--
makeuri.cpython-310.pyc
3.78
KB
-rw-r--r--
pkservice.cpython-310.pyc
2.08
KB
-rw-r--r--
plugin.cpython-310.pyc
8.64
KB
-rw-r--r--
pqdiag.cpython-310.pyc
1.59
KB
-rw-r--r--
print.cpython-310.pyc
2.66
KB
-rw-r--r--
printsettings.cpython-310.pyc
1.81
KB
-rw-r--r--
probe.cpython-310.pyc
5.17
KB
-rw-r--r--
query.cpython-310.pyc
3.14
KB
-rw-r--r--
scan.cpython-310.pyc
40.98
KB
-rw-r--r--
sendfax.cpython-310.pyc
11.74
KB
-rw-r--r--
setup.cpython-310.pyc
19.68
KB
-rw-r--r--
systray.cpython-310.pyc
2.91
KB
-rw-r--r--
testpage.cpython-310.pyc
3.47
KB
-rw-r--r--
timedate.cpython-310.pyc
2.47
KB
-rw-r--r--
toolbox.cpython-310.pyc
5.41
KB
-rw-r--r--
uiscan.cpython-310.pyc
1.03
KB
-rw-r--r--
uninstall.cpython-310.pyc
2.35
KB
-rw-r--r--
unload.cpython-310.pyc
19.57
KB
-rw-r--r--
upgrade.cpython-310.pyc
10.26
KB
-rw-r--r--
wificonfig.cpython-310.pyc
1.57
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : levels.cpython-310.pyc
o �/�ai � @ sx d Z dZdZdZddlZddlZddlZddlZddlZddl T ddl mZmZm Z mZmZ ddlmZ d e�� d d Zedd fdd�Ze�d� �z�e�eee edef�Zejejdde ddfddgd� e�dg d��\ZZZZ Z!Z"e�#ee�Zes�e�$d � e�%de � eZ&dZ'd Z(eD ]T\Z)Z*e)dv r�ze+e*�,� �Z&W n e-e.fy� e�/de � eZ&Y nw e&d k s�e&ekr�e�/de � eZ&q�e)dv r�dZ'q�e)dv r�ze*d Z(W q� e0y� d Z(Y q�w q�ze�1ee�Z2W n e3�y e�4d� e�$d � Y nw �zz e2�5� e2�6� W n e3�y1 Z7 ze�4de7j8 � e�$d � W Y dZ7[7ndZ7[7ww e2j9d e:k�r e�%d!� g Z;d Z* z&e+e2j<d"e* �Z=e+e2j<d#e* �Z>e2j<d$e* Z?e�@d%e*e=e>e?f � W n e0�yt Y nw e;�Ae*e>e=e?f� e*d 7 Z*�qDe;jBe �Ce jD�d&� e;D ]xZEeE\Z*Z>Z=Z?e2j<d'e* ZFe2j<d(e* ZGe2j<d)e* ZHe2j<d*e* ZIeFeJeKfv �r�e>eLeMeNeOePeQeRfv �r�e�%e�SeH�� e�%d+e? � e�%d,eI � eeGe=e&e'e(� e�%d!� �q�e�%e�SeH�� e�%d+e? � e�%d,eI � e�%d!� �q�n e�4d-� e�$d � W e2�T� ne2�T� w W n eU�y/ e�4d.� Y nw e�%d!� e�%d/� dS )0z2.0zSupply Levels Utilityz hp-levelszIDisplay bar graphs of current supply levels for supported HPLIP printers.� N)�*)�device�status�utils�tui�module)�cups� � � T�/c C s� d| }|dkr d}t | | �}t |�}||d kr|d }|rs|ttttfv r1t�tjd � nB|tt fv r@t�tjd � n3|t tfv rOt�tjd � n$|tkr\t�tjd � n|t tfv rkt�tjd � n|tttfv rs d }|r�|ttfv r�tjd }t�d | | � d }|r�|ttfv r�tjd }t�dd|| d || d d| |f � d }|r�tjd }t�d t |� | � d S )Ng Y@g � �teal�fuscia�yellow�blue�bold� �-z%s%s%s%s (approx. %d%%)%s�|� �reset)�int�AGENT_TYPE_CMY�AGENT_TYPE_KCM�AGENT_TYPE_CYAN�AGENT_TYPE_CYAN_LOW�log�info�codes�AGENT_TYPE_MAGENTA�AGENT_TYPE_MAGENTA_LOW�AGENT_TYPE_YELLOW�AGENT_TYPE_YELLOW_LOW�AGENT_TYPE_BLUE�AGENT_TYPE_BLACK�AGENT_TYPE_BLACK_B8800� AGENT_TYPE_LG�AGENT_TYPE_G� AGENT_TYPE_PG)�agent_level� agent_type�size� use_colors�bar_char�adj�bar�color� r2 �/usr/share/hplip/levels.py�logBarGraph+ sD � r4 zBar graph size:z.-s<size> or --size=<size> (current default=%d)�optionF)zUse colored bar graphs:z$-c or --color (default is colorized)r5 F)zBar graph character:z*-a<char> or --char=<char> (default is '/')r5 F)� extra_optionszs:ca:)zsize=r1 zchar=zUsing device : %s )z-sz--sizez/Invalid size specified. Using the default of %d)z-cz--color)z-az--charzError opening device. Exiting.z#Error opening device (%s). Exiting.zstatus-typer zagent%d-typezagent%d-kindzagent%d-skuz.%d: agent_type %d agent_kind %d agent_sku '%s')�keyzagent%d-healthz agent%d-levelzagent%d-desczagent%d-health-desczPart No.: %sz Health: %sz)Status not supported for selected device.z User exitzDone.)V�__version__� __title__�__mod__�__doc__�sys�getopt�time�operator�os�base.g�baser r r r r �prntr �ttysize�DEFAULT_BAR_GRAPH_SIZEr4 r � set_module�Module�INTERACTIVE_MODE�mod�setUsage�USAGE_FLAG_DEVICE_ARGS�parseStdOpts�opts� device_uri�printer_name�mode� ui_toolkit�lang�getDeviceUri�exitr r, r1 r. �o�ar �strip� TypeError� ValueError�warn�KeyError�Device�d�Error�error�open�queryDevice�e�msg�mq�STATUS_TYPE_NONE�sorted_supplies�dqr+ � agent_kind� agent_sku�debug�append�sort� cmp_to_key� levelsCmp�x�agent_healthr* � agent_desc�agent_health_desc�AGENT_HEALTH_OK�AGENT_HEALTH_UNKNOWN�AGENT_KIND_SUPPLY�AGENT_KIND_HEAD_AND_SUPPLY�AGENT_KIND_TONER_CARTRIDGE�AGENT_KIND_MAINT_KIT�AGENT_KIND_ADF_KIT�AGENT_KIND_INT_BATTERY�AGENT_KIND_DRUM_KITr �close�KeyboardInterruptr2 r2 r2 r3 �<module> s� /���� ���� ��� ���� ��
Close