Quick reference sheet: Docker

Here is a detailed quick reference sheet for Docker:

Core concepts

Docker image: A Docker image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.

Docker container: A Docker container is a running instance of a Docker image. Containers are isolated from each other and the underlying host system, making them portable and scalable.

Docker registry: A Docker registry is a central repository for Docker images. The most popular Docker registry is Docker Hub.

Useful commands

docker build: Builds a Docker image from a Dockerfile.

docker run: Creates and runs a Docker container from an image.

docker ps: Lists all running Docker containers.

docker stop: Stops a running Docker container.

docker rm: Removes a Docker container.

docker images: Lists all local Docker images.

docker pull: Pulls a Docker image from a registry.

docker push: Pushes a Docker image to a registry.

Example Dockerfile

Dockerfile

FROM nginx:latest

COPY nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 80

This Dockerfile will build a Docker image that contains the nginx web server. The COPY instruction copies the nginx.conf configuration file to the container. The EXPOSE instruction exposes port 80 on the container, which is the port that nginx uses to listen for web traffic.

Tips and tricks

Use Docker Compose to manage multiple Docker containers as a single application.

Use Docker volumes to share data between Docker containers and the host system.

Use Docker networks to connect Docker containers to each other and to external networks.

Use Docker labels to organize and manage Docker containers.

Use Docker images to build and deploy your applications in a consistent and repeatable way.

Additional Reference sheet items

Docker networking: Docker provides a variety of networking options for Docker containers, including bridge networks, overlay networks, and host networks.

Docker security: Docker provides a number of security features, such as isolation, content trust, and network security.

Docker troubleshooting: There are a number of tools and resources available to help you troubleshoot Docker problems.

For more information on Docker, please see the official Docker documentation: https://docs.docker.com/

Additional tips for using Docker:

  • Use a Dockerfile to build your images. This will make it easier to reproduce your images and deploy them to different environments.

  • Use Docker Compose to manage your applications. This will make it easier to start, stop, and manage multiple containers as a single unit.

  • Use Docker volumes to share data between containers and the host system. This will make it easier to persist data and make it available to multiple containers.

  • Use Docker networks to connect containers to each other and to external networks. This will make it easier to communicate between containers and to access the internet.

  • Use Docker labels to organize and manage your containers. This can make it easier to find and manage specific containers.

  • Use Docker images to build and deploy your applications in a consistent and repeatable way. This can help you to save time and reduce errors.

I

Quick Reference Sheets

                                         Quick reference sheet: Chef tool

Core concepts

Chef client: The Chef client is a software agent that runs on nodes and executes cookbooks.

Chef server: The Chef server is a central repository for cookbooks and other Chef configuration files.

Cookbook: A cookbook is a set of recipes that define the desired state of a node.

Recipe: A recipe is a step-by-step procedure that describes how to configure a node.

Resource: A resource is a specific object on a node, such as a file, package, or service.

Attribute: An attribute is a variable that can be used in recipes to configure resources.

Useful commands

knife: The knife command-line tool is used to interact with the Chef server.

knife cookbook create: Creates a new cookbook.

knife cookbook upload: Uploads a cookbook to the Chef server.

knife node create: Creates a new node.

knife node run_list add <node> <recipe>: Adds a recipe to the node's run list.

chef-client: Runs the Chef client on a node.

Example recipe

Ruby

package 'nginx' do

action :install

end

service 'nginx' do

action :start

end

This recipe will install and start the nginx package on the node.

Tips and tricks

Use Chef roles to organize your cookbooks and make them easier to maintain.

Use Chef data bags to store sensitive data, such as passwords.

Use Chef environments to isolate different environments, such as development, staging, and production.

Use Chef search to find nodes based on their attributes.

Use Chef reporting to track the progress of your Chef runs.

Additional quick reference sheet items

Chef templates: Chef templates can be used to generate files, such as configuration files or startup scripts.

Chef notifications: Chef notifications can be used to trigger other tasks when a resource is created, updated, or deleted.

Chef handlers: Chef handlers can be used to respond to events, such as node failures or cookbook errors.

Chef cookbooks: There are many thousands of Chef cookbooks available online, including cookbooks for popular software packages and cloud platforms.

For more information on the Chef tool, please see the official Chef documentation: https://docs.chef.io/

Quick reference sheet: Ansible tool

Ansible is an open-source IT automation tool that uses a simple language to automate tasks. It is agentless, which means that it does not require any software to be installed on the target hosts. Ansible is also push-based, which means that it pushes commands to the target hosts from the control node.

Here is a quick reference sheet for Ansible:

Getting started

  • Install Ansible on the control node.

  • Create an Ansible inventory file. This file lists the target hosts that you want to automate.

  • Write Ansible playbooks. Playbooks are YAML files that define the tasks that you want to automate.

  • Run Ansible playbooks. You can use the ansible-playbook command to run playbooks.

