cumulus@cumulus$ smonctl -jThe following Python script, smon_sflow.py, invokes the command, parses the output, and posts a set of custom sFlow metrics:
[
{
"pwm_path": "/sys/devices/soc.0/ffe03100.i2c/i2c-1/1-004d",
"all_ok": "1",
"driver_hwmon": [
"fan1"
],
"min": 2500,
"cpld_path": "/sys/devices/ffe05000.localbus/ffb00000.CPLD",
"state": "OK",
"prev_state": "OK",
"msg": null,
"input": 8998,
"type": "fan",
"pwm1": 121,
"description": "Fan1",
"max": 29000,
"start_time": 1450228330,
"var": 15,
"pwm1_enable": 0,
"prev_msg": null,
"log_time": 1450228330,
"present": "1",
"target": 0,
"name": "Fan1",
"fault": "0",
"pwm_hwmon": [
"pwm1"
],
"driver_path": "/sys/devices/soc.0/ffe03100.i2c/i2c-1/1-004d",
"div": "4",
"cpld_hwmon": [
"fan1"
]
},
...
#!/usr/bin/env python
import json
import socket
from subprocess import check_output
res = check_output(["/usr/sbin/smonctl","-j"])
smon = json.loads(res)
fan_maxpc = 0
fan_down = 0
fan_up = 0
psu_down = 0
psu_up = 0
temp_maxpc = 0
temp_up = 0
temp_down = 0
for s in smon:
type = s["type"]
if(type == Continue reading
Oracle expects 2016 profits to soar as it moves more of its business to the cloud.
AlcaLu and Red Hat partner on this one.
Take survey and enter to win one of two $200 Amazon Gift Cards.
Padmasree Warrior’s new job will pit her against Telsa Motors and other electric vehicle manufacturers.
Boise, Idaho, is your new SD-WAN powerhouse.
The Datanauts talk about their home lab setups, including issues with location, noise, and power consumption. They also examine cloud and online options, and discuss the surprising amount of lab work you can do with just a laptop.
The post Datanauts 018: Learning With Home Labs, Cloud Labs & More appeared first on Packet Pushers.
The Datanauts talk about their home lab setups, including issues with location, noise, and power consumption. They also examine cloud and online options, and discuss the surprising amount of lab work you can do with just a laptop.
The post Datanauts 018: Learning With Home Labs, Cloud Labs & More appeared first on Packet Pushers.

The post Worth Reading: Grumpy old network architects appeared first on 'net work.

Every once in a while, I like to see who is clicking through to my blog. It helps me figure out what’s important to write about and who reads things. I found a recent comment that made me think about what I’m doing from a different perspective.
I get occasional inbound traffic from Reddit. The comments on Reddit are a huge reason to follow threads on the site. In one particular thread on /r/networking linked back to my blog as a source of networking news and discussion. But a comment gave me pause:
https://www.reddit.com/r/networking/comments/3mpjpz/networking_websites/cvgyfye
And I quote:
Cons : they almost all know each other and tend to promote each other content.
This was a bit fascinating to me. Of the people in that particular comment, I’ve only ever met one in person. I do know quite a few people in the networking space as part of my career, both related to Tech Field Day and just through writing.
It is true that I share quite a bit of content from other writers. My day job notwithstanding, I feel it is my duty to identify great pieces of writing or thought-provoking ideas and share it Continue reading