sábado, fevereiro 18, 2017

How to see CPU temperature on CentOS 7 and RedHat Enterprise Linux 7

How to see CPU temperature on CentOS 7 and RedHat Enterprise Linux 7





How to see CPU temperature on CentOS 7 and RedHat Enterprise Linux 7

Iam a new sysadmin of CentOS 7 server. How do I get my CPU temperature Information on CentOS Linux 7 or Red Hat Enterprise Linux 7 server?

You need to install Linux hardware monitoring tool called lm_sensor. This tool provides some essential command line utilities for monitoring the hardware health of Linux systems containing hardware health monitoring hardware including CPU and fan speed.

Find out your os version

$ cat /etc/centos-release
OR
$ cat /etc/redhat-release
Sample outputs:
CentOS Linux release 7.2.1511 (Core) 

Install lm_sensors package on CentOS/RHEL 7

Type the following yum command:
$ sudo yum install lm_sensors
Sample outputs:
Fig.01: Installing ln_sensors on CentOS 7/RHEL 7
Fig.01: Installing ln_sensors on CentOS 7/RHEL 7

How to configure lm_sensors

Type the following command and say YES to all prompts:
$ sudo sensors-detect
Sample outputs:
# sensors-detect revision 6170 (2013-05-20 21:25:22 +0200)
# System: ADI Engineering RCC-VE [1.0]

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): YES
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): YES
Probing for `Maxim MAX6639'...                              No
Probing for `Analog Devices ADM1029'...                     No
Probing for `ITE IT8712F'...                                No
Probing for `Fintek custom power control IC'...             No
Probing for `Winbond W83791SD'...                           No
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'...                                No

Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): YES
Unloading i2c-dev... OK

How to get CPU temperature information on CentOS/RHEL 7 Linux

Type the following command:
$ sensors
Sample outputs:
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +48.0°C  (high = +98.0°C, crit = +98.0°C)
Core 1:       +48.0°C  (high = +98.0°C, crit = +98.0°C)
Core 2:       +48.0°C  (high = +98.0°C, crit = +98.0°C)
Core 3:       +47.0°C  (high = +98.0°C, crit = +98.0°C)

sexta-feira, janeiro 20, 2017

get IP address automation script

get ip address automation script

what is my ip address


whatismyip.com
http://whatismyipaddress.com/


If you can make your "info panel" (whatever that is) application parse any other URI try grabbing the IP address from other sites like http://icanhazip.com/ or http://ifconfig.me/ip or http://myip.dnsomatic.com/ ?

https://major.io/icanhazip-com-faq/



icanhazip.com FAQ

Which sites are available?
You have a few to choose from:
Why should I use these services when there are plenty of other ones out there?
My services return all data in plain text without any advertisements or extra data. I also monitor the services to ensure they’re always available.
How do I control whether I get results based on IPv4 or IPv6?
There are two helper subdomains for icanhazip.com: ipv4.icanhazip.com and ipv6.icanhazip.com. However, I recommend using your command line tool options or code libraries to handle this:
How do I deal with a proxy that is mangling my externally facing IP address?
I run all of these services on ports 80 and 81 in clear text. You can also use SSL to reach these services on port 443 but only icanhazip.com has an SSL certificate configured. For example:
Why do all these domains have “icanhaz” in them?
You may understand the reasoning further if you review Wikipedia’s article on lolcats.
Where can I get the source?
Roll on over to GitHub!
Can I add checks against these domains to my scripts?
Sure! Just try not to smash the service with unneeded requests.
What about my privacy?
I do keep the logs from the web server around to ensure that the service isn’t being abused. However, no data is stored in a database or provided to third parties. I may pull some general statistics from the logs from time to time about the countries where the site is the most popular, but there will never be anything released on a granular level.
My Puppy Linux box keeps talking to your server. What’s up?
I’m not a Puppy Linux user, but my site is used by some of the startup scripts to help users determine what their external IP address is after booting. My site returns IP addresses without any advertisements and that’s why it’s relatively popular in some circles. I don’t gather any information about users other than what would normally appear in an Apache log. If you’re upset about your computer making these connections, please direct your complaints to Puppy Linux developers and maintainers.

domingo, janeiro 01, 2017