Basic commands

  • ansible-playbook: Runs an Ansible playbook.

  • ansible-ad-hoc: Runs an ad-hoc command on the target hosts.

  • ansible-inventory: Lists the target hosts in the inventory file.

  • ansible-gather-facts: Collects facts about the target hosts.

Useful modules

  • file: Manages files and directories.

  • service: Manages services.

  • package: Manages software packages.

  • user: Manages users and groups.

  • shell: Runs shell commands.

Example playbook

YAML

---

- hosts: all

tasks:

- name: Update all packages

apt:

update_cache: yes

cache_valid_time: 3600

become: yes

- name: Install the nginx package

apt:

name: nginx

state: present

become: yes

- name: Start the nginx service

service:

name: nginx

state: started

become: yes

This playbook will update the package cache, install the nginx package, and start the nginx service on all of the target hosts.

Tips and tricks

  • Use Ansible variables to make your playbooks more reusable.

  • Use Ansible roles to organize your playbooks and make them easier to maintain.

  • Use Ansible handlers to respond to events.

  • Use Ansible conditional statements to control the flow of your playbooks.

For more information on Ansible, please see the official Ansible documentation: https://docs.ansible.com/ansible/latest/

                                Quick reference sheet: Puppet tool

Puppet is an open-source configuration management tool that uses a declarative language to define the desired state of a system. Puppet can be used to manage a wide range of systems, including servers, desktops, and networking equipment.

Core concepts

Puppet master: The Puppet master is a central server that stores Puppet manifests and configuration data.

Puppet agent: The Puppet agent is a software agent that runs on each node and executes Puppet manifests.

Manifest: A Puppet manifest is a text file that defines the desired state of a system.

Resource: A resource is a specific object on a system, such as a file, package, or service.

Attribute: An attribute is a variable that can be used in manifests to configure resources.

Useful commands

puppet agent: Runs the Puppet agent on a node.

puppet apply: Applies a Puppet manifest to a node.

puppet config: Displays the Puppet configuration.

puppet resource: Displays information about a Puppet resource.

puppet module: Installs or uninstalls Puppet modules.

Example manifest

Puppet

package { 'nginx':

ensure => present,

}

service { 'nginx':

ensure => running,

}

This manifest will ensure that the nginx package is installed and running on the node.

Tips and tricks

Use Puppet modules to organize your manifests and make them easier to maintain.

Use Puppet data bags to store sensitive data, such as passwords.

Use Puppet environments to isolate different environments, such as development, staging, and production.

Use Puppet facts to gather information about nodes and use that information in your manifests.

Use Puppet reporting to track the progress of your Puppet runs.

Additional quick reference sheet items

Puppet templates: Puppet templates can be used to generate files, such as configuration files or startup scripts.

Puppet notifications: Puppet notifications can be used to trigger other tasks when a resource is created, updated, or deleted.

Puppet handlers: Puppet handlers can be used to respond to events, such as node failures or manifest errors.

Puppet modules: There are many thousands of Puppet modules available online, including modules for popular software packages and cloud platforms.

For more information on the Puppet tool, please see the official Puppet documentation: https://puppet.com/docs/puppet/latest/

Additional tips for using Puppet:

Use a manifest to define the desired state of your system, rather than using scripts to perform ad-hoc configuration changes. This will make your system more manageable and less prone to errors.

Use modules to organize your manifests and make them easier to reuse.

Use data bags to store sensitive data, such as passwords. This will help to keep your data secure.

Use environments to isolate different environments, such as development, staging, and production. This will help to prevent accidental changes to production systems.

Use facts to gather information about your nodes and use that information in your manifests. This will make your manifests more dynamic and reusable.

Use reporting to track the progress of your Puppet runs and to identify any problems.

                                Quick reference sheet: Kubernetes

Here is a quick reference sheet for Kubernetes with a few examples:

Core concepts

Kubernetes cluster: A Kubernetes cluster is a group of machines that work together to run containerized applications.

Node: A node is a machine in a Kubernetes cluster. Nodes can be physical machines or virtual machines.

Pod: A pod is the basic unit of computing in Kubernetes. A pod contains one or more containers, along with shared storage and networking.

Deployment: A deployment is a Kubernetes object that defines the desired state of a set of pods. Kubernetes will automatically create, update, or delete pods to match the desired state.

Service: A service is a Kubernetes object that exposes pods to the outside world. A service can be exposed using a variety of protocols, such as HTTP, TCP, or UDP.

Useful commands

kubectl get pods: Lists all pods in the current namespace.

kubectl get deployments: Lists all deployments in the current namespace.

kubectl get services: Lists all services in the current namespace.

kubectl describe pod <pod_name>: Displays detailed information about a pod.

kubectl describe deployment <deployment_name>: Displays detailed information about a deployment.

kubectl describe service <service_name>: Displays detailed information about a service.

Example deployment

YAML

apiVersion: v1

kind: Service

metadata:

name: my-service

spec:

