linux_getting_started_info
Basic Operating System Information -- Linux (any distro)

1. Is the system with the problem you're reporting actually on a current support contract?

  • If yes, proceed to Step 2 below…

2. What is the:

  1. Version of Linux?
  2. Serial number of the system?
  3. Architecture of the system (X86, AMD64, Integrity, etc)?
  4. How many CPUs (cores) in the system?
  5. How much physical memory?
  6. How long has the system been up?

All of the above can be displayed with either of these commands –

Just cut-&-paste the following long line (all of it) onto your shell's command line, then hit Enter:

sudo echo "" ; uname -a \
; lscpu | grep "\(op-mode\|CPU\|Core\)" \
; sudo dmidecode -t processor | grep "\(Serial Number:\|Family:\|Version:\)" \
; lsmem | grep ":" ; free -h

Hint: Use your mouse to select all four lines above. When the whole command is selected, enter Ctrl/C to copy it to your paste-buffer. Then go to your shell's terminal window logged, and enter Shift+Insert to paste this text into the command line… hit Enter to execute the command.

or:

Use this alias command (define it in your shell's init-script):

$ alias sysinfo='sudo echo "" ; uname -a' \
               + ' ; lscpu | grep "\(op-mode\|CPU\|Core\)"' \
               + ' ; sudo dmidecode -t processor | grep "\(Serial Number:\|Family:\|Version:\)"' \
               + ' ; lsmem | grep ":" ; free -h'

Hint: Copy/paste the four lines above into your shell's init-script, e.g., ~/.bashrc or equivalent. Logout and then login again – Then you can use the alias command interactively, as follows:

$ sysinfo

In either case, you'll see something like this:

Linux groucho 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
CPU op-mode(s):      32-bit, 64-bit
CPU(s):              2
On-line CPU(s) list: 0,1
Core(s) per socket:  2
CPU family:          6
Model name:          Intel(R) Pentium(R) CPU G3220 @ 3.00GHz
CPU MHz:             2782.301
CPU max MHz:         3000.0000
CPU min MHz:         800.0000
NUMA node0 CPU(s):   0,1
        Family: Pentium
        Version: Intel(R) Pentium(R) CPU G3220 @ 3.00GHz
        Serial Number: Not Specified
Memory block size:       128M
Total online memory:     7.9G
Total offline memory:      0B
              total        used        free      shared  buff/cache   available
Mem:           7.6G        3.6G        1.7G        516M        2.4G        3.4G
Swap:           14G         38M         14G

When you run either of these commands, just cut-&-paste the resulting output into an email message for us, typically in response to the PARSEC's introductory email, Subject: Case XXXX has been logged for YourCompanyName by TechName.

Be sure that all of your email correspondence about this case includes the “Case XXXX” (where XXXX is your case number) as the first two words of the Subject: line.

Sending logs

Logs on your Linux system can be found generally under one of two places /var/log and/or /var/adm. In cases where log files are requested. Please create a tar archive with the appropriate logs and include it with an email to support.

journalctl >/tmp/journal.txt
tar czvf /tmp/case-1234-linux-logs.tar.gz /var/log /var/adm /tmp/journal.txt

The output file will be /tmp/case-1234-linux-logs.tar.gz and this is the file we'll need. Use SFTP or FTP and grab the file then attach it to email or send it to us via our FTP server.

linux_getting_started_info.txt · Last modified: 2018/09/17 22:06 by sgriggs