Skip to content

Instantly share code, notes, and snippets.

@shanku9
shanku9 / AWS_Components.txt
Created January 14, 2024 00:20
AWD Components List
Compute
EC2 Virtual Private Servers
Lightsail Amazon's hosting provider (vps, dns, storage)
Lambda Functions you can run, written in Python, NodeJS, Go etc. Can run many in parallel.
Batch Run software jobs on EC2 machines
Elastic Beanstalk Run software on managed virtual machines
Serverless Application Repository Repository of serverless applications that you can deploy (on lambda)
AWS Outposts Basically run Amazon services on your own hardware (datacenter)
EC2 Image Builder Create EC2 (ami?) images automatically
fbc3l_admin@mpkt3prsyslog01:~$
fbc3l_admin@mpkt3prsyslog01:~$
fbc3l_admin@mpkt3prsyslog01:~$
fbc3l_admin@mpkt3prsyslog01:~$
fbc3l_admin@mpkt3prsyslog01:~$ sudo apt-get install gpg
Reading package lists... Done
Building dependency tree
Reading state information... Done
gpg is already the newest version (2.2.19-3ubuntu2.1).
The following package was automatically installed and is no longer required:
@shanku9
shanku9 / logs
Created June 30, 2022 19:15
gateway
root@mpkt3prsyslog01:/home/fbc3l_admin# apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:3 http://pkg.scaleft.com/deb linux InRelease [4,808 B]
Get:4 http://pkg.scaleft.com/deb focal InRelease [4,740 B]
Hit:5 http://ppa.launchpad.net/adiscon/v8-stable/ubuntu focal InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu focal-security InRelease
Err:3 http://pkg.scaleft.com/deb linux InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F716E939977FC428
@shanku9
shanku9 / 1.6.1 to 1.7 Upgrade logs
Created March 25, 2022 20:16
1.6.1 to 1.7 Upgrade logs
# Pre Checks
magma@161magma:~$ sudo su
root@161magma:/home/magma# sudo apt policy magma | head
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
magma:
Installed: 1.6.1-1636529012-5d886707
Candidate: 1.6.1-1636529012-5d886707
Version table:
@shanku9
shanku9 / 1.7 Bare Metal Install logs
Created March 25, 2022 17:28
1.7 Bare Metal Install logs
# Run the agw_install_ubuntu.sh script ###
root@agw-170-install:/home/magma/magma/lte/gateway/deploy# ./agw_install_ubuntu.sh
# Installation Logs
root@agw-170-install:/home/magma# journalctl -u agw_installation
-- Logs begin at Wed 2022-03-23 19:01:43 UTC, end at Fri 2022-03-25 17:23>
Mar 25 17:01:35 agw-170-install systemd[1]: Starting AGW Installation...
Mar 25 17:01:35 agw-170-install bash[1022]: + addr1=
Mar 25 17:01:35 agw-170-install bash[1022]: + gw_addr=
Mar 25 17:01:35 agw-170-install bash[1022]: + MAGMA_USER=magma
root@agw-170-install:/home/magma# journalctl -u agw_installation
-- Logs begin at Wed 2022-03-23 19:01:43 UTC, end at Thu 2022-03-24 19:13:52 UTC. --
Mar 24 18:24:29 agw-170-install systemd[1]: Starting AGW Installation...
Mar 24 18:24:29 agw-170-install bash[1023]: + addr1=
Mar 24 18:24:29 agw-170-install bash[1023]: + gw_addr=
Mar 24 18:24:29 agw-170-install bash[1023]: + MAGMA_USER=magma
Mar 24 18:24:29 agw-170-install bash[1023]: + AGW_INSTALL_CONFIG_LINK=/etc/systemd/system/multi-user.target.wants/agw_installation.service
Mar 24 18:24:29 agw-170-install bash[1023]: + AGW_INSTALL_CONFIG=/lib/systemd/system/agw_installation.service
Mar 24 18:24:29 agw-170-install bash[1023]: + AGW_SCRIPT_PATH=/root/agw_install_ubuntu.sh
Mar 24 18:24:29 agw-170-install bash[1023]: + DEPLOY_PATH=/home/magma/magma/lte/gateway/deploy
@shanku9
shanku9 / 161 to 170 upgrade
Last active March 24, 2022 18:32
161 to 170 upgrade logs
root@agw-170-upgrade:/home/magma/magma/lte/gateway/release#
root@agw-170-upgrade:/home/magma/magma/lte/gateway/release#
root@agw-170-upgrade:/home/magma/magma/lte/gateway/release#
root@agw-170-upgrade:/home/magma/magma/lte/gateway/release# ./upgrade_magma.sh
Checking if the script has been executed by root user
You're about to upgrade magma to 1.7.0, are you sure?(y/n)y
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
@shanku9
shanku9 / nexus.xml
Created March 1, 2022 18:29
zabbix template
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2018-02-01T12:41:34Z</date>
<groups>
<group>
<name>Cisco</name>
</group>
</groups>
<templates>
@shanku9
shanku9 / 11319
Created February 15, 2022 18:21
install 11319 logs
➜ ~ ssh u204@10.253.1.90
u204@10.253.1.90's password:
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-99-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon 14 Feb 2022 07:53:58 PM UTC
@shanku9
shanku9 / 5gMagma.txt
Last active February 26, 2023 18:50
Enable 5G features
=================================================
Flags to enable for 5G Features on Magma
Add the following files to /var/opt/magma/configs
to override local configs instead of /etc/magma
=================================================
::::::::::::::
mme.yml
::::::::::::::
enable5g_features: true
enableConvergedCore: true