selector:

app: my-app

ports:

- port: 80

targetPort: 80

This deployment will create three pods running the my-app image. The pods will be exposed on port 80.

Example service

YAML

apiVersion: v1

kind: Service

metadata:

name: my-service

spec:

selector:

app: my-app

ports:

- port: 80

targetPort: 80

This service will expose the pods in the my-deployment deployment on port 80.

Additional quick reference sheet items

Kubernetes namespaces: Namespaces are a way to isolate Kubernetes resources from each other.

Kubernetes labels: Labels are key-value pairs that can be attached to Kubernetes resources. Labels can be used to filter and select resources.

Kubernetes annotations: Annotations are key-value pairs that can be attached to Kubernetes resources. Annotations are used to store additional information about resources.

Kubernetes resources: There are many different types of Kubernetes resources, such as pods, deployments, services, and nodes.

For more information on Kubernetes, please see the official Kubernetes documentation: https://kubernetes.io/docs/home/

Additional tips for using Kubernetes:

Use namespaces to isolate your Kubernetes resources from each other. This will help to prevent conflicts and make your cluster easier to manage.

Use labels and annotations to organize and manage your Kubernetes resources.

Use the Kubernetes documentation to learn about the different types of Kubernetes resources and how to use them.

Use the kubectl command-line tool to manage your Kubernetes cluster.

                                           Quick reference sheet: JIRA

Basics

JIRA Software is a project management tool that helps teams to plan, track, and release software.

Issues are the basic building blocks of JIRA Software. Issues can be used to track bugs, features, tasks, and other work items.

Projects are used to organize issues into logical groups.

Workflows define the steps that an issue must go through before it is resolved.

Permissions control who can view and edit issues.

Unique features

Agile boards provide a visual way to track the progress of issues.

Custom fields allow you to add additional information to issues, such as severity, priority, and estimated effort.

JQL is a powerful search query language that allows you to find and filter issues.

Reports provide insights into the progress of your projects and teams.

Tips and tricks

Use agile boards to track the progress of your issues and identify bottlenecks.

Use custom fields to add additional information to issues, such as severity, priority, and estimated effort.

Use JQL to find and filter issues.

Use reports to gain insights into the progress of your projects and teams.

Additional features

  • Integrations with other tools, such as GitHub, Slack, and Confluence.

  • Automation rules to automate repetitive tasks.

  • Mobile apps for iOS and Android.

Example workflow

  1. Create an issue for a new feature.

  2. Assign the issue to a developer.

  3. The developer estimates the effort required to complete the feature.

  4. The developer works on the feature and updates the issue regularly.

  5. When the feature is complete, the developer marks the issue as resolved.

  6. A tester tests the feature and marks the issue as closed.

Conclusion

JIRA Software is a powerful project management tool that can help teams to plan, track, and release software. By using the features described in this quick reference sheet, you can get the most out of JIRA Software and improve the efficiency of your team.

                        Quick Reference Sheet: Red-Hat Linux 

Here is a full basic to advanced reference sheet for Red Hat Linux with

Basic Commands

  • ls: List the contents of the current directory.

  • cd: Change directory.

  • pwd: Print the working directory.

  • mkdir: Create a new directory.

  • rmdir: Remove a directory.

  • cp: Copy a file or directory.

  • mv: Move a file or directory.

  • rm: Remove a file or directory.

  • touch: Create a new file.

  • cat: Concatenate and print files.

  • grep: Search for a pattern in a file.

  • sudo: Execute a command as the root user.

Package Management

  • yum: The default package manager in Red Hat Linux.

  • yum install: Install a package.

  • yum update: Update all installed packages.

  • yum remove: Remove a package.

  • yum search: Search for a package.

  • yum info: Get information about a package.

  • dnf: A newer package manager that is replacing yum in Red Hat Enterprise Linux 8.

  • dnf install: Install a package.

  • dnf update: Update all installed packages.

  • dnf remove: Remove a package.

  • dnf search: Search for a package.

  • dnf info: Get information about a package.

System Administration

  • systemctl: Control system services.

  • systemctl start: Start a system service.

  • systemctl stop: Stop a system service.

  • systemctl enable: Enable a system service to start at boot.

  • systemctl disable: Disable a system service from starting at boot.

  • ps aux: List all running processes.

  • top: Monitor system performance and resource usage.

  • df: Display disk usage statistics.

  • du: Display disk usage statistics for a directory.

  • free: Display memory usage statistics.

  • htop: An interactive process viewer.

  • useradd: Create a new user account.

  • userdel: Delete a user account.

  • passwd: Change the password for a user account.

  • groupadd: Create a new group.

  • groupdel: Delete a group.

  • gpasswd: Change the password for a group.

