Wednesday, October 2, 2024

How to update the firmware in Exadata

/opt/oracle.cellos/CheckHWnFWProfile -U /opt/oracle.cellos/iso/cellbits cellcli -e alter cell shutdown services all on the cell service /opt/oracle.cellos/CheckHWnFWProfile -action updatefw -component HardDisk -powercycle no (To update the disk firmware) /opt/oracle.cellos/CheckHWnFWProfile -action updatefw -component InfinibandHCA (To update the InfinibandHCA Firmware) /opt/oracle.cellos/CheckHWnFWProfile -action updatefw -component all (To update all the component)

Wednesday, September 4, 2024

How to check the Apache is Working through ansible

--- - name: Check if Apache is Working hosts: webservers vars: webserver_message: "I am running to the finish line." tasks: - name: Start httpd service: name: httpd state: started - name: Create index.html using Jinja2 template: src: index.j2 dest: /var/www/html/index.html

Create node-reboot.yml

--- - hosts: become: yes tasks: - name: Check the uptime shell: uptime register: UPTIME_PRE_REBOOT - debug: msg={{UPTIME_PRE_REBOOT.stdout}} - name: Check the kernel info before the reboot shell: uname -a register: Kernel_PRE_REBOOT - debug: msg={{Kernel_PRE_REBOOT.stdout}} - name: Unconditionally reboot the machine with all defaults reboot: reboot_timeout: 600 - name: Check the uptime after reboot shell: uptime register: UPTIME_POST_REBOOT - debug: msg={{UPTIME_POST_REBOOT.stdout}} - name: Check the kernel info after the reboot shell: uptrack-uname -a register: Kernel_POST_REBOOT - debug: msg={{Kernel_POST_REBOOT.stdout}}

Sunday, August 25, 2024

How to check the disk info speed and unreadable blocks

# Show info about disk sda hdparm -i /dev/sda # Perform a read speed test on disk sda hdparm -tT /dev/sda # Test for unreadable blocks on disk sda badblocks -s /dev/sda

Wednesday, August 14, 2024

Monday, May 27, 2024

How to unzip multiple files in Linux

for I in `ls p24436624_121020_Linux-x86-64*f10.zip` do unzip $I done

How to set the time in the aruba switch and sync with the ntp.

login to the Switch configure terminal clock set 05/27/2024 03:04:30 timesync ntp ntp enable show ntp status write memory.

Saturday, May 18, 2024