http://engineering.pivotal.io/post/running-tests-in-aws-lambda/
Lambda is just a Linux instance with some kinds of Linux Container, yet we are told that it is not Docker (see video above 13:00). I wanted to know what it is so I wrote a little bash script to find out:
|15:54:39|ec2-user@ip-172-31-10-191:[task]> pwd /var/task |15:54:44|ec2-user@ip-172-31-10-191:[task]> ls -l total 19840 -rwxr-xr-x 1 ec2-user ec2-user 608 Jul 21 13:11 bash_function.py -rw-rw-r-- 1 ec2-user ec2-user 9938026 Jul 21 14:31 bash_function.zip -rw-rw-r-- 1 ec2-user ec2-user 9844717 Jul 21 11:21 env.tgz -rwxr-xr-x 1 ec2-user ec2-user 497799 Jul 20 12:21 jq -rw-rw-r-- 1 ec2-user ec2-user 97 Jul 21 13:21 lambdaupdate -rw-rw-r-- 1 ec2-user ec2-user 5815 Jul 21 15:20 linuxinfo.sh -rw-rw-r-- 1 ec2-user ec2-user 1208 Jul 21 12:04 simple-awscli.sh -rwxr-xr-x 1 ec2-user ec2-user 167 Jul 21 11:20 v.sh |15:54:48|ec2-user@ip-172-31-10-191:[task]> cat bash_function.py from __future__ import print_function import json import os import subprocess import commands print('Loading function') def lambda_handler(event, context): #os.system("bash ec2.sh; uname -a;id;w;free -m;vmstat 2 10;df -h;netstat -in;cat /etc/issue; netstat -nr; echo $PATH;type aws; aws ec2 describe-instances; jq 2>&1; ls -l") print (commands.getstatusoutput('echo;cp linuxinfo.sh /tmp;cd /tmp;bash ./linuxinfo.sh;echo')) return 'Hello from Lambda' """ args = ("uname","-a") popen = subprocess.Popen(args, stdout=subprocess.PIPE) popen.wait() output = popen.stdout.read() print(output) """ |15:55:08|ec2-user@ip-172-31-10-191:[task]>
See linuxinfo on Github
Beginnig of Linuxinfo output: ip-10-13-200-37 Thu Jul 21 04:31:38 UTC 2016 Amazon Linux AMI release 2015.09 Kernel \r on an \m -------------------------------------------------------------------------------------------------- CPU model : Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz Number of cores : 2 CPU frequency : 2893.346 MHz Total amount of ram : 3767 MB Total amount of swap : 0 MB System uptime : 1:10, System version: Amazon Linux AMI release 2015.09 Kernel \r on an \m System kernel: Linux ip-10-13-200-37 4.1.19-24.31.amzn1.x86_64 #1 SMP Tue Mar 15 23:41:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux total used free shared buffers cached Mem: 3767 795 2972 0 20 556 -/+ buffers/cache: 217 3549 Swap: 0 0 0 Total: 3767 795 2972 Filesystem Size Used Avail Use% Mounted on /dev/xvda1 30G 2.8G 27G 10% / /dev/loop2 526M 44M 471M 9% /tmp Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg lo 65536 0 0 0 0 0 0 0 0 0 LRU vsb_3 1500 0 36 0 0 0 37 0 0 0 BMRU NAME="Amazon Linux AMI" VERSION="2015.09" ID="amzn" ID_LIKE="rhel fedora" VERSION_ID="2015.09" PRETTY_NAME="Amazon Linux AMI 2015.09" ANSI_COLOR="0;33" CPE_NAME="cpe:/o:amazon:linux:2015.09:ga" HOME_URL="http://aws.amazon.com/amazon-linux-ami/" Amazon Linux AMI release 2015.09 -------------------------------------------------------------------------------------------------- Linux ip-10-13-200-37 4.1.19-24.31.amzn1.x86_64 #1 SMP Tue Mar 15 23:41:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux -------------------------------------------------------------------------------------------------- Hardware: processor : 0 processor : 1 -------------------------------------------------------------------------------------------------- processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 63 model name : Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz stepping : 2 microcode : 0x25 cpu MHz : 2893.346 cache size : 25600 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt bugs : bogomips : 5786.69 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 63 model name : Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz stepping : 2 microcode : 0x25 cpu MHz : 2893.346 cache size : 25600 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt bugs : bogomips : 5786.69 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: -------------------------------------------------------------------------------------------------- MemTotal: 3857968 kB MemFree: 3043480 kB MemAvailable: 3676652 kB Buffers: 21460 kB Cached: 569880 kB SwapCached: 0 kB Active: 453276 kB Inactive: 214056 kB Active(anon): 75988 kB Inactive(anon): 220 kB Active(file): 377288 kB Inactive(file): 213836 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 53096 kB Writeback: 0 kB AnonPages: 75872 kB Mapped: 25152 kB Shmem: 236 kB Slab: 102516 kB SReclaimable: 71208 kB SUnreclaim: 31308 kB KernelStack: 1952 kB PageTables: 3916 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 1928984 kB Committed_AS: 255764 kB VmallocTotal: 34359738367 kB VmallocUsed: 13116 kB VmallocChunk: 34359709780 kB AnonHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 22528 kB DirectMap2M: 3909632 kB -------------------------------------------------------------------------------------------------- cat /proc/1/cgroup 9:perf_event:/ 8:memory:/sandbox-22acf3 7:hugetlb:/ 6:freezer:/sandbox-6d92fb 5:devices:/ 4:cpuset:/ 3:cpuacct:/sandbox-3369b6 2:cpu:/sandbox-root-Fm3pM6/sandbox-e18114 1:blkio:/' -------------------------------------------------------------------------------------------------- [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 4.1.19-24.31.amzn1.x86_64 (mockbuild@gobi-build-64010) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Tue Mar 15 23:41:50 UTC 2016 [ 0.000000] Command line: root=LABEL=/ console=ttyS0 LANG=en_US.UTF-8 KEYTABLE=us [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009dfff] usable [ 0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000efffffff] usable [ 0.000000] BIOS-e820: [mem 0x00000000fc000000-0x00000000ffffffff] reserved [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] SMBIOS 2.4 present. [ 0.000000] DMI: Xen HVM domU, BIOS 4.2.amazon 05/12/2016 [ 0.000000] Hypervisor detected: Xen [ 0.000000] Xen version 4.2. [ 0.000000] Xen Platform PCI: I/O protocol version 1 [ 0.000000] Netfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated NICs. [ 0.000000] Blkfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated disks. [ 0.000000] You might have to change the root device [ 0.000000] from /dev/hd[a-d] to /dev/xvd[a-d] [ 0.000000] in your root= kernel command line option [ 0.000000] HVMOP_pagetable_dying not supported [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable [ 0.000000] AGP: No AGP bridge found [ 0.000000] e820: last_pfn = 0xf0000 max_arch_pfn = 0x400000000 [ 0.000000] MTRR default type: write-back [ 0.000000] MTRR fixed ranges enabled: [ 0.000000] 00000-9FFFF write-back [ 0.000000] A0000-BFFFF write-combining [ 0.000000] C0000-FFFFF write-back [ 0.000000] MTRR variable ranges enabled: [ 0.000000] 0 base 0000F0000000 mask 3FFFF8000000 uncachable [ 0.000000] 1 base 0000F8000000 mask 3FFFFC000000 uncachable [ 0.000000] 2 disabled [ 0.000000] 3 disabled [ 0.000000] 4 disabled [ 0.000000] 5 disabled [ 0.000000] 6 disabled [ 0.000000] 7 disabled [ 0.000000] PAT configuration [0-7]: WB WC UC- UC WB WC UC- UC [ 0.000000] found SMP MP-table at [mem 0x000fbe00-0x000fbe0f] mapped at [ffff8800000fbe00] [ 0.000000] Base memory trampoline at [ffff880000098000] 98000 size 24576 [ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff] [ 0.000000] [mem 0x00000000-0x000fffff] page 4k [ 0.000000] BRK [0x01da0000, 0x01da0fff] PGTABLE [ 0.000000] BRK [0x01da1000, 0x01da1fff] PGTABLE [ 0.000000] BRK [0x01da2000, 0x01da2fff] PGTABLE [ 0.000000] init_memory_mapping: [mem 0xefe00000-0xefffffff] [ 0.000000] [mem 0xefe00000-0xefffffff] page 2M [ 0.000000] BRK [0x01da3000, 0x01da3fff] PGTABLE [ 0.000000] init_memory_mapping: [mem 0xe0000000-0xefdfffff] [ 0.000000] [mem 0xe0000000-0xefdfffff] page 2M [ 0.000000] init_memory_mapping: [mem 0xc0000000-0xdfffffff] [ 0.000000] [mem 0xc0000000-0xdfffffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x00100000-0xbfffffff] [ 0.000000] [mem 0x00100000-0x001fffff] page 4k [ 0.000000] [mem 0x00200000-0xbfffffff] page 2M [ 0.000000] RAMDISK: [mem 0x37242000-0x37feffff] [ 0.000000] ACPI: Early table checksum verification disabled [ 0.000000] ACPI: RSDP 0x00000000000EA020 000024 (v02 Xen ) [ 0.000000] ACPI: XSDT 0x00000000FC00F5A0 000054 (v01 Xen HVM 00000000 HVML 00000000) [ 0.000000] ACPI: FACP 0x00000000FC00F260 0000F4 (v04 Xen HVM 00000000 HVML 00000000) [ 0.000000] ACPI: DSDT 0x00000000FC0035E0 00BBF6 (v02 Xen HVM 00000000 INTL 20090123) [ 0.000000] ACPI: FACS 0x00000000FC0035A0 000040 [ 0.000000] ACPI: FACS 0x00000000FC0035A0 000040 [ 0.000000] ACPI: APIC 0x00000000FC00F360 0000D8 (v02 Xen HVM 00000000 HVML 00000000) [ 0.000000] ACPI: HPET 0x00000000FC00F4B0 000038 (v01 Xen HVM 00000000 HVML 00000000) [ 0.000000] ACPI: WAET 0x00000000FC00F4F0 000028 (v01 Xen HVM 00000000 HVML 00000000) [ 0.000000] ACPI: SSDT 0x00000000FC00F520 000031 (v02 Xen HVM 00000000 INTL 20090123) [ 0.000000] ACPI: SSDT 0x00000000FC00F560 000031 (v02 Xen HVM 00000000 INTL 20090123) [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] No NUMA configuration found [ 0.000000] Faking a node at [mem 0x0000000000000000-0x00000000efffffff] [ 0.000000] NODE_DATA(0) allocated [mem 0xeffd8000-0xefffdfff] [ 0.000000] [ffffea0000000000-ffffea0003bfffff] PMD -> [ffff8800eba00000-ffff8800ef5fffff] on node 0 [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.000000] DMA32 [mem 0x0000000001000000-0x00000000efffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009dfff] [ 0.000000] node 0: [mem 0x0000000000100000-0x00000000efffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x00000000efffffff] [ 0.000000] On node 0 totalpages: 982941 [ 0.000000] DMA zone: 64 pages used for memmap [ 0.000000] DMA zone: 21 pages reserved [ 0.000000] DMA zone: 3997 pages, LIFO batch:0 [ 0.000000] DMA32 zone: 15296 pages used for memmap [ 0.000000] DMA32 zone: 978944 pages, LIFO batch:31 [ 0.000000] ACPI: PM-Timer IO Port: 0xb008 [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-47 [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 low level) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 low level) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level) [ 0.000000] ACPI: IRQ0 used by override. [ 0.000000] ACPI: IRQ5 used by override. [ 0.000000] ACPI: IRQ9 used by override. [ 0.000000] ACPI: IRQ10 used by override. [ 0.000000] ACPI: IRQ11 used by override. [ 0.000000] Using ACPI (MADT) for SMP configuration information [ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000 [ 0.000000] smpboot: Allowing 15 CPUs, 13 hotplug CPUs [ 0.000000] e820: [mem 0xf0000000-0xfbffffff] available for PCI devices [ 0.000000] Booting paravirtualized kernel on Xen HVM [ 0.000000] clocksource refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns [ 0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:15 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 32 pages/cpu @ffff8800efc00000 s93976 r8192 d28904 u131072 [ 0.000000] pcpu-alloc: s93976 r8192 d28904 u131072 alloc=1*2097152 [ 0.000000] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 -- [ 0.000000] xen: PV spinlocks enabled [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 967560 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: root=LABEL=/ console=ttyS0 LANG=en_US.UTF-8 KEYTABLE=us [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340 using standard form [ 0.000000] AGP: Checking aperture... [ 0.000000] AGP: No AGP bridge found [ 0.000000] Memory: 3839924K/3931764K available (5037K kernel code, 948K rwdata, 2324K rodata, 1148K init, 1580K bss, 91840K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=15, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Additional per-CPU info printed with stalls. [ 0.000000] RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=15. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=15 [ 0.000000] NR_IRQS:8448 nr_irqs:952 16 [ 0.000000] xen:events: Using 2-level ABI [ 0.000000] xen:events: Xen HVM callback vector for event delivery is enabled [ 0.000000] Console: colour VGA+ 80x25 [ 0.000000] Cannot get hvm parameter CONSOLE_EVTCHN (18): -22! [ 0.000000] console [ttyS0] enabled [ 0.000000] clocksource hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 30580167144 ns [ 0.000000] hpet clockevent registered [ 0.000000] tsc: Detected 2893.346 MHz processor [ 0.008000] Calibrating delay loop (skipped), value calculated using timer frequency.. 5786.69 BogoMIPS (lpj=11573384) [ 0.008002] pid_max: default: 32768 minimum: 301 [ 0.009467] ACPI: Core revision 20150410 [ 0.015824] ACPI: All ACPI Tables successfully acquired [ 0.017102] Security Framework initialized [ 0.018577] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) [ 0.020587] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) [ 0.024255] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.026353] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.028155] Initializing cgroup subsys blkio [ 0.029580] Initializing cgroup subsys memory [ 0.030973] Initializing cgroup subsys devices [ 0.032003] Initializing cgroup subsys freezer [ 0.033477] Initializing cgroup subsys net_cls [ 0.036002] Initializing cgroup subsys perf_event [ 0.037623] Initializing cgroup subsys net_prio [ 0.039065] Initializing cgroup subsys hugetlb [ 0.040047] CPU: Physical Processor ID: 0 [ 0.042080] mce: CPU supports 2 MCE banks [ 0.043399] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 1024 [ 0.044002] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 1024, 1GB 4 [ 0.048821] Freeing SMP alternatives memory: 20K (ffffffff81c0e000 - ffffffff81c13000) [ 0.053328] ftrace: allocating 19939 entries in 78 pages [ 0.068059] Switched APIC routing to physical flat. [ 0.072294] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0 [ 0.115118] clocksource xen: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 0.116005] Xen: using vcpuop timer interface [ 0.116011] installing Xen timer for CPU 0 [ 0.120042] smpboot: CPU0: Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz (fam: 06, model: 3f, stepping: 02) [ 0.123596] cpu 0 spinlock event irq 53 [ 0.126219] Performance Events: unsupported p6 CPU model 63 no PMU driver, software events only. [ 0.129518] installing Xen timer for CPU 1 [ 0.131069] x86: Booting SMP configuration: [ 0.132004] .... node #0, CPUs: #1cpu 1 spinlock event irq 59 [ 0.148026] x86: Booted up 1 node, 2 CPUs [ 0.149502] smpboot: Total of 2 processors activated (11573.38 BogoMIPS) [ 0.152248] devtmpfs: initialized [ 0.154610] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.156134] NET: Registered protocol family 16 [ 0.172008] cpuidle: using governor ladder [ 0.184005] cpuidle: using governor menu [ 0.185517] ACPI: bus type PCI registered [ 0.187037] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 [ 0.188262] PCI: Using configuration type 1 for base access [ 0.200107] ACPI: Added _OSI(Module Device) [ 0.201679] ACPI: Added _OSI(Processor Device) [ 0.203301] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.204005] ACPI: Added _OSI(Processor Aggregator Device) [ 0.207135] xen: --> pirq=16 -> irq=9 (gsi=9) [ 0.209614] ACPI: Interpreter enabled [ 0.210994] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20150410/hwxface-580) [ 0.214019] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20150410/hwxface-580) [ 0.216832] ACPI: (supports S0 S3 S5) [ 0.218188] ACPI: Using IOAPIC for interrupt routing [ 0.219976] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug [ 0.257892] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.260010] acpi PNP0A03:00: _OSC: OS supports [Segments MSI] [ 0.262180] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM [ 0.264040] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. [ 0.268655] acpiphp: Slot [0] registered [ 0.270724] acpiphp: Slot [3] registered [ 0.272237] acpiphp: Slot [4] registered [ 0.273911] acpiphp: Slot [5] registered [ 0.275591] acpiphp: Slot [6] registered [ 0.276217] acpiphp: Slot [7] registered [ 0.277874] acpiphp: Slot [8] registered [ 0.279527] acpiphp: Slot [9] registered [ 0.280220] acpiphp: Slot [10] registered [ 0.281921] acpiphp: Slot [11] registered [ 0.283588] acpiphp: Slot [12] registered [ 0.284222] acpiphp: Slot [13] registered [ 0.285934] acpiphp: Slot [14] registered [ 0.287656] acpiphp: Slot [15] registered [ 0.288234] acpiphp: Slot [16] registered [ 0.290000] acpiphp: Slot [17] registered [ 0.291723] acpiphp: Slot [18] registered [ 0.292225] acpiphp: Slot [19] registered [ 0.293939] acpiphp: Slot [20] registered [ 0.295936] acpiphp: Slot [21] registered [ 0.296239] acpiphp: Slot [22] registered [ 0.297990] acpiphp: Slot [23] registered [ 0.299956] acpiphp: Slot [24] registered [ 0.300247] acpiphp: Slot [25] registered [ 0.302244] acpiphp: Slot [26] registered [ 0.304132] acpiphp: Slot [27] registered [ 0.305957] acpiphp: Slot [28] registered [ 0.307716] acpiphp: Slot [29] registered [ 0.308265] acpiphp: Slot [30] registered [ 0.310100] acpiphp: Slot [31] registered [ 0.311878] PCI host bridge to bus 0000:00 [ 0.312008] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.314037] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] [ 0.316005] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] [ 0.318553] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] [ 0.320005] pci_bus 0000:00: root bus resource [mem 0xf0000000-0xfbffffff window] [ 0.322910] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000 [ 0.324087] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100 [ 0.325888] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180 [ 0.326804] pci 0000:00:01.1: reg 0x20: [io 0xc100-0xc10f] [ 0.327220] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] [ 0.328004] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6] [ 0.330516] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] [ 0.332003] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376] [ 0.334901] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000 [ 0.334930] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug, [ 0.334930] * this clock source is slow. Consider trying other clock sources [ 0.337103] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI [ 0.340739] pci 0000:00:02.0: [1013:00b8] type 00 class 0x030000 [ 0.340967] pci 0000:00:02.0: reg 0x10: [mem 0xf0000000-0xf1ffffff pref] [ 0.341140] pci 0000:00:02.0: reg 0x14: [mem 0xf3008000-0xf3008fff] [ 0.342632] pci 0000:00:03.0: [8086:10ed] type 00 class 0x020000 [ 0.343148] pci 0000:00:03.0: reg 0x10: [mem 0xf3000000-0xf3003fff 64bit pref] [ 0.343768] pci 0000:00:03.0: reg 0x1c: [mem 0xf3004000-0xf3007fff 64bit pref] [ 0.345723] pci 0000:00:1f.0: [5853:0001] type 00 class 0xff8000 [ 0.345967] pci 0000:00:1f.0: reg 0x10: [io 0xc000-0xc0ff] [ 0.346145] pci 0000:00:1f.0: reg 0x14: [mem 0xf2000000-0xf2ffffff pref] [ 0.347609] ACPI: PCI Interrupt Link [LNKA] (IRQs *5 10 11) [ 0.348851] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11) [ 0.351382] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11) [ 0.352766] ACPI: PCI Interrupt Link [LNKD] (IRQs *5 10 11) [ 0.367943] ACPI: Enabled 2 GPEs in block 00 to 0F [ 0.368063] xen:balloon: Initialising balloon driver [ 0.369898] vgaarb: setting as boot device: PCI:0000:00:02.0 [ 0.370159] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none [ 0.376010] vgaarb: loaded [ 0.377025] vgaarb: bridge control possible 0000:00:02.0 [ 0.380069] PCI: Using ACPI for IRQ routing [ 0.380069] PCI: pci_cache_line_size set to 64 bytes [ 0.380353] e820: reserve RAM buffer [mem 0x0009e000-0x0009ffff] [ 0.380486] NetLabel: Initializing [ 0.381791] NetLabel: domain hash size = 128 [ 0.384010] NetLabel: protocols = UNLABELED CIPSOv4 [ 0.384016] NetLabel: unlabeled traffic allowed by default [ 0.386076] HPET: 3 timers in total, 0 timers will be used for per-cpu timer [ 0.388017] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0 [ 0.390045] hpet0: 3 comparators, 64-bit 62.500000 MHz counter [ 0.396030] Switched to clocksource xen [ 0.402105] pnp: PnP ACPI init [ 0.403366] system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved [ 0.405922] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active) [ 0.405993] system 00:01: [io 0x08a0-0x08a3] has been reserved [ 0.408163] system 00:01: [io 0x0cc0-0x0ccf] has been reserved [ 0.410342] system 00:01: [io 0x04d0-0x04d1] has been reserved [ 0.412531] system 00:01: Plug and Play ACPI device, IDs PNP0c02 (active) [ 0.412555] xen: --> pirq=17 -> irq=8 (gsi=8) [ 0.412575] pnp 00:02: Plug and Play ACPI device, IDs PNP0b00 (active) [ 0.412601] xen: --> pirq=18 -> irq=12 (gsi=12) [ 0.412621] pnp 00:03: Plug and Play ACPI device, IDs PNP0f13 (active) [ 0.412642] xen: --> pirq=19 -> irq=1 (gsi=1) [ 0.412664] pnp 00:04: Plug and Play ACPI device, IDs PNP0303 PNP030b (active) [ 0.412686] xen: --> pirq=20 -> irq=6 (gsi=6) [ 0.412689] pnp 00:05: [dma 2] [ 0.412705] pnp 00:05: Plug and Play ACPI device, IDs PNP0700 (active) [ 0.412734] xen: --> pirq=21 -> irq=4 (gsi=4) [ 0.412751] pnp 00:06: Plug and Play ACPI device, IDs PNP0501 (active) [ 0.412798] system 00:07: [io 0x10c0-0x1141] has been reserved [ 0.415130] system 00:07: [io 0xb044-0xb047] has been reserved [ 0.417375] system 00:07: Plug and Play ACPI device, IDs PNP0c02 (active) [ 0.430134] pnp: PnP ACPI: found 8 devices [ 0.438674] clocksource acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns [ 0.442015] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window] [ 0.442017] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window] [ 0.442018] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window] [ 0.442019] pci_bus 0000:00: resource 7 [mem 0xf0000000-0xfbffffff window] [ 0.442054] NET: Registered protocol family 2 [ 0.443830] TCP established hash table entries: 32768 (order: 6, 262144 bytes) [ 0.446621] TCP bind hash table entries: 32768 (order: 7, 524288 bytes) [ 0.449109] TCP: Hash tables configured (established 32768 bind 32768) [ 0.451561] UDP hash table entries: 2048 (order: 4, 65536 bytes) [ 0.453874] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes) [ 0.456270] NET: Registered protocol family 1 [ 0.457890] pci 0000:00:00.0: Limiting direct PCI/PCI transfers [ 0.460044] pci 0000:00:01.0: PIIX3: Enabling Passive Release [ 0.462249] pci 0000:00:01.0: Activating ISA DMA hang workarounds [ 0.464778] pci 0000:00:02.0: Video device with shadowed ROM [ 0.464868] PCI: CLS 0 bytes, default 64 [ 0.464910] Unpacking initramfs... [ 0.639565] Freeing initrd memory: 14008K (ffff880037242000 - ffff880037ff0000) [ 0.642546] RAPL PMU detected, API unit is 2^-32 Joules, 3 fixed counters 655360 ms ovfl timer [ 0.645667] hw unit of domain pp0-core 2^-14 Joules [ 0.647452] hw unit of domain package 2^-14 Joules [ 0.649195] hw unit of domain dram 2^-16 Joules [ 0.651551] futex hash table entries: 4096 (order: 6, 262144 bytes) [ 0.653954] Initialise system trusted keyring [ 0.655587] audit: initializing netlink subsys (disabled) [ 0.657660] audit: type=2000 audit(1469071273.988:1): initialized [ 0.660230] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 0.664486] zpool: loaded [ 0.665632] VFS: Disk quotas dquot_6.6.0 [ 0.667121] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.670449] alg: No test for stdrng (krng) [ 0.671975] Key type asymmetric registered [ 0.673504] Asymmetric key parser 'x509' registered [ 0.675361] bounce: pool size: 64 pages [ 0.676881] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) [ 0.679714] io scheduler noop registered (default) [ 0.681513] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 0.683527] intel_idle: does not run on family 6 model 63 [ 0.683905] xen: --> pirq=22 -> irq=47 (gsi=47) [ 0.683970] xen:grant_table: Grant tables using version 1 layout [ 0.686194] Grant table initialized [ 0.687588] Cannot get hvm parameter CONSOLE_EVTCHN (18): -22! [ 0.689753] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 0.717714] 00:06: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A [ 0.724556] xen_netfront: Initialising Xen virtual ethernet driver [ 0.728372] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 [ 0.734563] blkfront: xvda: barrier or flush: disabled; persistent grants: enabled; indirect descriptors: enabled; [ 0.735254] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 0.735259] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 0.735359] mousedev: PS/2 mouse device common for all mice [ 0.735389] hidraw: raw HID events driver (C) Jiri Kosina [ 0.735451] NET: Registered protocol family 17 [ 0.735695] Loading compiled-in X.509 certificates [ 0.736348] Loaded X.509 cert 'Build time autogenerated kernel key: 2b6d1d12c725a6395dfedbcc1ab9216856ecc4b4' [ 0.736360] registered taskstats version 1 [ 0.751189] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 [ 0.770851] xvda: xvda1 [ 0.832085] xenbus_probe_frontend: Device with no driver: device/vfb/0 [ 0.834562] xenbus_probe_frontend: Device with no driver: device/pci/0 [ 0.837911] Freeing unused kernel memory: 1148K (ffffffff81aef000 - ffffffff81c0e000) [ 0.840790] Write protecting the kernel read-only data: 10240k [ 0.843379] Freeing unused kernel memory: 1096K (ffff8800014ee000 - ffff880001600000) [ 0.846659] Freeing unused kernel memory: 1772K (ffff880001845000 - ffff880001a00000) [ 0.860260] dm_mod: module verification failed: signature and/or required key missing - tainting kernel [ 0.864511] device-mapper: uevent: version 1.0.3 [ 0.866295] device-mapper: ioctl: 4.31.0-ioctl (2015-3-12) initialised: dm-devel@redhat.com [ 0.872314] udevd[788]: starting version 173 [ 0.903868] SCSI subsystem initialized [ 0.924183] libata version 3.00 loaded. [ 0.924441] ata_piix 0000:00:01.1: version 2.13 [ 0.944519] scsi host0: ata_piix [ 0.949688] scsi host1: ata_piix [ 0.951219] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc100 irq 14 [ 0.954438] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc108 irq 15 [ 1.164678] EXT4-fs (xvda1): mounted filesystem with ordered data mode. Opts: (null) [ 1.208654] dracut: Remounting /dev/disk/by-label/\x2f with -o noatime,ro [ 1.215828] EXT4-fs (xvda1): mounted filesystem with ordered data mode. Opts: (null) [ 1.223758] dracut: Mounted root filesystem /dev/xvda1 [ 1.259167] dracut: Loading SELinux policy [ 1.380747] dracut: /sbin/load_policy: Can't load policy: No such device [ 1.408020] dracut: Switching root [ 1.501217] random: init urandom read with 94 bits of entropy available [ 1.648134] tsc: Refined TSC clocksource calibration: 2893.298 MHz [ 1.650496] clocksource tsc: mask: 0xffffffffffffffff max_cycles: 0x29b487c321a, max_idle_ns: 440795245217 ns [ 2.782112] random: nonblocking pool is initialized [ 2.910820] udevd[1545]: starting version 173 [ 3.043831] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2 [ 3.047358] ACPI: Power Button [PWRF] [ 3.052296] ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver - version 2.14.2+amzn [ 3.056872] Copyright (c) 2009-2014 Intel Corporation. [ 3.060811] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input3 [ 3.064322] ACPI: Sleep Button [SLPF] [ 3.102237] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4 [ 3.144582] ixgbevf: eth%d: ixgbevf_check_options: dynamic interrupt throttling enabled [ 3.149300] ixgbevf 0000:00:03.0: Multiqueue Enabled: Rx Queue count = 2, Tx Queue count = 2 [ 3.152652] ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function [ 3.155537] 0a:56:d3:80:3a:e5 [ 3.157082] ixgbevf: eth0: ixgbevf_probe: GRO is enabled [ 3.159306] ixgbevf: eth0: ixgbevf_probe: Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver [ 6.477301] EXT4-fs (xvda1): re-mounted. Opts: (null) [ 6.847292] NET: Registered protocol family 10 [ 6.977766] ixgbevf 0000:00:03.0: NIC Link is Up 10 Gbps [ 6.978789] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 6.982275] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 9.709486] ixgbevf: eth0: ixgbevf_change_mtu: changing MTU from 1500 to 9001 [ 10.233474] audit: type=1305 audit(1469071283.564:2): audit_pid=2078 old=0 auid=4294967295 ses=4294967295 res=1 [ 23.191222] Unsafe core_pattern used with suid_dumpable=2. Pipe handler or fully qualified core dump path required. [ 23.287342] ip_tables: (C) 2000-2006 Netfilter Core Team [ 23.304625] nf_conntrack version 0.5.0 (16384 buckets, 65536 max) [ 23.361187] IPv6: ADDRCONF(NETDEV_UP): vsl_1: link is not ready [ 23.408989] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_1: link becomes ready [ 23.519334] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 23.547642] IPv6: ADDRCONF(NETDEV_UP): vsl_2: link is not ready [ 23.589168] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_2: link becomes ready [ 23.621900] IPv6: ADDRCONF(NETDEV_UP): vsl_3: link is not ready [ 23.651039] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_3: link becomes ready [ 23.697660] IPv6: ADDRCONF(NETDEV_UP): vsl_4: link is not ready [ 23.757234] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_4: link becomes ready [ 23.782073] IPv6: ADDRCONF(NETDEV_UP): vsl_5: link is not ready [ 23.827947] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_5: link becomes ready [ 23.868300] IPv6: ADDRCONF(NETDEV_UP): vsl_6: link is not ready [ 23.889057] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_6: link becomes ready [ 23.907533] IPv6: ADDRCONF(NETDEV_UP): vsl_7: link is not ready [ 23.929044] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_7: link becomes ready [ 23.947108] IPv6: ADDRCONF(NETDEV_UP): vsl_8: link is not ready [ 23.980967] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_8: link becomes ready [ 24.013178] IPv6: ADDRCONF(NETDEV_UP): vsl_9: link is not ready [ 24.050282] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_9: link becomes ready [ 24.088582] IPv6: ADDRCONF(NETDEV_UP): vsl_10: link is not ready [ 24.130441] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_10: link becomes ready [ 24.168571] IPv6: ADDRCONF(NETDEV_UP): vsl_11: link is not ready [ 24.206326] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_11: link becomes ready [ 24.247325] IPv6: ADDRCONF(NETDEV_UP): vsl_12: link is not ready [ 24.288616] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_12: link becomes ready [ 24.319630] IPv6: ADDRCONF(NETDEV_UP): vsl_13: link is not ready [ 24.349725] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_13: link becomes ready [ 24.392349] IPv6: ADDRCONF(NETDEV_UP): vsl_14: link is not ready [ 24.436296] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_14: link becomes ready [ 24.467454] IPv6: ADDRCONF(NETDEV_UP): vsl_15: link is not ready [ 24.498260] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_15: link becomes ready [ 24.539364] IPv6: ADDRCONF(NETDEV_UP): vsl_16: link is not ready [ 24.571094] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_16: link becomes ready [ 24.590559] IPv6: ADDRCONF(NETDEV_UP): vsl_17: link is not ready [ 24.617259] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_17: link becomes ready [ 24.636806] IPv6: ADDRCONF(NETDEV_UP): vsl_18: link is not ready [ 24.662704] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_18: link becomes ready [ 24.682932] IPv6: ADDRCONF(NETDEV_UP): vsl_19: link is not ready [ 24.736608] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_19: link becomes ready [ 24.767977] IPv6: ADDRCONF(NETDEV_UP): vsl_20: link is not ready [ 24.820054] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_20: link becomes ready [ 24.838582] IPv6: ADDRCONF(NETDEV_UP): vsl_21: link is not ready [ 24.875636] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_21: link becomes ready [ 24.898487] IPv6: ADDRCONF(NETDEV_UP): vsl_22: link is not ready [ 24.917170] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_22: link becomes ready [ 24.935575] IPv6: ADDRCONF(NETDEV_UP): vsl_23: link is not ready [ 24.965124] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_23: link becomes ready [ 24.983873] IPv6: ADDRCONF(NETDEV_UP): vsl_24: link is not ready [ 25.017139] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_24: link becomes ready [ 25.036740] IPv6: ADDRCONF(NETDEV_UP): vsl_25: link is not ready [ 25.069131] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_25: link becomes ready [ 25.098646] IPv6: ADDRCONF(NETDEV_UP): vsl_26: link is not ready [ 25.143618] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_26: link becomes ready [ 25.171064] IPv6: ADDRCONF(NETDEV_UP): vsl_27: link is not ready [ 25.202818] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_27: link becomes ready [ 25.240574] IPv6: ADDRCONF(NETDEV_UP): vsl_28: link is not ready [ 25.281300] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_28: link becomes ready [ 25.299974] IPv6: ADDRCONF(NETDEV_UP): vsl_29: link is not ready [ 25.329029] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_29: link becomes ready [ 25.343479] IPv6: ADDRCONF(NETDEV_UP): vsl_30: link is not ready [ 25.369198] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_30: link becomes ready [ 25.399477] IPv6: ADDRCONF(NETDEV_UP): vsl_31: link is not ready [ 25.429402] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_31: link becomes ready [ 25.465088] IPv6: ADDRCONF(NETDEV_UP): vsl_32: link is not ready [ 25.485366] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_32: link becomes ready [ 25.504908] IPv6: ADDRCONF(NETDEV_UP): vsl_33: link is not ready [ 25.537286] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_33: link becomes ready [ 25.556127] IPv6: ADDRCONF(NETDEV_UP): vsl_34: link is not ready [ 25.593131] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_34: link becomes ready [ 25.611743] IPv6: ADDRCONF(NETDEV_UP): vsl_35: link is not ready [ 25.645034] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_35: link becomes ready [ 25.660263] IPv6: ADDRCONF(NETDEV_UP): vsl_36: link is not ready [ 25.685137] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_36: link becomes ready [ 25.704827] IPv6: ADDRCONF(NETDEV_UP): vsl_37: link is not ready [ 25.735122] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_37: link becomes ready [ 25.763003] IPv6: ADDRCONF(NETDEV_UP): vsl_38: link is not ready [ 25.781096] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_38: link becomes ready [ 25.867595] IPv6: ADDRCONF(NETDEV_UP): vsl_39: link is not ready [ 25.893385] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_39: link becomes ready [ 25.912907] IPv6: ADDRCONF(NETDEV_UP): vsl_40: link is not ready [ 25.945385] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_40: link becomes ready [ 25.965353] IPv6: ADDRCONF(NETDEV_UP): vsl_41: link is not ready [ 25.989212] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_41: link becomes ready [ 26.008150] IPv6: ADDRCONF(NETDEV_UP): vsl_42: link is not ready [ 26.028952] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_42: link becomes ready [ 26.044361] IPv6: ADDRCONF(NETDEV_UP): vsl_43: link is not ready [ 26.065323] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_43: link becomes ready [ 26.084357] IPv6: ADDRCONF(NETDEV_UP): vsl_44: link is not ready [ 26.122370] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_44: link becomes ready [ 26.148927] IPv6: ADDRCONF(NETDEV_UP): vsl_45: link is not ready [ 26.173144] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_45: link becomes ready [ 26.192333] IPv6: ADDRCONF(NETDEV_UP): vsl_46: link is not ready [ 26.213495] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_46: link becomes ready [ 26.231883] IPv6: ADDRCONF(NETDEV_UP): vsl_47: link is not ready [ 26.261258] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_47: link becomes ready [ 26.280384] IPv6: ADDRCONF(NETDEV_UP): vsl_48: link is not ready [ 26.300933] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_48: link becomes ready [ 26.316238] IPv6: ADDRCONF(NETDEV_UP): vsl_49: link is not ready [ 26.341292] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_49: link becomes ready [ 26.370972] IPv6: ADDRCONF(NETDEV_UP): vsl_50: link is not ready [ 26.400420] IPv6: ADDRCONF(NETDEV_CHANGE): vsl_50: link becomes ready [ 3718.977004] loop: module loaded [ 3718.999555] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null) [ 3942.890828] EXT4-fs (loop1): mounted filesystem with ordered data mode. Opts: (null) [ 4221.267506] EXT4-fs (loop2): mounted filesystem with ordered data mode. Opts: (null) -------------------------------------------------------------------------------------------------- Disks: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 30830568 2909056 27821264 10% / /dev/loop2 538424 44440 482148 9% /tmp -------------------------------------------------------------------------------------------------- Installed packages: Linux ip-10-13-200-37 4.1.19-24.31.amzn1.x86_64 #1 SMP Tue Mar 15 23:41:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux filesystem-2.4.30-3.8.amzn1.x86_64 sysctl-defaults-1.0-1.0.amzn1.noarch ncurses-base-5.7-3.20090208.13.amzn1.x86_64 nss-softokn-freebl-3.16.2.3-13.37.amzn1.x86_64 libgcc48-4.8.3-9.109.amzn1.x86_64 ncurses-libs-5.7-3.20090208.13.amzn1.x86_64 libselinux-2.1.10-3.22.amzn1.x86_64 info-5.1-4.10.amzn1.x86_64 bzip2-libs-1.0.6-8.12.amzn1.x86_64 nspr-4.10.8-2.35.amzn1.x86_64 elfutils-libelf-0.160-1.17.amzn1.x86_64 chkconfig-1.3.49.3-2.14.amzn1.x86_64 lua-5.1.4-4.1.9.amzn1.x86_64 libacl-2.2.49-6.11.amzn1.x86_64 sqlite-3.7.17-6.13.amzn1.x86_64 file-libs-5.22-4.31.amzn1.x86_64 libstdc++48-4.8.3-9.109.amzn1.x86_64 expat-2.1.0-8.18.amzn1.x86_64 gdbm-1.8.0-36.6.amzn1.x86_64 libffi-3.0.13-11.4.amzn1.x86_64 nss-softokn-3.16.2.3-13.37.amzn1.x86_64 gawk-3.1.7-10.10.amzn1.x86_64 keyutils-libs-1.5.8-3.12.amzn1.x86_64 upstart-0.6.5-13.3.13.amzn1.x86_64 glib2-2.36.3-5.18.amzn1.x86_64 libgcrypt-1.5.3-12.18.amzn1.x86_64 pcre-8.21-7.7.amzn1.x86_64 groff-base-1.22.2-8.11.amzn1.x86_64 perl-HTTP-Tiny-0.033-3.6.amzn1.noarch perl-Pod-Perldoc-3.20-4.7.amzn1.noarch perl-Pod-Escapes-1.04-283.37.amzn1.noarch perl-Pod-Usage-1.63-3.5.amzn1.noarch perl-Scalar-List-Utils-1.27-248.5.amzn1.x86_64 perl-threads-1.87-4.5.amzn1.x86_64 perl-Carp-1.26-244.5.amzn1.noarch perl-Storable-2.45-3.5.amzn1.x86_64 perl-File-Path-2.09-2.5.amzn1.noarch perl-PathTools-3.40-5.5.amzn1.x86_64 perl-libs-5.16.3-283.37.amzn1.x86_64 perl-Getopt-Long-2.40-2.5.amzn1.noarch perl-5.16.3-283.37.amzn1.x86_64 shadow-utils-4.1.4.2-13.10.amzn1.x86_64 file-5.22-4.31.amzn1.x86_64 patch-2.7.1-8.9.amzn1.x86_64 elfutils-libs-0.160-1.17.amzn1.x86_64 cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64 unzip-6.0-2.9.amzn1.x86_64 xz-5.1.2-8alpha.11.amzn1.x86_64 diffutils-3.3-4.15.amzn1.x86_64 findutils-4.4.2-6.9.amzn1.x86_64 ncurses-5.7-3.20090208.13.amzn1.x86_64 libudev-173-4.13.amzn1.x86_64 libcap-ng-0.7.3-5.13.amzn1.x86_64 krb5-libs-1.13.2-10.39.amzn1.x86_64 cracklib-2.8.16-4.14.amzn1.x86_64 openssl-1.0.1k-14.89.amzn1.x86_64 libpwquality-1.2.3-4.8.amzn1.x86_64 coreutils-8.22-11.39.amzn1.x86_64 libblkid-2.23.2-22.26.amzn1.x86_64 util-linux-2.23.2-22.26.amzn1.x86_64 nss-sysinit-3.19.1-19.75.amzn1.x86_64 python27-libs-2.7.10-4.120.amzn1.x86_64 python27-pyxattr-0.5.0-1.6.amzn1.x86_64 yum-metadata-parser-1.1.4-8.12.amzn1.x86_64 update-motd-1.0.1-3.0.amzn1.noarch python34-3.4.3-1.30.amzn1.x86_64 libssh2-1.4.2-1.10.amzn1.x86_64 gnupg2-2.0.28-1.30.amzn1.x86_64 rpm-libs-4.11.2-2.73.amzn1.x86_64 rpm-build-libs-4.11.2-2.73.amzn1.x86_64 ec2-utils-0.4-1.24.amzn1.noarch python27-pygpgme-0.3-9.12.amzn1.x86_64 python27-urlgrabber-3.9.1-9.13.amzn1.noarch yum-plugin-priorities-1.1.31-29.26.amzn1.noarch system-release-2015.09-0.3.noarch gpg-pubkey-21c0f39f-4e41dbdc freetype-2.3.11-15.14.amzn1.x86_64 libjpeg-turbo-1.2.90-5.14.amzn1.x86_64 alsa-lib-1.0.22-3.9.amzn1.x86_64 libfontenc-1.0.5-2.6.amzn1.x86_64 libtasn1-2.3-6.6.amzn1.x86_64 p11-kit-trust-0.18.5-2.3.amzn1.x86_64 libXfont-1.4.5-5.12.amzn1.x86_64 libSM-1.2.1-2.6.amzn1.x86_64 xorg-x11-fonts-Type1-7.2-9.1.5.amzn1.noarch fontpackages-filesystem-1.41-1.1.2.amzn1.noarch dejavu-serif-fonts-2.33-6.6.amzn1.noarch libXau-1.0.6-4.9.amzn1.x86_64 libX11-common-1.6.0-2.2.12.amzn1.x86_64 libXext-1.3.2-2.1.10.amzn1.x86_64 libXtst-1.2.2-2.1.9.amzn1.x86_64 giflib-4.1.6-3.1.6.amzn1.x86_64 lcms2-2.5-4.4.amzn1.x86_64 jpackage-utils-1.7.5-27.17.amzn1.noarch java-1.7.0-openjdk-1.7.0.99-2.6.5.0.66.amzn1.x86_64 java-1.8.0-openjdk-1.8.0.77-0.b03.9.amzn1.x86_64 compat-gmp4-4.3.2-1.14.amzn1.x86_64 libuv-0.10.34-1.el6.x86_64 libXfixes-5.0.1-2.1.8.amzn1.x86_64 jasper-libs-1.900.1-16.9.amzn1.x86_64 libXdamage-1.1.3-4.7.amzn1.x86_64 libXxf86vm-1.1.3-2.1.9.amzn1.x86_64 ghostscript-fonts-5.50-23.2.7.amzn1.noarch gnutls-2.8.5-19.15.amzn1.x86_64 avahi-libs-0.6.25-12.17.amzn1.x86_64 kbd-misc-1.15-11.4.amzn1.noarch urw-fonts-2.4-10.7.amzn1.noarch net-tools-1.60-110.10.amzn1.x86_64 pixman-0.32.4-4.11.amzn1.x86_64 mingetty-1.08-5.9.amzn1.x86_64 libtiff-4.0.3-20.20.amzn1.x86_64 iptables-1.4.18-1.22.amzn1.x86_64 kmod-libs-14-10.10.amzn1.x86_64 hwdata-0.233-14.1.18.amzn1.noarch iputils-20121221-7.13.amzn1.x86_64 kbd-1.15-11.4.amzn1.x86_64 kernel-4.4.14-24.50.amzn1.x86_64 libdrm-2.4.52-4.12.amzn1.x86_64 mesa-libGL-10.1.2-2.32.amzn1.x86_64 cairo-1.12.14-6.8.amzn1.x86_64 libwmf-lite-0.2.8.4-41.11.amzn1.x86_64 setup-2.8.14-20.12.amzn1.noarch basesystem-10.0-4.9.amzn1.noarch tzdata-2016a-1.36.amzn1.noarch glibc-common-2.17-106.167.amzn1.x86_64 bash-4.2.46-12.34.amzn1.x86_64 glibc-2.17-106.167.amzn1.x86_64 libsepol-2.1.7-3.12.amzn1.x86_64 zlib-1.2.8-7.18.amzn1.x86_64 xz-libs-5.1.2-8alpha.11.amzn1.x86_64 db4-4.7.25-18.11.amzn1.x86_64 nss-util-3.19.1-9.49.amzn1.x86_64 popt-1.13-7.7.amzn1.x86_64 readline-6.2-9.14.amzn1.x86_64 libattr-2.4.46-12.10.amzn1.x86_64 libcap-2.16-5.5.8.amzn1.x86_64 sed-4.2.1-10.10.amzn1.x86_64 audit-libs-2.4.1-5.27.amzn1.x86_64 libgpg-error-1.11-1.12.amzn1.x86_64 libcom_err-1.42.12-4.40.amzn1.x86_64 libuuid-2.23.2-22.26.amzn1.x86_64 libassuan-2.0.3-3.3.amzn1.x86_64 libxml2-2.9.1-6.2.50.amzn1.x86_64 dbus-libs-1.6.12-8.27.amzn1.x86_64 libnih-1.0.1-7.8.amzn1.x86_64 pkgconfig-0.27.1-2.7.amzn1.x86_64 shared-mime-info-1.1-7.7.amzn1.x86_64 gmp-6.0.0-11.16.amzn1.x86_64 grep-2.20-1.16.amzn1.x86_64 perl-parent-0.225-244.5.amzn1.noarch perl-podlators-2.5.1-3.8.amzn1.noarch perl-Text-ParseWords-3.29-4.5.amzn1.noarch perl-Encode-2.51-7.5.amzn1.x86_64 perl-macros-5.16.3-283.37.amzn1.x86_64 perl-Filter-1.49-3.5.amzn1.x86_64 perl-constant-1.27-2.5.amzn1.noarch perl-Time-Local-1.2300-2.5.amzn1.noarch perl-Exporter-5.68-3.5.amzn1.noarch perl-File-Temp-0.23.01-3.5.amzn1.noarch perl-Socket-2.010-3.5.amzn1.x86_64 perl-Pod-Simple-3.28-4.6.amzn1.noarch perl-threads-shared-1.43-6.5.amzn1.x86_64 perl-Thread-Queue-3.02-2.5.amzn1.noarch libutempter-1.1.5-4.1.6.amzn1.x86_64 tar-1.26-31.22.amzn1.x86_64 pinentry-0.7.6-6.11.amzn1.x86_64 elfutils-0.160-1.17.amzn1.x86_64 db4-utils-4.7.25-18.11.amzn1.x86_64 bzip2-1.0.6-8.12.amzn1.x86_64 cpio-2.10-12.12.amzn1.x86_64 libidn-1.18-2.8.amzn1.x86_64 make-3.82-21.10.amzn1.x86_64 libverto-0.2.5-4.9.amzn1.x86_64 pth-2.0.7-9.3.7.amzn1.x86_64 nss-tools-3.19.1-19.75.amzn1.x86_64 gzip-1.5-7.17.amzn1.x86_64 cracklib-dicts-2.8.16-4.14.amzn1.x86_64 openldap-2.4.23-34.25.amzn1.x86_64 libmount-2.23.2-22.26.amzn1.x86_64 pam-1.1.8-12.33.amzn1.x86_64 libuser-0.60-7.23.amzn1.x86_64 nss-3.19.1-19.75.amzn1.x86_64 python27-2.7.10-4.120.amzn1.x86_64 python27-pyliblzma-0.5.3-11.6.amzn1.x86_64 gdb-7.6.1-64.33.amzn1.x86_64 python27-iniparse-0.3.1-2.1.9.amzn1.noarch binutils-2.23.52.0.1-55.65.amzn1.x86_64 python34-libs-3.4.3-1.30.amzn1.x86_64 libcurl-7.40.0-8.54.amzn1.x86_64 curl-7.40.0-8.54.amzn1.x86_64 rpm-4.11.2-2.73.amzn1.x86_64 rpm-python27-4.11.2-2.73.amzn1.x86_64 gpgme-1.4.3-5.15.amzn1.x86_64 python27-pycurl-7.19.0-17.12.amzn1.x86_64 yum-3.4.3-137.65.amzn1.noarch yum-plugin-upgrade-helper-1.1.31-29.26.amzn1.noarch rpm-build-4.11.2-2.73.amzn1.x86_64 epel-release-6-8.9.amzn1.noarch fontconfig-2.8.0-5.8.amzn1.x86_64 tzdata-java-2016a-1.36.amzn1.noarch libICE-1.0.6-1.4.amzn1.x86_64 libpng-1.2.49-2.14.amzn1.x86_64 p11-kit-0.18.5-2.3.amzn1.x86_64 ca-certificates-2015.2.4-65.0.1.14.amzn1.noarch xorg-x11-font-utils-7.2-11.5.amzn1.x86_64 ttmkfdir-3.0.9-32.1.5.amzn1.x86_64 lksctp-tools-1.0.10-7.7.amzn1.x86_64 dejavu-fonts-common-2.33-6.6.amzn1.noarch dejavu-sans-fonts-2.33-6.6.amzn1.noarch libxcb-1.8.1-1.18.amzn1.x86_64 libX11-1.6.0-2.2.12.amzn1.x86_64 libXi-1.7.2-2.2.9.amzn1.x86_64 libXrender-0.9.8-2.1.9.amzn1.x86_64 libXcomposite-0.4.3-4.6.amzn1.x86_64 libxslt-1.1.28-5.12.amzn1.x86_64 javapackages-tools-0.9.1-1.5.amzn1.noarch java-1.8.0-openjdk-headless-1.8.0.77-0.b03.9.amzn1.x86_64 libicu-50.1.2-11.12.amzn1.x86_64 gpg-pubkey-0608b895-4bd22942 nodejs-0.10.42-4.el6.x86_64 mesa-dri-filesystem-10.1.2-2.32.amzn1.x86_64 libXt-1.1.4-6.1.9.amzn1.x86_64 procps-3.2.8-30.14.amzn1.x86_64 psmisc-22.20-8.12.amzn1.x86_64 grubby-7.0.15-5.7.amzn1.x86_64 sysvinit-2.87-6.dsf.15.amzn1.x86_64 libgomp-4.8.3-9.109.amzn1.x86_64 dash-0.5.5.1-4.5.amzn1.x86_64 which-2.19-6.10.amzn1.x86_64 libtool-ltdl-2.4.2-20.4.8.3.31.amzn1.x86_64 ethtool-3.15-2.27.amzn1.x86_64 jbigkit-libs-2.0-11.4.amzn1.x86_64 cups-libs-1.4.2-67.21.amzn1.x86_64 iproute-4.4.0-3.23.amzn1.x86_64 kmod-14-10.10.amzn1.x86_64 udev-173-4.13.amzn1.x86_64 initscripts-9.03.49-1.34.amzn1.x86_64 dracut-004-336.28.amzn1.noarch libpciaccess-0.13.1-4.1.11.amzn1.x86_64 mesa-dri-drivers-10.1.2-2.32.amzn1.x86_64 mesa-dri1-drivers-7.11-8.7.amzn1.x86_64 ghostscript-8.70-19.23.amzn1.x86_64 ImageMagick-6.7.8.9-15.21.amzn1.x86_64 -------------------------------------------------------------------------------------------------- Number of users in passwd file : 124 /etc/passwd -------------------------------------------------------------------------------------------------- Current logged on users: 04:31:39 up 1:10, 0 users, load average: 0.00, 0.03, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT Number of users in currently logged in: 0 -------------------------------------------------------------------------------------------------- Memory information: total used free shared buffers cached Mem: 3767 795 2971 0 20 556 -/+ buffers/cache: 218 3549 Swap: 0 0 0 -------------------------------------------------------------------------------------------------- Total filesystem size Total 31368992 2953508 28303400 Total without NFS 31368992 2953508 28303400 -------------------------------------------------------------------------------------------------- Disk & Filesystem information File ====> /etc/fstab <==== Beginning ====================================================== File ====> /etc/fstab <==== End ====================================================== -------------------------------------------------------------------------------------------------- total 0 lrwxrwxrwx 1 root root 20 Jun 25 00:15 K89netconsole -> ../init.d/netconsole lrwxrwxrwx 1 root root 15 Jun 25 00:15 K89rdisc -> ../init.d/rdisc lrwxrwxrwx 1 root root 19 Jun 25 00:15 S08ip6tables -> ../init.d/ip6tables lrwxrwxrwx 1 root root 18 Jun 25 00:15 S08iptables -> ../init.d/iptables lrwxrwxrwx 1 root root 17 Jun 25 00:15 S10network -> ../init.d/network lrwxrwxrwx 1 root root 15 Jun 25 00:15 S25netfs -> ../init.d/netfs lrwxrwxrwx 1 root root 19 Jun 25 00:15 S26udev-post -> ../init.d/udev-post lrwxrwxrwx 1 root root 11 Jun 25 00:15 S99local -> ../rc.local -------------------------------------------------------------------------------------------------- Networking information: lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) vsb_3 Link encap:Ethernet HWaddr AE:18:54:77:D4:84 inet addr:169.254.76.5 Bcast:0.0.0.0 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:36 errors:0 dropped:0 overruns:0 frame:0 TX packets:37 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13393 (13.0 KiB) TX bytes:8326 (8.1 KiB) Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg lo 65536 0 0 0 0 0 0 0 0 0 LRU vsb_3 1500 0 36 0 0 0 37 0 0 0 BMRU Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg lo 65536 0 0 0 0 0 0 0 0 0 LRU vsb_3 1500 0 36 0 0 0 37 0 0 0 BMRU Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 169.254.76.6 0.0.0.0 UG 0 0 0 vsb_3 169.254.76.0 0.0.0.0 255.255.255.0 U 0 0 0 vsb_3 169.254.76.6 0.0.0.0 255.255.255.255 UH 0 0 0 vsb_3 netstat: no support for `AF INET (sctp)' on this system. netstat: no support for `AF IPX' on this system. netstat: no support for `AF AX25' on this system. netstat: no support for `AF X25' on this system. netstat: no support for `AF NETROM' on this system. Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 169.254.76.5:52743 54.240.195.212:https ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 169.254.76.5:52743 54.240.195.212:443 ESTABLISHED Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path -------------------------------------------------------------------------------------------------- File ====> /etc/hosts <==== Beginning ====================================================== 127.0.0.1 localhost localhost.localdomain File ====> /etc/hosts <==== End ====================================================== -------------------------------------------------------------------------------------------------- procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 0 3043568 21460 569880 0 0 16 91 16 16 0 0 99 0 0 0 0 0 3021872 21512 591216 0 0 0 8615 106 136 0 0 90 9 0 0 0 0 2997672 21536 614904 0 0 0 5086 55 200 0 1 99 1 0 0 0 0 2996676 21568 615580 0 0 0 4706 79 103 0 0 95 5 0 0 0 0 2996676 21568 615580 0 0 0 0 14 12 0 0 100 0 0 -------------------------------------------------------------------------------------------------- Today's CPU performance statistics: 04:31:59 up 1:10, 0 users, load average: 0.00, 0.03, 0.05 -------------------------------------------------------------------------------------------------- Environment variables: AWS_ACCESS_KEY_ID=<removedD> AWS_DEFAULT_REGION=ap-southeast-2 AWS_LAMBDA_FUNCTION_MEMORY_SIZE=1024 AWS_LAMBDA_FUNCTION_NAME=test104 AWS_LAMBDA_FUNCTION_VERSION='$LATEST' AWS_LAMBDA_LOG_GROUP_NAME=/aws/lambda/test104 AWS_LAMBDA_LOG_STREAM_NAME='2016/07/21/[$LATEST]7b1556d01c0045758967eaee04f136c5' AWS_REGION=ap-southeast-2 AWS_SECRET_ACCESS_KEY=<removed> AWS_SECURITY_TOKEN=<removed> AWS_SESSION_TOKEN=<removed> BASH=/bin/bash BASHOPTS=cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_LINENO=([0]="0") BASH_SOURCE=([0]="./linuxinfo.sh") BASH_VERSINFO=([0]="4" [1]="2" [2]="46" [3]="1" [4]="release" [5]="x86_64-redhat-linux-gnu") BASH_VERSION='4.2.46(1)-release' DIRSTACK=() EUID=494 GROUPS=() HOSTNAME=ip-10-13-200-37 HOSTTYPE=x86_64 IFS=$' \t\n' LAMBDA_RUNTIME_DIR=/var/runtime LAMBDA_TASK_ROOT=/var/task LANG=en_US.UTF-8 LD_LIBRARY_PATH=/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib MACHTYPE=x86_64-redhat-linux-gnu OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/tmp/env/bin:/usr/local/bin:/usr/bin/:/bin PIPESTATUS=([0]="0") PPID=2 PS1='(env)' PS4='+ ' PWD=/tmp PYTHONPATH=/var/runtime SHELL=/sbin/nologin SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=2 TERM=dumb UID=494 VIRTUAL_ENV=/tmp/env _='Environment variables:\n\n' _OLD_VIRTUAL_PATH=/usr/local/bin:/usr/bin/:/bin _OLD_VIRTUAL_PS1= cachefly= cname=' Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz' cores=2 ec2='Non EC2 instance' freq=' 2893.346' i=/etc/hosts kernel='Linux ip-10-13-200-37 4.1.19-24.31.amzn1.x86_64 #1 SMP Tue Mar 15 23:41:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux' p=9 swap=0 tram=3767 up=' 1:10, ' version=$'Amazon Linux AMI release 2015.09\nKernel \\r on an \\m' catfile () { i=$1; if [ -f $i ]; then echo -e 'File ====> ' $i ' <==== Beginning ======================================================'; cat $i; echo -e 'File ====> ' $i ' <==== End ======================================================'; else echo -e 'File ====> ' $i ' <==== ' "does not exist =============================================="; fi } deactivate () { unset pydoc; if [ -n "$_OLD_VIRTUAL_PATH" ]; then PATH="$_OLD_VIRTUAL_PATH"; export PATH; unset _OLD_VIRTUAL_PATH; fi; if [ -n "$_OLD_VIRTUAL_PYTHONHOME" ]; then PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"; export PYTHONHOME; unset _OLD_VIRTUAL_PYTHONHOME; fi; if [ -n "$BASH" -o -n "$ZSH_VERSION" ]; then hash -r 2> /dev/null; fi; if [ -n "$_OLD_VIRTUAL_PS1" ]; then PS1="$_OLD_VIRTUAL_PS1"; export PS1; unset _OLD_VIRTUAL_PS1; fi; unset VIRTUAL_ENV; if [ ! "$1" = "nondestructive" ]; then unset -f deactivate; fi } sep () { echo -e "\n\n"; echo -e "--------------------------------------------------------------------------------------------------"; echo -e "\n\n" } $PATH: /tmp/env/bin:/usr/local/bin:/usr/bin/:/bin $MANPATH: -------------------------------------------------------------------------------------------------- File ====> /etc/profile <==== Beginning ====================================================== # /etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in /etc/bashrc # It's NOT a good idea to change this file unless you know what you # are doing. It's much better to create a custom.sh shell script in # /etc/profile.d/ to make custom changes to your environment, as this # will prevent the need for merging in future updates. pathmunge () { case ":${PATH}:" in *:"$1":*) ;; *) if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH fi esac } if [ -x /usr/bin/id ]; then if [ -z "$EUID" ]; then # ksh workaround EUID=`id -u` UID=`id -ru` fi USER="`id -un`" LOGNAME=$USER MAIL="/var/spool/mail/$USER" fi # Path manipulation if [ "$EUID" = "0" ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin else pathmunge /usr/local/sbin after pathmunge /usr/sbin after pathmunge /sbin after fi HOSTNAME=`/bin/hostname 2>/dev/null` HISTSIZE=1000 if [ "$HISTCONTROL" = "ignorespace" ] ; then export HISTCONTROL=ignoreboth else export HISTCONTROL=ignoredups fi export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL # By default, we want umask to get set. This sets it for login shell # Current threshold for system reserved uid/gids is 200 # You could check uidgid reservation validity in # /usr/share/doc/setup-*/uidgid file if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then umask 002 else umask 022 fi for i in /etc/profile.d/*.sh ; do if [ -r "$i" ]; then if [ "${-#*i}" != "$-" ]; then . "$i" else . "$i" >/dev/null 2>&1 fi fi done unset i unset -f pathmunge File ====> /etc/profile <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/nsswitch.conf <==== Beginning ====================================================== # # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Valid entries include: # # nisplus Use NIS+ (NIS version 3) # nis Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # db Use the local database (.db) files # compat Use NIS on compat mode # hesiod Use Hesiod for user lookups # [NOTFOUND=return] Stop searching if not found so far # # To use db, put the "db" in front of "files" for entries you want to be # looked up first in the databases # # Example: #passwd: db files nisplus nis #shadow: db files nisplus nis #group: db files nisplus nis passwd: files sss shadow: files sss group: files sss #hosts: db files nisplus nis dns hosts: files dns # Example - obey only what nisplus tells us... #services: nisplus [NOTFOUND=return] files #networks: nisplus [NOTFOUND=return] files #protocols: nisplus [NOTFOUND=return] files #rpc: nisplus [NOTFOUND=return] files #ethers: nisplus [NOTFOUND=return] files #netmasks: nisplus [NOTFOUND=return] files bootparams: nisplus [NOTFOUND=return] files ethers: files netmasks: files networks: files protocols: files rpc: files services: files sss netgroup: nisplus sss publickey: nisplus automount: files nisplus aliases: files nisplus File ====> /etc/nsswitch.conf <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/resolv.conf <==== Beginning ====================================================== ; generated by /sbin/dhclient-script search ap-southeast-2.compute.internal nameserver 10.13.0.2 File ====> /etc/resolv.conf <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/passwd <==== Beginning ====================================================== root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/sbin/nologin uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin operator:x:11:0:operator:/root:/sbin/nologin games:x:12:100:games:/usr/games:/sbin/nologin gopher:x:13:30:gopher:/var/gopher:/sbin/nologin ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin nobody:x:99:99:Nobody:/:/sbin/nologin ntp:x:38:38::/etc/ntp:/sbin/nologin saslauth:x:499:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin dbus:x:81:81:System message bus:/:/sbin/nologin ec2-user:x:500:500:EC2 Default User:/home/ec2-user:/bin/bash slicer:x:498:497::/tmp:/sbin/nologin sb_logger:x:497:496::/tmp:/sbin/nologin sbx_user1051:x:496:495::/home/sbx_user1051:/sbin/nologin sbx_user1052:x:495:494::/home/sbx_user1052:/sbin/nologin sbx_user1053:x:494:493::/home/sbx_user1053:/sbin/nologin sbx_user1054:x:493:492::/home/sbx_user1054:/sbin/nologin sbx_user1055:x:492:491::/home/sbx_user1055:/sbin/nologin sbx_user1056:x:491:490::/home/sbx_user1056:/sbin/nologin sbx_user1057:x:490:489::/home/sbx_user1057:/sbin/nologin sbx_user1058:x:489:488::/home/sbx_user1058:/sbin/nologin sbx_user1059:x:488:487::/home/sbx_user1059:/sbin/nologin sbx_user1060:x:487:486::/home/sbx_user1060:/sbin/nologin sbx_user1061:x:486:485::/home/sbx_user1061:/sbin/nologin sbx_user1062:x:485:484::/home/sbx_user1062:/sbin/nologin sbx_user1063:x:484:483::/home/sbx_user1063:/sbin/nologin sbx_user1064:x:483:482::/home/sbx_user1064:/sbin/nologin sbx_user1065:x:482:481::/home/sbx_user1065:/sbin/nologin sbx_user1066:x:481:480::/home/sbx_user1066:/sbin/nologin sbx_user1067:x:480:479::/home/sbx_user1067:/sbin/nologin sbx_user1068:x:479:478::/home/sbx_user1068:/sbin/nologin sbx_user1069:x:478:477::/home/sbx_user1069:/sbin/nologin sbx_user1070:x:477:476::/home/sbx_user1070:/sbin/nologin sbx_user1071:x:476:475::/home/sbx_user1071:/sbin/nologin sbx_user1072:x:475:474::/home/sbx_user1072:/sbin/nologin sbx_user1073:x:474:473::/home/sbx_user1073:/sbin/nologin sbx_user1074:x:473:472::/home/sbx_user1074:/sbin/nologin sbx_user1075:x:472:471::/home/sbx_user1075:/sbin/nologin sbx_user1076:x:471:470::/home/sbx_user1076:/sbin/nologin sbx_user1077:x:470:469::/home/sbx_user1077:/sbin/nologin sbx_user1078:x:469:468::/home/sbx_user1078:/sbin/nologin sbx_user1079:x:468:467::/home/sbx_user1079:/sbin/nologin sbx_user1080:x:467:466::/home/sbx_user1080:/sbin/nologin sbx_user1081:x:466:465::/home/sbx_user1081:/sbin/nologin sbx_user1082:x:465:464::/home/sbx_user1082:/sbin/nologin sbx_user1083:x:464:463::/home/sbx_user1083:/sbin/nologin sbx_user1084:x:463:462::/home/sbx_user1084:/sbin/nologin sbx_user1085:x:462:461::/home/sbx_user1085:/sbin/nologin sbx_user1086:x:461:460::/home/sbx_user1086:/sbin/nologin sbx_user1087:x:460:459::/home/sbx_user1087:/sbin/nologin sbx_user1088:x:459:458::/home/sbx_user1088:/sbin/nologin sbx_user1089:x:458:457::/home/sbx_user1089:/sbin/nologin sbx_user1090:x:457:456::/home/sbx_user1090:/sbin/nologin sbx_user1091:x:456:455::/home/sbx_user1091:/sbin/nologin sbx_user1092:x:455:454::/home/sbx_user1092:/sbin/nologin sbx_user1093:x:454:453::/home/sbx_user1093:/sbin/nologin sbx_user1094:x:453:452::/home/sbx_user1094:/sbin/nologin sbx_user1095:x:452:451::/home/sbx_user1095:/sbin/nologin sbx_user1096:x:451:450::/home/sbx_user1096:/sbin/nologin sbx_user1097:x:450:449::/home/sbx_user1097:/sbin/nologin sbx_user1098:x:449:448::/home/sbx_user1098:/sbin/nologin sbx_user1099:x:448:447::/home/sbx_user1099:/sbin/nologin sbx_user1100:x:447:446::/home/sbx_user1100:/sbin/nologin sbx_user1101:x:446:445::/home/sbx_user1101:/sbin/nologin sbx_user1102:x:445:444::/home/sbx_user1102:/sbin/nologin sbx_user1103:x:444:443::/home/sbx_user1103:/sbin/nologin sbx_user1104:x:443:442::/home/sbx_user1104:/sbin/nologin sbx_user1105:x:442:441::/home/sbx_user1105:/sbin/nologin sbx_user1106:x:441:440::/home/sbx_user1106:/sbin/nologin sbx_user1107:x:440:439::/home/sbx_user1107:/sbin/nologin sbx_user1108:x:439:438::/home/sbx_user1108:/sbin/nologin sbx_user1109:x:438:437::/home/sbx_user1109:/sbin/nologin sbx_user1110:x:437:436::/home/sbx_user1110:/sbin/nologin sbx_user1111:x:436:435::/home/sbx_user1111:/sbin/nologin sbx_user1112:x:435:434::/home/sbx_user1112:/sbin/nologin sbx_user1113:x:434:433::/home/sbx_user1113:/sbin/nologin sbx_user1114:x:433:432::/home/sbx_user1114:/sbin/nologin sbx_user1115:x:432:431::/home/sbx_user1115:/sbin/nologin sbx_user1116:x:431:430::/home/sbx_user1116:/sbin/nologin sbx_user1117:x:430:429::/home/sbx_user1117:/sbin/nologin sbx_user1118:x:429:428::/home/sbx_user1118:/sbin/nologin sbx_user1119:x:428:427::/home/sbx_user1119:/sbin/nologin sbx_user1120:x:427:426::/home/sbx_user1120:/sbin/nologin sbx_user1121:x:426:425::/home/sbx_user1121:/sbin/nologin sbx_user1122:x:425:424::/home/sbx_user1122:/sbin/nologin sbx_user1123:x:424:423::/home/sbx_user1123:/sbin/nologin sbx_user1124:x:423:422::/home/sbx_user1124:/sbin/nologin sbx_user1125:x:422:421::/home/sbx_user1125:/sbin/nologin sbx_user1126:x:421:420::/home/sbx_user1126:/sbin/nologin sbx_user1127:x:420:419::/home/sbx_user1127:/sbin/nologin sbx_user1128:x:419:418::/home/sbx_user1128:/sbin/nologin sbx_user1129:x:418:417::/home/sbx_user1129:/sbin/nologin sbx_user1130:x:417:416::/home/sbx_user1130:/sbin/nologin sbx_user1131:x:416:415::/home/sbx_user1131:/sbin/nologin sbx_user1132:x:415:414::/home/sbx_user1132:/sbin/nologin sbx_user1133:x:414:413::/home/sbx_user1133:/sbin/nologin sbx_user1134:x:413:412::/home/sbx_user1134:/sbin/nologin sbx_user1135:x:412:411::/home/sbx_user1135:/sbin/nologin sbx_user1136:x:411:410::/home/sbx_user1136:/sbin/nologin sbx_user1137:x:410:409::/home/sbx_user1137:/sbin/nologin sbx_user1138:x:409:408::/home/sbx_user1138:/sbin/nologin sbx_user1139:x:408:407::/home/sbx_user1139:/sbin/nologin sbx_user1140:x:407:406::/home/sbx_user1140:/sbin/nologin sbx_user1141:x:406:405::/home/sbx_user1141:/sbin/nologin sbx_user1142:x:405:404::/home/sbx_user1142:/sbin/nologin sbx_user1143:x:404:403::/home/sbx_user1143:/sbin/nologin sbx_user1144:x:403:402::/home/sbx_user1144:/sbin/nologin sbx_user1145:x:402:401::/home/sbx_user1145:/sbin/nologin sbx_user1146:x:401:400::/home/sbx_user1146:/sbin/nologin sbx_user1147:x:400:399::/home/sbx_user1147:/sbin/nologin sbx_user1148:x:399:398::/home/sbx_user1148:/sbin/nologin sbx_user1149:x:398:397::/home/sbx_user1149:/sbin/nologin sbx_user1150:x:397:396::/home/sbx_user1150:/sbin/nologin File ====> /etc/passwd <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/group <==== Beginning ====================================================== root:x:0: bin:x:1:bin,daemon daemon:x:2:bin,daemon sys:x:3:bin,adm adm:x:4:adm,daemon tty:x:5: disk:x:6: lp:x:7:daemon mem:x:8: kmem:x:9: wheel:x:10: mail:x:12:mail uucp:x:14: man:x:15: games:x:20: gopher:x:30: video:x:39: dip:x:40: ftp:x:50: lock:x:54: audio:x:63: nobody:x:99: users:x:100: utmp:x:22: utempter:x:35: mockbuild:x:2397: cdrom:x:11: tape:x:33: dialout:x:18: floppy:x:19: File ====> /etc/group <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/syslog.conf <==== does not exist ============================================== -------------------------------------------------------------------------------------------------- File ====> /etc/ssh/sshd.conf <==== does not exist ============================================== -------------------------------------------------------------------------------------------------- File ====> /etc/mail/sendmail.cf <==== does not exist ============================================== -------------------------------------------------------------------------------------------------- File ====> /etc/sysconfig/network <==== does not exist ============================================== -------------------------------------------------------------------------------------------------- File ====> /etc/sysconfig/network-scripts/ifdown-eth <==== Beginning ====================================================== #!/bin/bash # Network Interface Configuration System # Copyright (c) 1996-2009 Red Hat, Inc. all rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2, # as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA . /etc/init.d/functions cd /etc/sysconfig/network-scripts . ./network-functions [ -f ../network ] && . ../network CONFIG=${1} source_config . /etc/sysconfig/network # Check to make sure the device is actually up check_device_down ${DEVICE} && [ "$BOOTPROTO" != "dhcp" -a "$BOOTPROTO" != "bootp" ] && [ -n "$VLAN" -a "$VLAN" != "yes" ] && exit 0 if [ "${SLAVE}" != "yes" -o -z "${MASTER}" ]; then if [ -n "${HWADDR}" -a -z "${MACADDR}" ]; then FOUNDMACADDR=$(get_hwaddr ${REALDEVICE}) if [ -n "${FOUNDMACADDR}" -a "${FOUNDMACADDR}" != "${HWADDR}" ]; then NEWCONFIG=$(get_config_by_hwaddr ${FOUNDMACADDR}) if [ -n "${NEWCONFIG}" ]; then eval $(LANG=C fgrep "DEVICE=" $NEWCONFIG) else net_log $"Device ${DEVICE} has MAC address ${FOUNDMACADDR}, instead of configured address ${HWADDR}. Ignoring." exit 1 fi if [ -n "${NEWCONFIG}" -a "${NEWCONFIG##*/}" != "${CONFIG##*/}" -a "${DEVICE}" = "${REALDEVICE}" ]; then exec /sbin/ifdown ${NEWCONFIG} else net_log $"Device ${DEVICE} has MAC address ${FOUNDMACADDR}, instead of configured address ${HWADDR}. Ignoring." exit 1 fi fi fi fi if is_bonding_device ${DEVICE} ; then for device in $(LANG=C grep -l "^[[:space:]]*MASTER=\"\?${DEVICE}\"\?\([[:space:]#]\|$\)" /etc/sysconfig/network-scripts/ifcfg-*) ; do is_ignored_file "$device" && continue /sbin/ifdown ${device##*/} done for arg in $BONDING_OPTS ; do key=${arg%%=*}; [[ "${key}" != "arp_ip_target" ]] && continue value=${arg##*=}; if [ "${value:0:1}" != "" ]; then OLDIFS=$IFS; IFS=','; for arp_ip in $value; do if grep -q $arp_ip /sys/class/net/${DEVICE}/bonding/arp_ip_target; then echo "-$arp_ip" > /sys/class/net/${DEVICE}/bonding/arp_ip_target fi done IFS=$OLDIFS; else value=${value#+}; if grep -q $value /sys/class/net/${DEVICE}/bonding/arp_ip_target; then echo "-$value" > /sys/class/net/${DEVICE}/bonding/arp_ip_target fi fi done fi /etc/sysconfig/network-scripts/ifdown-ipv6 ${CONFIG} retcode=0 [ -n "$(pidof -x dhclient)" ] && { for VER in "" 6 ; do if [ -f "/var/run/dhclient$VER-${DEVICE}.pid" ]; then dhcpid=$(cat /var/run/dhclient$VER-${DEVICE}.pid) if [[ "$DHCPRELEASE" = [yY1]* ]]; then /sbin/dhclient -r -lf /var/lib/dhclient/dhclient$VER-${DEVICE}.leases -pf /var/run/dhclient$VER-${DEVICE}.pid ${DEVICE} >/dev/null 2>&1 retcode=$? else kill $dhcpid >/dev/null 2>&1 retcode=$? reason=STOP$VER interface=${DEVICE} /sbin/dhclient-script fi if [ -f "/var/run/dhclient$VER-${DEVICE}.pid" ]; then rm -f /var/run/dhclient$VER-${DEVICE}.pid kill $dhcpid >/dev/null 2>&1 fi fi done } # we can't just delete the configured address because that address # may have been changed in the config file since the device was # brought up. Flush all addresses associated with this # instance instead. if [ -d "/sys/class/net/${REALDEVICE}" ]; then LABEL= if [ "${REALDEVICE}" = "${DEVICE}" ]; then LABEL="label ${DEVICE}" fi if [ "${REALDEVICE}" = "lo" ]; then ip addr flush dev ${REALDEVICE} ${LABEL} scope host 2>/dev/null else ip addr flush dev ${REALDEVICE} ${LABEL} scope global 2>/dev/null ip -4 addr flush dev ${REALDEVICE} ${LABEL} scope host 2>/dev/null fi if [ "${SLAVE}" = "yes" -a -n "${MASTER}" ]; then echo "-${DEVICE}" > /sys/class/net/${MASTER}/bonding/slaves 2>/dev/null fi if [ "${REALDEVICE}" = "${DEVICE}" ]; then ip link set dev ${DEVICE} down 2>/dev/null fi fi [ "$retcode" = "0" ] && retcode=$? if [ -n "${BRIDGE}" -a -x /usr/sbin/brctl ]; then /sbin/ip link set dev ${DEVICE} down /usr/sbin/brctl delif ${BRIDGE} ${DEVICE} # Upon removing a device from a bridge, # it's necessary to make radvd reload its config [ -r /var/run/radvd/radvd.pid ] && kill -HUP $(cat /var/run/radvd/radvd.pid) if [ -d /sys/class/net/${BRIDGE}/brif ] && [ $(ls -1 /sys/class/net/${BRIDGE}/brif | wc -l) -eq 0 ]; then /usr/sbin/brctl delbr ${BRIDGE} fi fi if [ "${TYPE}" = "Tap" ]; then tunctl -d "${DEVICE}" >/dev/null fi # wait up to 5 seconds for device to actually come down if it is not an alias if [ ${DEVICE} == ${DEVICE%:*} ]; then waited=0 while ! check_device_down ${DEVICE} && [ "$waited" -lt 50 ] ; do usleep 10000 waited=$(($waited+1)) done fi # don't leave an outdated key sitting around if [ -n "${WIRELESS_ENC_KEY}" -a -x /sbin/iwconfig ]; then /sbin/iwconfig ${DEVICE} enc 0 >/dev/null 2>&1 fi if [ "$retcode" = 0 ] ; then /etc/sysconfig/network-scripts/ifdown-post $CONFIG # do NOT use $? because ifdown should return whether or not # the interface went down. fi if [ -n "$VLAN" ]; then # 802.1q VLAN if [ -f /proc/net/vlan/${DEVICE} ]; then ip link delete ${DEVICE} type vlan fi fi exit $retcode File ====> /etc/sysconfig/network-scripts/ifdown-eth <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/sysconfig/network-scripts/ifup-eth <==== Beginning ====================================================== #!/bin/bash # Network Interface Configuration System # Copyright (c) 1996-2010 Red Hat, Inc. all rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2, # as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA . /etc/init.d/functions cd /etc/sysconfig/network-scripts . ./network-functions [ -f ../network ] && . ../network CONFIG=${1} need_config "${CONFIG}" source_config # Old BOOTP variable if [ "${BOOTP}" = "yes" ]; then BOOTPROTO=bootp fi if [ "${BOOTPROTO}" = "bootp" -o "${BOOTPROTO}" = "dhcp" ]; then DYNCONFIG=true fi # load the module associated with that device # /sbin/modprobe ${REALDEVICE} is_available ${REALDEVICE} # bail out, if the MAC does not fit if [ -n "${HWADDR}" ]; then FOUNDMACADDR=$(get_hwaddr ${REALDEVICE}) if [ "${FOUNDMACADDR}" != "${HWADDR}" -a "${FOUNDMACADDR}" != "${MACADDR}" ]; then net_log $"Device ${DEVICE} has different MAC address than expected, ignoring." exit 1 fi fi # If the device is a bridge, create it with brctl, if available. if [ "${TYPE}" = "Bridge" ]; then if [ ! -x /usr/sbin/brctl ]; then net_log $"Bridge support not available: brctl not found" exit 1 fi if [ ! -d /sys/class/net/${DEVICE}/bridge ]; then /usr/sbin/brctl addbr ${DEVICE} || exit 1 fi [ -n "${DELAY}" ] && /usr/sbin/brctl setfd ${DEVICE} ${DELAY} [ -n "${STP}" ] && /usr/sbin/brctl stp ${DEVICE} ${STP} [ -n "${PRIO}" ] && /usr/sbin/brctl setbridgeprio ${DEVICE} ${PRIO} [ -n "${AGEING}" ] && /usr/sbin/brctl setageing ${DEVICE} ${AGEING} # add the bits to setup driver parameters here for arg in $BRIDGING_OPTS ; do key=${arg%%=*}; value=${arg##*=}; echo $value > /sys/class/net/${DEVICE}/bridge/$key done fi # If the device is a tap device, create it with tunctl, if available. if [ "${TYPE}" = "Tap" ]; then if [ ! -x /usr/sbin/tunctl ]; then net_log $"Tap support not available: tunctl not found" exit 1 fi [ -n "${OWNER}" ] && OWNER="-u ${OWNER}" /usr/sbin/tunctl ${OWNER} -t ${DEVICE} > /dev/null fi # now check the real state is_available ${REALDEVICE} || { if [ -n "$alias" ]; then net_log $"$alias device ${DEVICE} does not seem to be present, delaying initialization." else net_log $"Device ${DEVICE} does not seem to be present, delaying initialization." fi exit 1 } # this isn't the same as the MAC in the configuration filename. It is # available as a configuration option in the config file, forcing the kernel # to think an ethernet card has a different MAC address than it really has. if [ -n "${MACADDR}" ]; then ip link set dev ${DEVICE} address ${MACADDR} fi if [ -n "${MTU}" ]; then ip link set dev ${DEVICE} mtu ${MTU} fi # is the device wireless? If so, configure wireless device specifics is_wireless_device ${DEVICE} && . ./ifup-wireless # slave device? if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" ]; then install_bonding_driver ${MASTER} grep -wq "${DEVICE}" /sys/class/net/${MASTER}/bonding/slaves 2>/dev/null || { /sbin/ip link set dev ${DEVICE} down echo "+${DEVICE}" > /sys/class/net/${MASTER}/bonding/slaves 2>/dev/null } ethtool_set exit 0 fi # Bonding initialization. For DHCP, we need to enslave the devices early, # so it can actually get an IP. if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then install_bonding_driver ${DEVICE} /sbin/ip link set dev ${DEVICE} up for device in $(LANG=C grep -l "^[[:space:]]*MASTER=\"\?${DEVICE}\"\?\([[:space:]#]\|$\)" /etc/sysconfig/network-scripts/ifcfg-*) ; do is_ignored_file "$device" && continue /sbin/ifup ${device##*/} done [ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY} # add the bits to setup the needed post enslavement parameters for arg in $BONDING_OPTS ; do key=${arg%%=*}; value=${arg##*=}; if [ "${key}" = "primary" ]; then echo $value > /sys/class/net/${DEVICE}/bonding/$key fi done fi # If the device is part of a bridge, add the device to the bridge if [ -n "${BRIDGE}" -a -x /usr/sbin/brctl ]; then if [ ! -d /sys/class/net/${BRIDGE}/bridge ]; then /usr/sbin/brctl addbr ${BRIDGE} 2>/dev/null fi /sbin/ip addr flush dev ${DEVICE} 2>/dev/null /sbin/ip link set dev ${DEVICE} up ethtool_set [ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY} /usr/sbin/brctl addif ${BRIDGE} ${DEVICE} # add the bits to setup driver parameters here for arg in $BRIDGING_OPTS ; do key=${arg%%=*}; value=${arg##*=}; echo $value > /sys/class/net/${DEVICE}/brport/$key done # Upon adding a device to a bridge, # it's necessary to make radvd reload its config [ -r /var/run/radvd/radvd.pid ] && kill -HUP $(cat /var/run/radvd/radvd.pid) exit 0 fi if [ -n "${DYNCONFIG}" -a -x /sbin/dhclient ]; then if [[ "${PERSISTENT_DHCLIENT}" = [yY1]* ]]; then ONESHOT=""; else ONESHOT="-1"; fi; generate_config_file_name # copy any lease obtained by the initrd for file in /dev/.dhclient-${DEVICE}.leases /dev/.initramfs/net.${DEVICE}.lease ; do if [ -f "${file}" ]; then mv -f $file /var/lib/dhclient/dhclient-${DEVICE}.leases [ -x /sbin/restorecon ] && restorecon /var/lib/dhclient/dhclient-${DEVICE}.leases > /dev/null 2>&1 fi done DHCLIENTARGS="${DHCLIENTARGS} ${DHCP_HOSTNAME:+-H $DHCP_HOSTNAME} ${ONESHOT} -q ${DHCLIENTCONF} -lf /var/lib/dhclient/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid" echo echo -n $"Determining IP information for ${DEVICE}..." if [[ "${PERSISTENT_DHCLIENT}" != [yY1]* ]] && check_link_down ${DEVICE}; then echo $" failed; no link present. Check cable?" exit 1 fi ethtool_set if /sbin/dhclient ${DHCLIENTARGS} ${DEVICE} ; then echo $" done." dhcpipv4="good" else echo $" failed." if [[ "${IPV4_FAILURE_FATAL}" = [Yy1]* ]] ; then exit 1 fi if [[ "$IPV6INIT" != [yY1]* && "$DHCPV6C" != [yY1]* ]] ; then exit 1 fi net_log "Unable to obtain IPv4 DHCP address ${DEVICE}." warning fi # end dynamic device configuration else if [ -z "${IPADDR}" -a -z "${IPADDR0}" -a -z "${IPADDR1}" -a -z "${IPADDR2}" ]; then # enable device without IP, useful for e.g. PPPoE ip link set dev ${REALDEVICE} up ethtool_set [ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY} else expand_config [ -n "${ARP}" ] && \ ip link set dev ${REALDEVICE} $(toggle_value arp $ARP) if ! ip link set dev ${REALDEVICE} up ; then net_log $"Failed to bring up ${DEVICE}." exit 1 fi ethtool_set [ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY} if [ "${DEVICE}" = "lo" ]; then SCOPE="scope host" else SCOPE=${SCOPE:-} fi if [ -n "$SRCADDR" ]; then SRC="src $SRCADDR" else SRC= fi # set IP address(es) for idx in {0..256} ; do if [ -z "${ipaddr[$idx]}" ]; then break fi if ! LC_ALL=C ip addr ls ${REALDEVICE} | LC_ALL=C grep -q "${ipaddr[$idx]}/${prefix[$idx]}" ; then if [ "${REALDEVICE}" != "lo" ] && [ "${arpcheck[$idx]}" != "no" ] ; then echo $"Determining if ip address ${ipaddr[$idx]} is already in use for device ${REALDEVICE}..." if ! /sbin/arping -q -c 2 -w ${ARPING_WAIT:-3} -D -I ${REALDEVICE} ${ipaddr[$idx]} ; then net_log $"Error, some other host already uses address ${ipaddr[$idx]}." exit 1 fi fi if ! ip addr add ${ipaddr[$idx]}/${prefix[$idx]} \ brd ${broadcast[$idx]:-+} dev ${REALDEVICE} ${SCOPE} label ${DEVICE}; then net_log $"Error adding address ${ipaddr[$idx]} for ${DEVICE}." fi fi if [ -n "$SRCADDR" ]; then sysctl -w "net.ipv4.conf.${SYSCTLDEVICE}.arp_filter=1" >/dev/null 2>&1 fi # update ARP cache of neighboring computers if [ "${REALDEVICE}" != "lo" ]; then /sbin/arping -q -A -c 1 -I ${REALDEVICE} ${ipaddr[$idx]} ( sleep 2; /sbin/arping -q -U -c 1 -I ${REALDEVICE} ${ipaddr[$idx]} ) > /dev/null 2>&1 < /dev/null & fi done # Set a default route. if [ "${DEFROUTE}" != "no" ] && [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then # set up default gateway. replace if one already exists if [ -n "${GATEWAY}" ] && [ "$(ipcalc --network ${GATEWAY} ${netmask[0]} 2>/dev/null)" = "NETWORK=${NETWORK}" ]; then ip route replace default ${METRIC:+metric $METRIC} \ via ${GATEWAY} ${WINDOW:+window $WINDOW} ${SRC} \ ${GATEWAYDEV:+dev $GATEWAYDEV} || net_log $"Error adding default gateway ${GATEWAY} for ${DEVICE}." elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then ip route replace default ${METRIC:+metric $METRIC} \ ${SRC} ${WINDOW:+window $WINDOW} dev ${REALDEVICE} || net_log $"Erorr adding default gateway for ${REALDEVICE}." fi fi fi fi # Add Zeroconf route. if [ -z "${NOZEROCONF}" -a "${ISALIAS}" = "no" -a "${REALDEVICE}" != "lo" ]; then ip route add 169.254.0.0/16 dev ${REALDEVICE} metric $((1000 + $(cat /sys/class/net/${REALDEVICE}/ifindex))) scope link fi if [ "${TYPE}" = "Bridge" ]; then for arg in $BRIDGING_OPTS ; do key=${arg%%=*}; value=${arg##*=}; if [ "${key}" = "multicast_router" -o "${key}" = "hash_max" -o "${key}" = "multicast_snooping" ]; then echo $value > /sys/class/net/${DEVICE}/bridge/$key fi done fi # IPv6 initialisation? /etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG} if [[ "${DHCPV6C}" = [Yy1]* ]] && [ -x /sbin/dhclient ]; then generate_config_file_name 6 echo echo -n $"Determining IPv6 information for ${DEVICE}..." if /sbin/dhclient -6 -1 ${DHCPV6C_OPTIONS} ${DHCLIENTCONF} -lf /var/lib/dhclient/dhclient6-${DEVICE}.leases -pf /var/run/dhclient6-${DEVICE}.pid ${DHCP_HOSTNAME:+-H $DHCP_HOSTNAME} ${DEVICE} ; then echo $" done." else echo $" failed." if [ "${dhcpipv4}" = "good" -o -n "${IPADDR}" ]; then net_log "Unable to obtain IPv6 DHCP address ${DEVICE}." warning else exit 1 fi fi fi exec /etc/sysconfig/network-scripts/ifup-post ${CONFIG} ${2} File ====> /etc/sysconfig/network-scripts/ifup-eth <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/sysconfig/network-scripts/if*bond* <==== does not exist ============================================== -------------------------------------------------------------------------------------------------- File ====> /sys/class/net/bond0/bonding/mode <==== does not exist ============================================== -------------------------------------------------------------------------------------------------- File ====> /etc/inittab <==== Beginning ====================================================== # inittab is only used by upstart for the default runlevel. # # ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # System initialization is started by /etc/init/rcS.conf # # Individual runlevels are started by /etc/init/rc.conf # # Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf # # Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf, # with configuration in /etc/sysconfig/init. # # For information on how to write upstart event handlers, or how # upstart works, see init(5), init(8), and initctl(8). # # Default runlevel. The runlevels used are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) # id:3:initdefault: File ====> /etc/inittab <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/hosts.allow <==== Beginning ====================================================== # # hosts.allow This file contains access rules which are used to # allow or deny connections to network services that # either use the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers # File ====> /etc/hosts.allow <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/hosts.deny <==== Beginning ====================================================== # # hosts.deny This file contains access rules which are used to # deny connections to network services that either use # the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # The rules in this file can also be set up in # /etc/hosts.allow with a 'deny' option instead. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers # File ====> /etc/hosts.deny <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/sysctl.conf <==== Beginning ====================================================== # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding net.ipv4.ip_forward = 0 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Do not accept source routing net.ipv4.conf.default.accept_source_route = 0 # Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 # Controls whether core dumps will append the PID to the core filename. # Useful for debugging multi-threaded applications. kernel.core_uses_pid = 1 # Controls the use of TCP syncookies net.ipv4.tcp_syncookies = 1 # Controls the default maxmimum size of a mesage queue kernel.msgmnb = 65536 # Controls the maximum size of a message, in bytes kernel.msgmax = 65536 # Controls the maximum shared segment size, in bytes kernel.shmmax = 68719476736 # Controls the maximum number of shared memory segments, in pages kernel.shmall = 4294967296 File ====> /etc/sysctl.conf <==== End ====================================================== ------------------------------------------------------------------------------------------------ File ====> /etc/pam.d/system-auth <==== Beginning ====================================================== #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required pam_env.so auth sufficient pam_unix.so try_first_pass nullok auth required pam_deny.so account required pam_unix.so password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type= password sufficient pam_unix.so try_first_pass use_authtok nullok sha512 shadow password required pam_deny.so session optional pam_keyinit.so revoke session required pam_limits.so session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid session required pam_unix.so File ====> /etc/pam.d/system-auth <==== End ====================================================== -------------------------------------------------------------------------------------------------- File ====> /etc/security/limits.conf <==== Beginning ====================================================== # /etc/security/limits.conf # #This file sets the resource limits for the users logged in via PAM. #It does not affect resource limits of the system services. # #Also note that configuration files in /etc/security/limits.d directory, #which are read in alphabetical order, override the settings in this #file in case the domain is the same or more specific. #That means for example that setting a limit for wildcard domain here #can be overriden with a wildcard setting in a config file in the #subdirectory, but a user specific setting here can be overriden only #with a user specific setting in the subdirectory. # #Each line describes a limit for a user in the form: # #<domain> <type> <item> <value> # #Where: #<domain> can be: # - a user name # - a group name, with @group syntax # - the wildcard *, for default entry # - the wildcard %, can be also used with %group syntax, # for maxlogin limit # #<type> can have the two values: # - "soft" for enforcing the soft limits # - "hard" for enforcing hard limits # #<item> can be one of the following: # - core - limits the core file size (KB) # - data - max data size (KB) # - fsize - maximum filesize (KB) # - memlock - max locked-in-memory address space (KB) # - nofile - max number of open file descriptors # - rss - max resident set size (KB) # - stack - max stack size (KB) # - cpu - max CPU time (MIN) # - nproc - max number of processes # - as - address space limit (KB) # - maxlogins - max number of logins for this user # - maxsyslogins - max number of logins on the system # - priority - the priority to run user process with # - locks - max number of file locks the user can hold # - sigpending - max number of pending signals # - msgqueue - max memory used by POSIX message queues (bytes) # - nice - max nice priority allowed to raise to values: [-20, 19] # - rtprio - max realtime priority # #<domain> <type> <item> <value> # #* soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #@student - maxlogins 4 # End of file File ====> /etc/security/limits.conf <==== End ====================================================== End of Linuxinfo output
Using Lambda with CLI: zip -r LambdaTest.zip *
aws lambda update-function-code --function-name LambdaTest --zip-file fileb://LambdaTest.zip
# Publishing a new Version of the Lambda function
version=`aws lambda publish-version --function-name LambdaTest | jq -r .Version`
# Updating the PROD Lambda Alias so it points to the new function
aws lambda update-alias --function-name LambdaTest --function-version $version --name PROD
aws lambda get-function --function-name “LambdaTest”
# Invoking Lambda function from update PROD alias
aws lambda invoke --function-name LambdaTest --payload "$(cat data.json)" --qualifier PROD lambda_output.txt
cat lambda_output.txt

No comments:
Post a Comment