Network Commands

  • ifconfig: Display network interface information.

  • ip: Configure network interfaces.

  • ping: Test network connectivity to a host.

  • traceroute: Trace the route of a packet to a host.

  • nslookup: Resolve a hostname to an IP address.

  • dig: Perform DNS queries.

  • netstat: Display network statistics.

  • ss: Display socket statistics.

  • tcpdump: Capture and analyze network traffic.

  • wireshark: A graphical network analyzer.

Other Useful Commands

  • man: Display the man page for a command.

  • history: Display the command history.

  • alias: Create an alias for a command.

  • export: Set an environment variable.

  • unset: Unset an environment variable.

  • find: Find files and directories.

  • tar: Create and extract archive files.

  • gzip: Compress files.

  • bzip2: Compress files.

  • unzip: Extract zip archive files.

  • tarball: A tar archive file that is compressed with gzip.

  • rpm: Manage RPM packages.

  • sed: Perform search and replace operations on files.

  • awk: Perform pattern matching and processing on files.

  • vim: A powerful text editor.

  • nano: A simple text editor.

Advanced Commands

  • lvm: Logical Volume Management.

  • firewalld: Firewall management.

  • selinux: Security-Enhanced Linux.

  • rsync: Remote file transfer and synchronization.

  • ssh: Secure Shell.

  • sudoers: Configure sudo permissions.

  • cron: Job scheduling.

  • sysctl: Configure system kernel parameters.

  • module: Load and unload kernel modules.

  • strace: Trace system calls.

  • ltrace: Trace library calls.

  • gdb: GNU Debugger.

                        Quick Reference Sheet: AIX 

Here is a full basic to advanced reference sheet for AIX

Basic Commands

  • ls: List the contents of the current directory.

  • cd: Change directory.

  • pwd: Print the working directory.

  • mkdir: Create a new directory.

  • rmdir: Remove a directory.

  • cp: Copy a file or directory.

  • mv: Move a file or directory.

  • rm: Remove a file or directory.

  • touch: Create a new file.

  • cat: Concatenate and print files.

  • grep: Search for a pattern in a file.

System Administration

  • bootinfo: Display system information.

  • chdev: Change device attributes.

  • crle: Create logical volumes.

  • lsdev: List devices.

  • lsvg: List volume groups.

  • mklv: Create logical volumes.

  • odmget: Get ODM attributes.

  • odmset: Set ODM attributes.

  • ps: List processes.

  • top: Monitor system performance.

  • vmstat: Display virtual memory statistics.

  • df: Display disk usage statistics.

  • free: Display memory usage statistics.

Network Commands

  • ifconfig: Display network interface information.

  • ip: Configure network interfaces.

  • ping: Test network connectivity to a host.

  • traceroute: Trace the route of a packet to a host.

  • nslookup: Resolve a hostname to an IP address.

  • dig: Perform DNS queries.

  • netstat: Display network statistics.

  • ss: Display socket statistics.

  • tcpdump: Capture and analyze network traffic.

  • wireshark: A graphical network analyzer.

Other Useful Commands

  • man: Display the man page for a command.

  • history: Display the command history.

  • alias: Create an alias for a command.

  • export: Set an environment variable.

  • unset: Unset an environment variable.

  • find: Find files and directories.

  • tar: Create and extract archive files.

  • gzip: Compress files.

  • bzip2: Compress files.

  • unzip: Extract zip archive files.

  • make: Build software from source code.

  • gcc: The GNU C compiler.

  • gdb: GNU Debugger.

Advanced Commands

  • lvm: Logical Volume Management.

  • firewall: Firewall management.

  • selinux: Security-Enhanced Linux.

  • rsync: Remote file transfer and synchronization.

  • ssh: Secure Shell.

  • sudoers: Configure sudo permissions.

  • cron: Job scheduling.

  • sysctl: Configure system kernel parameters.

  • ltrace: Trace library calls.

  • strace: Trace system calls.

Additional AIX Commands

  • smit: System Management Interface Tool. A graphical user interface for system administration tasks.

  • nim: Network Installation Manager. A tool for remotely installing and managing AIX systems.

  • bosboot: Boot manager.

  • bosbootmgr: Boot manager configuration tool.

  • mkitab: Create a bootable installation media.

  • chgsysattr: Change system attributes.

  • lsattr: List object attributes.

  • ckattr: Check object attributes.

  • chguser: Change user attributes.

  • lsuser: List user attributes.

  • chggrp: Change group attributes.

  • lsgrp: List group attributes.

  • odmget: Get ODM attributes.

  • odmset: Set ODM attributes.

  • odmquery: Query the ODM.

  • lppkg: Package management tool.

  • installp: Install software packages.

  • deinstallp: Uninstall software packages.

  • refreshp: Update software packages.

                        Quick Reference Sheet: Oracle Linux

Here is a full basic to advanced cheat sheet for Oracle Linux with 100+ possible quick reference commands:

