__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x[hAF��P�SrSSKrSSKrSSKrSSKrSSKrSSKJr SSKJ	r	J
r
Jr SSKJ
r
JrJrJrJrJr SSKJrJr SSKJr SSKJr SS	KJr SS
KJrJrJr Sr \RB"SS
\RD55r#\RB"SS\RD55r$\RB"SS\RD55r%\&"\%RN\%RP\%RR\%RT/5r+"SS\5r,Sr-S\\.S\/S\.4Sjr0S.Sjr1S\#S\$S\\.\.44Sjr2S\,4Sjr3S\44Sjr5S\/4S jr6S\\%\.44S!jr7S\/4S"jr8S\/S\/4S#jr9S\/4S$jr:S\#4S%jr;S\.4S&jr<S'r=S(r>S\\\44S)jr?S/S*\\S\/S\,4S+jjr@S,rA\BS-:Xa\A"5 gg)0zGDefine 'status' utility and handler as part of cloud-init command line.�N)�deepcopy)�gmtime�sleep�strftime)�Any�Dict�List�
NamedTuple�Optional�Tuple)�safeyaml�subp)�read_cfg_paths)�uses_systemd)�Paths)�get_cmdline�	load_json�load_text_filez/etc/cloud/cloud-init.disabledc�(�\rSrSrSrSrSrSrSrSr	g)	�
RunningStatus�z=Enum representing user-visible cloud-init application status.znot started�running�done�disabled�N)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__�NOT_STARTED�RUNNING�DONE�DISABLED�__static_attributes__r��6/usr/lib/python3/dist-packages/cloudinit/cmd/status.pyrrs��G��K��G��D��Hr&rc�$�\rSrSrSrSrSrSrSrg)�ConditionStatus�%z;Enum representing user-visible cloud-init condition status.�error�degraded�healthyrN)	rrrrr �ERROR�DEGRADED�PEACHYr%rr&r'r)r)%s��E��E��H�
�Fr&r)c�8�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
g)
�
EnabledStatus�.z<Enum representing user-visible cloud-init boot status codes.zdisabled-by-generatorzdisabled-by-kernel-command-linezdisabled-by-marker-filez disabled-by-environment-variablezenabled-by-generatorzenabled-by-kernel-command-linezenabled-by-sysvinit�unknownrN)rrrrr �DISABLED_BY_GENERATOR�DISABLED_BY_KERNEL_CMDLINE�DISABLED_BY_MARKER_FILE�DISABLED_BY_ENV_VARIABLE�ENABLED_BY_GENERATOR�ENABLED_BY_KERNEL_CMDLINE�ENABLED_BY_SYSVINIT�UNKNOWNr%rr&r'r2r2.s4��F�3��!B��7��A��1�� @��/���Gr&r2c��\rSrSr%\\S'\\S'\\S'\\S'\	\\S'\
\\	\4\S'\\S'\\\S	'\
\\4\S
'Sr
g)
�
StatusDetails�F�running_status�condition_status�boot_status_code�description�errors�recoverable_errors�last_update�
datasource�v1rN)rrrrr�__annotations__r)r2�strr	rrrr%rr&r'r>r>FsU��!�!�%�%�#�#�����I���S�$�s�)�^�,�,�����
���S�#�X��r&r>z�extended_status: {extended_status}
boot_status_code: {boot_code}
{last_update}detail: {description}
errors:{errors}
recoverable_errors:{recoverable_errors}�systemctl_args�wait�returnc���[R"S/UQ5RR5$![Ra U(de[	S5 Of=fMa)z-Query systemd with retries and return output.�	systemctl��?)r�stdout�strip�ProcessExecutionErrorr)rKrLs  r'�query_systemctlrTZsY���	��9�9�k�;�N�;�<�C�C�I�I�K�K���)�)�	����$�K�	��s�04�'A�Ac��U(d[R"SSS9nURS[/SQSSS9 URS	S
SSS
S9 URSSSSSS9 U$)aBuild or extend an arg parser for status utility.

@param parser: Optional existing ArgumentParser instance representing the
    status subcommand which will be extended to support the args of
    this utility.

@returns: ArgumentParser with proper argument configuration.
�statuszReport run status of cloud init)�progrCz--format)�json�tabular�yamlrYz5Specify output format for cloud-id (default: tabular))�type�choices�default�helpz-lz--long�
store_trueFzJReport long format of statuses including run stage name and error messages)�actionr]r^z-wz--waitz'Block waiting on cloud-init to complete)�argparse�ArgumentParser�add_argumentrJ��parsers r'�
get_parserrfis�����(�(��'H�
������
�+��
D����������
�
�	��������
6����Mr&r�	conditionc�R�U[R:XaSURSUR34$U[R:XaKU[R
[R4;a'URURSUR34$URUR4$)z�Translate running and condition status to human readable strings.

Returns (status, extended_status).
Much of this is for backwards compatibility
r+z - � )r)r.�valuer/rr#r")rrgs  r'�translate_statusrk�s����O�)�)�)��9�?�?�+�3�w�}�}�o�>�>�>�	�o�.�.�	.�7�������?�4��}�}���� 1��7�=�=�/�B�B�B��=�=�'�-�-�'�'r&�detailsc�,�[URUR5up#URURR
UUURURURURS.UREnURS:XGaSnUSn[USU35 UR(a�URS5(a
SUSS3nOSnUS	(aS
S
RUS	5-OSnUS(aqSSRUSR!5V	V
Vs/sH<up�U	S
3S
RU
Vs/sHo�R#SS5PM sn5-PM> snn
n	5-OSn[[$RUSUUSUSUUUS95 ggURS:Xa![[&R("USSSS95 gURS:Xa [[*R("U55 ggs snfs snn
n	f)zPrint status out to the CLI.)rGrBrV�extended_status�detailrDrErFrY�rVzstatus: rFz
last_update: �
rDz
	- z []rEz:
	- riz {}rnrBro)rn�prefix�	boot_coderCrFrDrErX�T)�,z: )�indent�	sort_keys�
separatorsrZN)rkr@rArGrBrjrCrDrErFrH�format�print�long�get�join�items�replace�TABULAR_LONG_TMPLrX�dumpsr
)
�argsrlrVrn�details_dictrr�staterF�
errors_output�k�v�i�recoverable_errors_outputs
             r'�print_statusr��s3��.����� 8� 8���F��(�(�#�4�4�:�:��*��%�%��.�.�%�8�8��*�*�
$��*�*�
$�L��{�{�i�����X�&��
������(�)��9�9����
�.�.� -�l�=�.I�-J�"�M�� �� ��)��8�=�=��h�)?�@�@��
� � 4�5���)�)�%1�1E�$F�$L�$L�$N��%O�D�A��#�W�
�"�-�-�q�(I�q�!���4��)=�q�(I�J�K�$N�����
&�
�!�(�(�$0�1B�$C�!�*�+=�>� ,�X� 6� +�(�'@�)��

�-�B
����	�
��J�J��Q�$�;�
�	
�

����	�
�h�n�n�\�*�+�
��1)J��s�+H�H
�!
H�
Hc��[5n[X!R5nUR(a�UR[R
[R4;a�URS:Xa=[RRS5 [RR5 [X!R5n[S5 UR[R
[R4;aM�[X5 UR[R :XagUR[R":Xagg)z4Handle calls to 'cloud-init status' as a subcommand.rY�.rP�rtr)r�get_status_detailsrLr@rr!r"ry�sysrQ�write�flushrr�rAr)r.r/)�namer��pathsrls    r'�handle_status_argsr��s���
��E� ��	�	�2�G��y�y��$�$��%�%��!�!�)
�
��{�{�i�'��
�
� � ��%��
�
� � �"�(��	�	�:�G��$�K��$�$��%�%��!�!�)
�
�������?�#8�#8�8��	�	!�	!�_�%=�%=�	=��r&c�d�[S/US9nSU;$![Ra	 SnSU;$f=f)z?Return whether cloud-init is disabled via environment variable.zshow-environment�rLrp�cloud-init=disabled)rTrrS)rL�envs  r'�_disabled_via_environmentr�sK����1�2��>��!�C�'�'���%�%���� �C�'�'��s��/�/c���[5R5n[5(d[RnSnXE4$SU;a[R
nSnXE4$[RRU5(a$[RnSRU5nXE4$SU;a[RnSnXE4$S[RRSS5;d[5(a#[US	9(a[RnS
nXE4$[RR[RR!UR"S55(a[R$nSnXE4$[RR[RR!UR"S
55(a[R&nSnXE4$[R(nSnXE4$)a@Report whether cloud-init current boot status

@param disable_file: The path to the cloud-init disable file.
@param paths: An initialized cloudinit.helpers.Paths object.
@param wait: If user has indicated to wait for cloud-init to complete.
@returns: A tuple containing (code, reason) about cloud-init's status and
why.
zCloud-init enabled on sysvinitzcloud-init=enabledz<Cloud-init enabled by kernel command line cloud-init=enabledzCloud-init disabled by {0}r�z;Cloud-init disabled by kernel parameter cloud-init=disabled�KERNEL_CMDLINErpr�zNCloud-init disabled by environment variable KERNEL_CMDLINE=cloud-init=disabledrz+Cloud-init disabled by cloud-init-generator�enabledz2Cloud-init enabled by systemd cloud-init-generatorz'Systemd generator may not have run yet.)r�splitrr2r;r:�os�path�existsr7ryr6�environr|r�r8r}�run_dirr5r9r<)�disable_filer�rL�
cmdline_parts�bootstatus_code�reasons      r'�get_bootstatusr�s��� �M�'�'�)�M��>�>�'�;�;��1��6
�$�$�5
��	.�'�A�A��O��0
�$�$�/
������	%�	%�'�?�?��-�4�4�\�B��*
�$�$�)
�-�	/�'�B�B��N��$
�$�$�#
�"�*�*�.�.�1A�2�"F�	F����4�$�?�'�@�@��
1�	�
�$�$�
����������U�]�]�J�?�	@�	@�'�=�=��>��
�$�$�

����������U�]�]�I�>�	?�	?�'�<�<��E��
�$�$�(�/�/��:���$�$r&c�J�[[55R[;$�N)r�rrB�DISABLED_BOOT_CODESrr&r'�is_cloud_init_enabledr�5s ���>�+�,�=�=�"�	#�r&c�J�SH�n[SSU/US9n[
UR5VVs/sH1oDRS	5Vs/sHoUR5PM snPM3 snn5nUS
RS5(dUS
S:Xd g
USS:Xa!USS:XaM�USS:XaUSS:Xa g gUSS:Xd	USS:Xa g
 g g![Ra0n[SUR3[
RS9 SnA gSnAff=fs snfs snnf)z2Return if systemd units report a cloud-init error.)zcloud-final.servicezcloud-config.servicezcloud-init-network.servicezcloud-init-local.servicezcloud-init-main.service�showz5--property=ActiveState,UnitFileState,SubState,MainPIDr�z^Failed to get status from systemd. Cloud-init status may be inaccurate. Error from systemctl: )�fileNF�=�
UnitFileStater��staticT�ActiveState�active�SubState�exitedr�MainPID�0�failed)rTrrSrz�stderrr��dict�
splitlinesr�rR�
startswith)rL�servicerQ�e�r�x�statess       r'�systemd_failedr�<sO����	�$��K���
�
�F�"�8>�8I�8I�8K�L�8K�1�����
.��A�g�g�i��
.�8K�L�
��
�?�#�.�.�y�9�9��o�&�(�2��
�M�
"�h�
.��j�!�X�-���
�#�y�0�V�I�5F�#�5M���
�=�!�X�-��
�1C�x�1O���g�l��M�)�)�	��)�)*���
�4��Z�Z�	
���	��/��Ls.�
C�D�D�D�D�'%D�D�Dc��[RRU5=(a$ [RRU5(+$)z%Return True if cloud-init is running.)r�r�r�)�status_file�result_files  r'�
is_runningr�ws*��
�7�7�>�>�+�&�J�r�w�w�~�~�k�/J�+J�Jr&c���U[;a[R$[X5(a[R$US:�a[R
$[R$)z(Return the running status of cloud-init.r)r�rr$r�r"r#r!)r�r�rB�latest_events    r'�get_running_statusr�|sP���.�.��%�%�%�	�K�	-�	-��$�$�$�	��	��!�!�!��(�(�(r&c��URSS5nU(a5URS5un nUR5RSS5nU$)zqGet the datasource from status.json.

Return a lowercased non-prefixed version. So "DataSourceEc2" becomes "ec2"
rGrpri)r|�	partition�lowerr)�	status_v1rG�ds�_s    r'�get_datasourcer��sK��
���|�R�0�J���'�'��,���A�q��X�X�Z�'�'��b�9�
��r&c�v�URS5nU(aU$URS5(aSUS3$U$)z�Return a description of the current status.

If we have a datasource, return that. If we're running in a particular
stage, return that. Otherwise, return the boot_description.
rG�stagezRunning in stage: )r|)r��boot_descriptionrGs   r'�get_descriptionr��sC�����|�,�J����	���w�	�	�#�I�g�$6�#7�8�8��r&c���SnUR5HWn[U[5(dM[UUR	S5=(d SUR	S5=(d S5nMY U$)z,Return the latest event time from status_v1.r�start�finished)�values�
isinstancer��maxr|)r�r��
stage_infos   r'�get_latest_eventr��s^���L��&�&�(�
��j�$�'�'������w�'�,�1����z�*�/�a��L�)��r&c�l�/n0n[UR55H�up4[U[5(dMUR	URS/55 URS05nUR
5H.nXb;a[XV5X&'MX&R	XV5 M0 M� X4$)z>Return a list of errors and recoverable_errors from status_v1.rDrE)�sortedr~r�r��extendr|�keysr)r�rDrE�_keyr��current_recoverable_errors�err_types       r'�
get_errorsr��s���
�F���"�9�?�?�#4�5����j�$�'�'��M�M�*�.�.��2�6�7�*4���$�b�*�&�7�;�;�=���5�3;�2�<�4�&�0�'�0�7�7�2�<��
>�6�"�%�%r&r�c���[RnU=(d
 [5n[RRURS5n[RRURS5n[[X5upV0n[RRU5(a$[[U55RS05n[U5n[Xv5n	[U5n
U
(a[!S[#U
55OSn[%U5up�U(a[R&nOU
(a[R(n[+X4XZ5nU[,R.:XaP[15(aA[3US9(a3[,R4n[R&nSn	UR7S5 UR9S	S
5 [;UUUU	UU
UUU5	$)z�Return a dict with status, details and errors.

@param paths: An initialized cloudinit.helpers.paths object.
@param wait: If user has indicated to wait for cloud-init to complete.

Values are obtained from parsing paths.run_dir/status.json.
zstatus.jsonzresult.jsonrHz%a, %d %b %Y %H:%M:%S %zrpr�z"Failed due to systemd unit failurez�Failed due to systemd unit failure. Ensure all cloud-init services are enabled, and check 'systemctl' or 'journalctl' for more information.rGN)r)r0rr�r�r}r�r��CLOUDINIT_DISABLED_FILEr�rrr|r�r�r�rrr�r.r/r�rr"rr�r#�append�popr>)r�rLrAr�r�rBr�r�rGrCr�rFrDrEr@s               r'r�r��s���'�-�-���%�^�%�E��'�'�,�,�u�}�}�m�<�K��'�'�,�,�u�}�}�m�<�K�)7���*�&���I�	�w�w�~�~�k�"�"��n�[�9�:�>�>�t�R�H�	��	�*�J�!�)�>�K�#�I�.�L��	�+�V�L�-A�B�
��",�I�!6��F�
�*�0�0��	�*�3�3��'��"2��N�
	�-�/�/�/��N�N���%�&�+�+��*�0�0��:���
�
�
$�	
��M�M�,��%�����������
�
r&c�t�[5n[R"[SUR	555 g)z$Tool to report status of cloud-init.rVN)rfr��exitr��
parse_argsrds r'�mainr�s&��
�\�F��H�H�
��&�*;�*;�*=�
>�?r&�__main__r�)NF)Cr ra�enumrXr�r��copyr�timerrr�typingrrr	r
rr�	cloudinitr
r�cloudinit.cmd.develr�cloudinit.distrosr�cloudinit.helpersr�cloudinit.utilrrrr��unique�Enumrr)r2�	frozensetr5r6r7r8r�r>r�rJ�boolrTrfrkr��intr�r�r�r�r�r�r�r�r�r�r�r�r�rrr&r'�<module>r�s+��N����	�
��(�(�?�?�$�.�*�#�A�A�:������D�I�I��
������d�i�i��
�����
�D�I�I�
�
�
� ��+�+��0�0��-�-��.�.�	���	�J�	�+�����I����	�	�%�P(�
�(�'6�(�
�3��8�_�(�(?,�
�?,�D
�c�
�6(�t�(�'%��}�c�7I�1J�'%�T�t��8��8�$�8�vK�D�K�
)��)�	��	� �
�&�U�4��:�.�&�216�D��E�?�D�)-�D��D�N@��z���F�r&

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 153 B 0644
clean.cpython-313.pyc File 7.02 KB 0644
cloud_id.cpython-313.pyc File 4.74 KB 0644
main.cpython-313.pyc File 49.61 KB 0644
query.cpython-313.pyc File 11.2 KB 0644
status.cpython-313.pyc File 20.12 KB 0644
Filemanager