Uncategorized

Upgrading Ubuntu desktop or headless server

      1. Upgrade existing software.
        sudo apt update && sudo apt dist-upgrade
      2. Make sure you have update-manager-core package installed.
        sudo apt install update-manager-core
      3. Edit the configuration fileĀ /etc/update-manager/release-upgrades

        sudo nano /etc/update-manager/release-upgrades
      4. Change the value of Prompt from lts to normal.
        Prompt=normal
      5. Save and close the file andĀ run the following command to begin the upgrade process and follow the on-screen instructions.
        sudo do-release-upgrade
      6. Once the upgrade is finished, reboot your Ubuntu desktop or server.
      7. To check your Ubuntu version, run:
        lsb_release -a

     

Uncategorized

Throttling bandwidth in CISCO ASA 5505

This example shows how to throttle the bandwidth to 1 Mbps for a specific user in the outbound direction.

  1. Create access list:
    ciscoasa(config)# access-list WEB-LIMIT permit ip host 192.168.10.1 any
    ciscoasa(config)# class-map Class-Policy
    ciscoasa(config-cmap)# match access-list WEB-LIMIT
    ciscoasa(config-cmap)#exit
  2. Create policy map:
    ciscoasa(config)# policy-map POLICY-WEB
    ciscoasa(config-pmap)# class Class-Policy
    ciscoasa(config-pmap-c)# police output 1000000 conform-action transmit exceed-action drop
    ciscoasa(config-pmap-c)#exit
    ciscoasa(config-pmap)#exit
  3. Enable the policy:
    ciscoasa(config)# service-policy POLICY-WEB interface outside
Uncategorized

Enable SNMP on ESXi 6.5

  1. SSH or Telnet to your ESXi node using root-level credentials.
  2. Execute the following commands. Replace YOUR_STRING with your desired community string.
    esxcli system snmp set -r
    esxcli system snmp set -c YOUR_STRING
    esxcli system snmp set -p 161
    esxcli system snmp set -L "City, State, Country"
    esxcli system snmp set -C noc@example.com
    esxcli system snmp set -e yes
  3. Check status in Host –> Manage –> Services, you should see snmpd as “Running”