Basic Commands

  • ls: List the contents of the current directory.

  • cd: Change directory.

  • pwd: Print the working directory.

  • mkdir: Create a new directory.

  • rmdir: Remove a directory.

  • cp: Copy a file or directory.

  • mv: Move a file or directory.

  • rm: Remove a file or directory.

  • touch: Create a new file.

  • cat: Concatenate and print files.

  • grep: Search for a pattern in a file.

  • sudo: Execute a command as the root user.

Package Management

  • yum: The default package manager in Oracle Linux.

  • yum install: Install a package.

  • yum update: Update all installed packages.

  • yum remove: Remove a package.

  • yum search: Search for a package.

  • yum info: Get information about a package.

  • dnf: A newer package manager that is replacing yum in Oracle Linux 8.

  • dnf install: Install a package.

  • dnf update: Update all installed packages.

  • dnf remove: Remove a package.

  • dnf search: Search for a package.

  • dnf info: Get information about a package.

System Administration

  • systemctl: Control system services.

  • systemctl start: Start a system service.

  • systemctl stop: Stop a system service.

  • systemctl enable: Enable a system service to start at boot.

  • systemctl disable: Disable a system service from starting at boot.

  • ps aux: List all running processes.

  • top: Monitor system performance and resource usage.

  • df: Display disk usage statistics.

  • du: Display disk usage statistics for a directory.

  • free: Display memory usage statistics.

  • htop: An interactive process viewer.

  • useradd: Create a new user account.

  • userdel: Delete a user account.

  • passwd: Change the password for a user account.

  • groupadd: Create a new group.

  • groupdel: Delete a group.

  • gpasswd: Change the password for a group.

Network Commands

  • ifconfig: Display network interface information.

  • ip: Configure network interfaces.

  • ping: Test network connectivity to a host.

  • traceroute: Trace the route of a packet to a host.

  • nslookup: Resolve a hostname to an IP address.

  • dig: Perform DNS queries.

  • netstat: Display network statistics.

  • ss: Display socket statistics.

  • tcpdump: Capture and analyze network traffic.

  • wireshark: A graphical network analyzer.

Other Useful Commands

  • man: Display the man page for a command.

  • history: Display the command history.

  • alias: Create an alias for a command.

  • export: Set an environment variable.

  • unset: Unset an environment variable.

  • find: Find files and directories.

  • tar: Create and extract archive files.

  • gzip: Compress files.

  • bzip2: Compress files.

  • unzip: Extract zip archive files.

  • make: Build software from source code.

  • gcc: The GNU C compiler.

  • gdb: GNU Debugger.

Advanced Commands

  • lvm: Logical Volume Management.

  • firewalld: Firewall management.

  • selinux: Security-Enhanced Linux.

  • rsync: Remote file transfer and synchronization.

  • ssh: Secure Shell.

  • sudoers: Configure sudo permissions.

  • cron: Job scheduling.

  • sysctl: Configure system kernel parameters.

  • ltrace: Trace library calls.

  • strace: Trace system calls.

Oracle Linux Specific Commands

  • yum-config-manager: Manage yum repositories.

  • udevadm: Manage udev devices.

  • grub2-mkconfig: Update the GRUB 2 configuration file.

  • grub2-edit: Edit the GRUB 2 configuration file.

  • olsadmin: Oracle Linux System Administration Tool.

  • olcli: Oracle Linux Command Line Interface.

                        Quick Reference Sheet: CISCO Firewall

Basic Commands:

  • show version: Display the firewall's version information.

  • show interface: Display the firewall's interfaces and their status.

  • show ip route: Display the firewall's routing table.

  • show ip nat: Display the firewall's NAT configuration.

  • show firewall policy: Display the firewall's security policy.

  • show firewall filter: Display the firewall's packet filtering rules.

  • show firewall access-list: Display the firewall's access lists.

  • show firewall configuration: Display the firewall's full configuration.

Configuration Commands:

  • interface: Configure a firewall interface.

  • ip address: Assign an IP address to a firewall interface.

  • ip route: Add a route to the firewall's routing table.

  • ip nat: Configure NAT on the firewall.

  • firewall policy: Configure the firewall's security policy.

  • firewall filter: Configure packet filtering rules on the firewall.

  • firewall access-list: Configure access lists on the firewall.

Troubleshooting Commands:

  • debug firewall: Enable firewall debugging.

  • show debug firewall: Display firewall debug output.

  • packet-tracer: Trace a packet through the firewall.

  • show firewall session: Display a list of active firewall sessions.

  • show firewall log: Display the firewall's log file.

Advanced Commands:

  • zone: Configure a firewall zone.

  • policy-map: Configure a policy map.

  • class-map: Configure a class map.

  • interface-vlan: Configure a VLAN interface.

  • ipsec: Configure IPsec on the firewall.

  • vpn: Configure a VPN on the firewall.

  • set security levels: Configure the firewall's security levels.

Additional Commands:

  • show run: Display the firewall's running configuration.

  • configure terminal: Enter configuration mode.

  • end: Exit configuration mode.

  • copy running-config startup-config: Save the firewall's running configuration to the startup configuration.

  • reload: Reload the firewall's configuration.

                        Quick Reference Sheet: CISCO Switches

Basic Commands:

  • show version: Display the switch's version information.

  • show running-config: Display the switch's running configuration.

  • show interface: Display the switch's interfaces and their status.

  • show ip route: Display the switch's routing table.

  • show mac address-table: Display the switch's MAC address table.

  • show arp: Display the switch's ARP table.

  • show cdp neighbors: Display the switch's CDP neighbors.

  • show lldp neighbors: Display the switch's LLDP neighbors.

  • ping: Test network connectivity to a host.

  • traceroute: Trace the route of a packet to a host.

Configuration Commands:

  • interface: Configure a switch interface.

  • ip address: Assign an IP address to a switch interface.

  • switchport mode: Configure the mode of a switch interface (e.g., access, trunk).

  • switchport trunk allowed vlan: Configure the allowed VLANs on a switch trunk interface.

  • spanning-tree mode: Configure the spanning-tree mode on the switch.

  • vlan: Create a VLAN.

  • vtp mode: Configure the VTP mode on the switch.

  • cdp enable: Enable CDP on the switch.

  • lldp enable: Enable LLDP on the switch.

Troubleshooting Commands:

  • debug ether: Enable Ethernet debugging.

  • show debug ether: Display Ethernet debug output.

  • show interface: Display the switch's interfaces and their status.

  • show mac address-table: Display the switch's MAC address table.

  • show arp: Display the switch's ARP table.

Advanced Commands:

  • stp region-name: Configure the STP region name on the switch.

  • stp priority: Configure the STP priority on a switch interface.

  • stp bpduguard: Enable BPDU Guard on a switch interface.

  • stp portfast: Enable PortFast on a switch interface.

  • vlan trunk encapsulation dot1q: Configure the trunk encapsulation type on a switch trunk interface.

  • vlan trunk pruning: Enable trunk pruning on a switch trunk interface.

  • lacp: Configure LACP on the switch.

  • errdisable recovery interval: Configure the errdisable recovery interval on the switch.

  • snmp-server community: Configure a SNMP community on the switch.

Additional Commands:

  • configure terminal: Enter configuration mode.

  • end: Exit configuration mode.

  • copy running-config startup-config: Save the switch's running configuration to the startup configuration.

  • reload: Reload the switch's configuration.

                        Quick Reference Sheet: CISCO Routers

Basic Commands:

  • show version: Display the router's version information.

  • show running-config: Display the router's running configuration.

  • show interface: Display the router's interfaces and their status.

  • show ip route: Display the router's routing table.

  • show ip arp: Display the router's ARP table.

  • ping: Test network connectivity to a host.

  • traceroute: Trace the route of a packet to a host.

  • telnet: Connect to a remote device using Telnet.

  • ssh: Connect to a remote device using SSH.

Configuration Commands:

  • interface: Configure a router interface.

  • ip address: Assign an IP address to a router interface.

  • ip router rip: Enable RIP on the router.

  • ip router ospf: Enable OSPF on the router.

  • ip nat: Configure NAT on the router.

  • ip access-list: Configure access lists on the router.

  • router ospf: Configure OSPF on the router.

Troubleshooting Commands:

  • debug ip routing: Enable IP routing debugging.

  • show debug ip routing: Display IP routing debug output.

  • show ip route: Display the router's routing table.

  • show ip arp: Display the router's ARP table.

  • show ip nat: Display the router's NAT configuration.

  • show ip access-list: Display the router's access lists.

  • show router ospf: Display the router's OSPF configuration.

Advanced Commands:

  • bgp: Configure BGP on the router.

  • isis: Configure IS-IS on the router.

  • vrf: Configure VRFs on the router.

  • mpls: Configure MPLS on the router.

  • qos: Configure QoS on the router.

  • route-map: Configure route maps on the router.

  • policy-map: Configure policy maps on the router.

Additional Commands:

  • configure terminal: Enter configuration mode.

  • end: Exit configuration mode.

  • copy running-config startup-config: Save the router's running configuration to the startup configuration.

  • reload: Reload the router's configuration.

Here are some additional commands that may be useful for troubleshooting Cisco routers:

  • show ip interface: Display detailed information about a specific router interface.

  • show ip ospf neighbor: Display the OSPF neighbors of a router interface.

  • show ip bgp neighbor: Display the BGP neighbors of a router interface.

  • show ip nat translation: Display the active NAT translations on the router.

  • show ip access-list <ACL name>: Display the contents of an access list.

  • show ip route <destination network>: Display the routing information for a specific destination network.

  • show ip ospf route <destination network>: Display the OSPF routing information for a specific destination network.

  • show ip bgp route <destination network>: Display the BGP routing information for a specific destination network.

                                   Quick Reference Sheet: Azure

Basic Commands

  • az account list: List all Azure accounts associated with the current user.

  • az account show: Display the details of the current Azure account.

  • az login: Log in to Azure.

  • az logout: Log out of Azure.

  • az vm list: List all virtual machines in the current Azure subscription.

  • az vm show: Display the details of a specific virtual machine.

  • az vm create: Create a new virtual machine.

  • az vm delete: Delete a virtual machine.

  • az storage account list: List all storage accounts in the current Azure subscription.

  • az storage account show: Display the details of a specific storage account.

  • az storage account create: Create a new storage account.

  • az storage account delete: Delete a storage account.

  • az network vnet list: List all virtual networks in the current Azure subscription.

  • az network vnet show: Display the details of a specific virtual network.

  • az network vnet create: Create a new virtual network.

  • az network vnet delete: Delete a virtual network.

Advanced Commands

  • az vm run-command: Run a command on a virtual machine.

  • az vm snapshot create: Create a snapshot of a virtual machine.

  • az vm snapshot restore: Restore a virtual machine from a snapshot.

  • az vm image create: Create a custom image from a virtual machine.

  • az vm image deploy: Deploy a virtual machine from a custom image.

  • az storage blob list: List all blobs in a storage account container.

  • az storage blob upload: Upload a blob to a storage account container.

  • az storage blob download: Download a blob from a storage account container.

  • az network vnet subnet create: Create a new subnet in a virtual network.

  • az network vnet peering create: Create a peering between two virtual networks.

  • az network nsg create: Create a new network security group.

  • az network nsg rule create: Create a new rule in a network security group.

Additional Commands

  • az appservice webapp list: List all web apps in the current Azure subscription.

  • az appservice webapp show: Display the details of a specific web app.

  • az appservice webapp create: Create a new web app.

  • az appservice webapp delete: Delete a web app.

  • az sql server list: List all SQL servers in the current Azure subscription.

  • az sql server show: Display the details of a specific SQL server.

  • az sql server create: Create a new SQL server.

  • az sql server delete: Delete a SQL server.

  • az sql database list: List all SQL databases in the current Azure subscription.

  • az sql database show: Display the details of a specific SQL database.

  • az sql database create: Create a new SQL database.

  • az sql database delete: Delete a SQL database.

  • az cosmosdb database list: List all Cosmos DB databases in the current Azure subscription.

  • az cosmosdb database show: Display the details of a specific Cosmos DB database.

  • az cosmosdb database create: Create a new Cosmos DB database.

  • az cosmosdb database delete: Delete a Cosmos DB database.

  • az acr repository list: List all container registries in the current Azure subscription.

  • az acr repository show: Display the details of a specific container registry.

  • az acr repository create: Create a new container registry.

  • az acr repository delete: Delete a container registry.

                                   Quick Reference Sheet: AWS

Basic Commands

  • aws ec2 describe-instances: List all EC2 instances in the current AWS region.

  • aws ec2 describe-instance: Display the details of a specific EC2 instance.

  • aws ec2 start-instances: Start one or more EC2 instances.

  • aws ec2 stop-instances: Stop one or more EC2 instances.

  • aws ec2 terminate-instances: Terminate one or more EC2 instances.

  • aws s3 ls: List all objects in an S3 bucket.

  • aws s3 cp: Copy an object from one S3 bucket to another.

  • aws s3 rm: Delete an object from an S3 bucket.

  • aws rds describe-db-instances: List all RDS database instances in the current AWS region.

  • aws rds describe-db-instance: Display the details of a specific RDS database instance.

  • aws rds start-db-instance: Start an RDS database instance.

  • aws rds stop-db-instance: Stop an RDS database instance.

  • aws rds delete-db-instance: Delete an RDS database instance.

  • aws ec2 create-vpc: Create a new VPC.

  • aws ec2 create-subnet: Create a new subnet in a VPC.

  • aws ec2 create-security-group: Create a new security group.

Advanced Commands

  • aws ec2 launch-template create: Create a new launch template.

  • aws ec2 run-instances: Launch a new EC2 instance using a launch template.

  • aws s3 sync: Synchronize the contents of two S3 buckets.

  • aws rds create-db-snapshot: Create a snapshot of an RDS database instance.

  • aws rds restore-db-instance-from-db-snapshot: Restore an RDS database instance from a snapshot.

  • aws ec2 create-route-table: Create a new route table in a VPC.

  • aws ec2 associate-route-table: Associate a route table with a subnet.

  • aws ec2 create-network-acl: Create a new network ACL in a VPC.

  • aws ec2 associate-network-acl: Associate a network ACL with a subnet.

  • aws ec2 create-gateway: Create a new gateway in a VPC.

  • aws ec2 attach-gateway-to-vpc: Attach a gateway to a VPC.

Additional Commands

  • aws elb describe-load-balancers: List all load balancers in the current AWS region.

  • aws elb describe-load-balancer: Display the details of a specific load balancer.

  • aws elb create-load-balancer: Create a new load balancer.

  • aws elb delete-load-balancer: Delete a load balancer.

  • aws autoscaling describe-auto-scaling-groups: List all Auto Scaling groups in the current AWS region.

  • aws autoscaling describe-auto-scaling-group: Display the details of a specific Auto Scaling group.

  • aws autoscaling create-auto-scaling-group: Create a new Auto Scaling group.

  • aws autoscaling delete-auto-scaling-group: Delete an Auto Scaling group.

  • aws cloudwatch describe-alarms: List all CloudWatch alarms in the current AWS region.

  • aws cloudwatch describe-alarm: Display the details of a specific CloudWatch alarm.

  • aws cloudwatch put-metric-alarm: Create a new CloudWatch alarm.

  • aws cloudwatch delete-alarms: Delete one or more CloudWatch alarms.

  • aws iam list-users: List all IAM users in the current AWS account.

  • aws iam describe-user: Display the details of a specific IAM user.

  • aws iam create-user: Create a new IAM user.

  • aws iam delete-user: Delete an IAM user.

                                   Quick Reference Sheet: GCP

Basic Commands

  • gcloud compute instances list: List all Compute Engine instances in the current project.

  • gcloud compute instances show: Display the details of a specific Compute Engine instance.

  • gcloud compute instances create: Create a new Compute Engine instance.

  • gcloud compute instances delete: Delete a Compute Engine instance.

  • gcloud compute disks list: List all Compute Engine disks in the current project.

  • gcloud compute disks show: Display the details of a specific Compute Engine disk.

  • gcloud compute disks create: Create a new Compute Engine disk.

  • gcloud compute disks delete: Delete a Compute Engine disk.

  • gcloud compute networks list: List all Compute Engine networks in the current project.

  • gcloud compute networks show: Display the details of a specific Compute Engine network.

  • gcloud compute networks create: Create a new Compute Engine network.

  • gcloud compute networks delete: Delete a Compute Engine network.

Advanced Commands

  • gcloud compute instances create-from-image: Create a new Compute Engine instance from a custom image.

  • gcloud compute instances attach-disk: Attach a Compute Engine disk to an instance.

  • gcloud compute instances detach-disk: Detach a Compute Engine disk from an instance.

  • gcloud compute instances start: Start a Compute Engine instance.

  • gcloud compute instances stop: Stop a Compute Engine instance.

  • gcloud compute instances restart: Restart a Compute Engine instance.

  • gcloud compute snapshots create: Create a snapshot of a Compute Engine disk.

  • gcloud compute snapshots restore: Restore a snapshot to a Compute Engine disk.

  • gcloud compute networks create-subnetwork: Create a subnetwork in a Compute Engine network.

  • gcloud compute networks create-firewall-rule: Create a firewall rule in a Compute Engine network.

  • gcloud compute networks create-load-balancer: Create a load balancer in a Compute Engine network.

Additional Commands

  • gcloud app deploy: Deploy an App Engine app.

  • gcloud app list: List all App Engine apps in the current project.

  • gcloud app describe: Display the details of a specific App Engine app.

  • gcloud app delete: Delete an App Engine app.

  • gcloud sql instances list: List all Cloud SQL instances in the current project.

  • gcloud sql instances show: Display the details of a specific Cloud SQL instance.

  • gcloud sql instances create: Create a new Cloud SQL instance.

  • gcloud sql instances delete: Delete a Cloud SQL instance.

  • gcloud bigquery jobs list: List all BigQuery jobs in the current project.

  • gcloud bigquery jobs show: Display the details of a specific BigQuery job.

  • gcloud bigquery jobs query: Run a BigQuery query.

  • gcloud bigquery jobs load: Load data into a BigQuery table.

  • gcloud bigquery jobs export: Export data from a BigQuery table.

This is just a sample of the many commands available for GCP administration. For more information, please consult the GCP documentation.

Here are some additional commands that may be useful for GCP administration:

  • gcloud projects list: List all GCP projects associated with the current user.

  • gcloud projects get-iam-policy: Display the IAM policy for a GCP project.

  • gcloud projects set-iam-policy: Set the IAM policy for a GCP project.

  • gcloud organizations list: List all GCP organizations associated with the current user.

  • gcloud organizations get-iam-policy: Display the IAM policy for a GCP organization.

  • gcloud organizations set-iam-policy: Set the IAM policy for a GCP organization.

  • gcloud billing get-usage: Display the billing usage for the current GCP project or organization.

  • gcloud logging logs list: List all Cloud Logging logs in the current project.

  • gcloud logging logs show: Display the details of a specific Cloud Logging log.

  • gcloud monitoring metrics list: List all Cloud Monitoring metrics in the current project.

  • gcloud monitoring metrics describe: Display the details of a specific Cloud Monitoring metric.

  • gcloud monitoring alerts list: List all Cloud Monitoring alerts in the current project.

  • gcloud monitoring alerts describe: Display the details of a specific Cloud Monitoring alert.