Skip to content

Instantly share code, notes, and snippets.

@someara
Created January 4, 2013 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save someara/4449461 to your computer and use it in GitHub Desktop.
Save someara/4449461 to your computer and use it in GitHub Desktop.
ohai slackberry
root@slackberry:~# time ohai
{
"languages": {
"ruby": {
"platform": "arm-linux-eabi",
"version": "1.9.3",
"release_date": "2012-04-20",
"target": "arm-slackware-linux-gnueabi",
"target_cpu": "arm",
"target_vendor": "slackware",
"target_os": "linux-eabi",
"host": "arm-slackware-linux-gnueabi",
"host_cpu": "arm",
"host_os": "linux-gnueabi",
"host_vendor": "slackware",
"bin_dir": "/usr/bin",
"ruby_bin": "/usr/bin/ruby",
"gems_dir": "/usr/lib/ruby/gems/1.9.1",
"gem_bin": "/usr/bin/gem"
},
"python": {
"version": "2.7.3",
"builddate": "Jul 8 2012, 10:03:31"
},
"php": {
"version": "5.4.7",
"builddate": "Sep 16 2012"
},
"perl": {
"version": "5.16.1",
"archname": "arm-linux-gnueabi-thread-multi"
}
},
"kernel": {
"name": "Linux",
"release": "3.1.9-20120801",
"version": "#1 PREEMPT Wed Aug 1 19:53:41 BST 2012",
"machine": "armv6l",
"modules": {
"hid_apple": {
"size": "3868",
"refcount": "0"
},
"ipv6": {
"size": "213328",
"refcount": "10"
},
"fuse": {
"size": "49448",
"refcount": "1"
},
"dm_mod": {
"size": "46140",
"refcount": "0"
},
"evdev": {
"size": "6640",
"refcount": "0"
},
"mousedev": {
"size": "7552",
"refcount": "0"
},
"spidev": {
"size": "3788",
"refcount": "0"
},
"usbhid": {
"size": "28396",
"refcount": "0"
},
"smsc95xx": {
"size": "9316",
"refcount": "0"
},
"hid": {
"size": "39108",
"refcount": "2"
},
"usbnet": {
"size": "11118",
"refcount": "1"
},
"i2c_bcm2708": {
"size": "2652",
"refcount": "0"
},
"spi_bcm2708": {
"size": "3640",
"refcount": "0"
},
"i2c_core": {
"size": "12060",
"refcount": "1"
},
"loop": {
"size": "10816",
"refcount": "0"
}
},
"os": "GNU/Linux"
},
"os": "linux",
"os_version": "3.1.9-20120801",
"network": {
"interfaces": {
"lo": {
"mtu": "16436",
"flags": [
"LOOPBACK",
"UP",
"LOWER_UP"
],
"encapsulation": "Loopback",
"addresses": {
"127.0.0.1": {
"family": "inet",
"prefixlen": "8",
"netmask": "255.0.0.0",
"scope": "Node"
},
"::1": {
"family": "inet6",
"prefixlen": "128",
"scope": "Node"
}
},
"state": "unknown",
"routes": [
{
"destination": "127.0.0.0/8",
"family": "inet",
"scope": "link"
}
]
},
"eth0": {
"type": "eth",
"number": "0",
"mtu": "1500",
"flags": [
"BROADCAST",
"MULTICAST",
"UP",
"LOWER_UP"
],
"encapsulation": "Ethernet",
"addresses": {
"B8:27:EB:27:8C:C1": {
"family": "lladdr"
},
"172.30.1.141": {
"family": "inet",
"prefixlen": "24",
"netmask": "255.255.255.0",
"broadcast": "172.30.1.255",
"scope": "Global"
},
"2001:470:1f07:32b:ba27:ebff:fe27:8cc1": {
"family": "inet6",
"prefixlen": "64",
"scope": "Global"
},
"fe80::ba27:ebff:fe27:8cc1": {
"family": "inet6",
"prefixlen": "64",
"scope": "Link"
}
},
"state": "up",
"arp": {
"172.30.1.139": "7c:d1:c3:f6:1c:79",
"172.30.1.1": "00:25:9c:c2:91:0f"
},
"routes": [
{
"destination": "default",
"family": "inet",
"via": "172.30.1.1",
"metric": "202"
},
{
"destination": "172.30.1.0/24",
"family": "inet",
"scope": "link",
"metric": "202",
"proto": "kernel",
"src": "172.30.1.141"
},
{
"destination": "2001:470:1f07:32b::/64",
"family": "inet6",
"metric": "256",
"proto": "kernel"
},
{
"destination": "fe80::/64",
"family": "inet6",
"metric": "256",
"proto": "kernel"
},
{
"destination": "ff00::/8",
"family": "inet6",
"metric": "256"
},
{
"destination": "default",
"family": "inet6",
"via": "fe80::225:9cff:fec2:910f",
"metric": "1024",
"proto": "kernel"
}
],
"neighbour_inet6": {
"fe80::225:9cff:fec2:910f": "00:25:9c:c2:91:0f"
}
}
},
"default_interface": "eth0",
"default_gateway": "172.30.1.1",
"default_inet6_interface": "eth0",
"default_inet6_gateway": "fe80::225:9cff:fec2:910f"
},
"counters": {
"network": {
"interfaces": {
"lo": {
"rx": {
"bytes": "52480",
"packets": "205",
"errors": "0",
"drop": "0",
"overrun": "0"
},
"tx": {
"bytes": "52480",
"packets": "205",
"errors": "0",
"drop": "0",
"carrier": "0",
"collisions": "0"
}
},
"eth0": {
"tx": {
"queuelen": "1000",
"bytes": "2478744",
"packets": "17394",
"errors": "0",
"drop": "0",
"carrier": "0",
"collisions": "0"
},
"rx": {
"bytes": "17238002",
"packets": "29879",
"errors": "0",
"drop": "51",
"overrun": "0"
}
}
}
}
},
"ipaddress": "172.30.1.141",
"macaddress": "B8:27:EB:27:8C:C1",
"hostname": "slackberry",
"fqdn": "slackberry.sean.io",
"domain": "sean.io",
"command": {
"ps": "ps -ef"
},
"lsb": {
},
"platform": "slackware",
"platform_version": "14.0",
"platform_family": "slackware",
"chef_packages": {
"chef": {
"version": "10.16.4",
"chef_root": "/usr/lib/ruby/gems/1.9.1/gems/chef-10.16.4/lib"
},
"ohai": {
"version": "6.14.0",
"ohai_root": "/usr/lib/ruby/gems/1.9.1/gems/ohai-6.14.0/lib/ohai"
}
},
"dmi": {
"dmidecode_version": "2.11"
},
"virtualization": {
},
"etc": {
"passwd": {
"root": {
"dir": "/root",
"gid": 0,
"uid": 0,
"shell": "/bin/bash",
"gecos": ""
},
"bin": {
"dir": "/bin",
"gid": 1,
"uid": 1,
"shell": "/bin/false",
"gecos": "bin"
},
"daemon": {
"dir": "/sbin",
"gid": 2,
"uid": 2,
"shell": "/bin/false",
"gecos": "daemon"
},
"adm": {
"dir": "/var/log",
"gid": 4,
"uid": 3,
"shell": "/bin/false",
"gecos": "adm"
},
"lp": {
"dir": "/var/spool/lpd",
"gid": 7,
"uid": 4,
"shell": "/bin/false",
"gecos": "lp"
},
"sync": {
"dir": "/sbin",
"gid": 0,
"uid": 5,
"shell": "/bin/sync",
"gecos": "sync"
},
"shutdown": {
"dir": "/sbin",
"gid": 0,
"uid": 6,
"shell": "/sbin/shutdown",
"gecos": "shutdown"
},
"halt": {
"dir": "/sbin",
"gid": 0,
"uid": 7,
"shell": "/sbin/halt",
"gecos": "halt"
},
"mail": {
"dir": "/",
"gid": 12,
"uid": 8,
"shell": "/bin/false",
"gecos": "mail"
},
"news": {
"dir": "/usr/lib/news",
"gid": 13,
"uid": 9,
"shell": "/bin/false",
"gecos": "news"
},
"uucp": {
"dir": "/var/spool/uucppublic",
"gid": 14,
"uid": 10,
"shell": "/bin/false",
"gecos": "uucp"
},
"operator": {
"dir": "/root",
"gid": 0,
"uid": 11,
"shell": "/bin/bash",
"gecos": "operator"
},
"games": {
"dir": "/usr/games",
"gid": 100,
"uid": 12,
"shell": "/bin/false",
"gecos": "games"
},
"ftp": {
"dir": "/home/ftp",
"gid": 50,
"uid": 14,
"shell": "/bin/false",
"gecos": ""
},
"smmsp": {
"dir": "/var/spool/clientmqueue",
"gid": 25,
"uid": 25,
"shell": "/bin/false",
"gecos": "smmsp"
},
"mysql": {
"dir": "/var/lib/mysql",
"gid": 27,
"uid": 27,
"shell": "/bin/false",
"gecos": "MySQL"
},
"rpc": {
"dir": "/",
"gid": 32,
"uid": 32,
"shell": "/bin/false",
"gecos": "RPC portmap user"
},
"sshd": {
"dir": "/",
"gid": 33,
"uid": 33,
"shell": "/bin/false",
"gecos": "sshd"
},
"gdm": {
"dir": "/var/state/gdm",
"gid": 42,
"uid": 42,
"shell": "/bin/bash",
"gecos": "GDM"
},
"oprofile": {
"dir": "/",
"gid": 51,
"uid": 51,
"shell": "/bin/false",
"gecos": "oprofile"
},
"apache": {
"dir": "/srv/httpd",
"gid": 80,
"uid": 80,
"shell": "/bin/false",
"gecos": "User for Apache"
},
"messagebus": {
"dir": "/var/run/dbus",
"gid": 81,
"uid": 81,
"shell": "/bin/false",
"gecos": "User for D-BUS"
},
"haldaemon": {
"dir": "/var/run/hald",
"gid": 82,
"uid": 82,
"shell": "/bin/false",
"gecos": "User for HAL"
},
"pop": {
"dir": "/",
"gid": 90,
"uid": 90,
"shell": "/bin/false",
"gecos": "POP"
},
"nobody": {
"dir": "/",
"gid": 99,
"uid": 99,
"shell": "/bin/false",
"gecos": "nobody"
}
},
"group": {
"root": {
"gid": 0,
"members": [
"root"
]
},
"bin": {
"gid": 1,
"members": [
"root",
"bin"
]
},
"daemon": {
"gid": 2,
"members": [
"root",
"bin",
"daemon"
]
},
"sys": {
"gid": 3,
"members": [
"root",
"bin",
"adm"
]
},
"adm": {
"gid": 4,
"members": [
"root",
"adm",
"daemon"
]
},
"tty": {
"gid": 5,
"members": [
]
},
"disk": {
"gid": 6,
"members": [
"root",
"adm"
]
},
"lp": {
"gid": 7,
"members": [
"lp"
]
},
"mem": {
"gid": 8,
"members": [
]
},
"kmem": {
"gid": 9,
"members": [
]
},
"wheel": {
"gid": 10,
"members": [
"root"
]
},
"floppy": {
"gid": 11,
"members": [
]
},
"mail": {
"gid": 12,
"members": [
"mail"
]
},
"news": {
"gid": 13,
"members": [
"news"
]
},
"uucp": {
"gid": 14,
"members": [
"uucp"
]
},
"man": {
"gid": 15,
"members": [
]
},
"dialout": {
"gid": 16,
"members": [
"uucp"
]
},
"audio": {
"gid": 17,
"members": [
]
},
"video": {
"gid": 18,
"members": [
]
},
"cdrom": {
"gid": 19,
"members": [
]
},
"games": {
"gid": 20,
"members": [
]
},
"slocate": {
"gid": 21,
"members": [
]
},
"utmp": {
"gid": 22,
"members": [
]
},
"smmsp": {
"gid": 25,
"members": [
"smmsp"
]
},
"tape": {
"gid": 26,
"members": [
]
},
"mysql": {
"gid": 27,
"members": [
]
},
"rpc": {
"gid": 32,
"members": [
]
},
"sshd": {
"gid": 33,
"members": [
"sshd"
]
},
"gdm": {
"gid": 42,
"members": [
]
},
"shadow": {
"gid": 43,
"members": [
]
},
"ftp": {
"gid": 50,
"members": [
]
},
"oprofile": {
"gid": 51,
"members": [
]
},
"apache": {
"gid": 80,
"members": [
]
},
"messagebus": {
"gid": 81,
"members": [
]
},
"haldaemon": {
"gid": 82,
"members": [
]
},
"plugdev": {
"gid": 83,
"members": [
]
},
"power": {
"gid": 84,
"members": [
]
},
"netdev": {
"gid": 86,
"members": [
]
},
"pop": {
"gid": 90,
"members": [
"pop"
]
},
"scanner": {
"gid": 93,
"members": [
]
},
"nobody": {
"gid": 98,
"members": [
"nobody"
]
},
"nogroup": {
"gid": 99,
"members": [
]
},
"users": {
"gid": 100,
"members": [
]
},
"console": {
"gid": 101,
"members": [
]
}
}
},
"current_user": "root",
"keys": {
"ssh": {
"host_dsa_public": "AAAAB3NzaC1kc3MAAACBAMikwb585xoVwE4FINi29oBjfWnDNxYInvbXqhjxbzlTIEX+65IXdXbDM3cs6cDqH3XqSAunk8yztggOd04j1aCy/ucyvJUXtqG32nyQ14FleNUFpqesiMUW5Kqg1UAfgOA+rXfTPZxLWDVix/5JwoVIYneMnxvMvjbcknPnof85AAAAFQC4Gh65Enk8LiJJ4TGWwjHFQcsx+wAAAIEAt6jPhNLxHQ20WXTwoyqxGQtVNi7FjoJVSKSfijymjgEnURvntr7WJtPDc+bZbp23VvjG5+ZJ3q8rzh21wrFcvEPx89kKVPQi0ZtlLjR0/B0L5IGXZkYqoCtRPftiFYHpsxfIcX5Iy6fNOHjNpIuBG7lgBHXeL+jfEeliw/QUGDcAAACAdm02nNh4C8rMedbX+GXDy8R7HHjD8yPBg0TSkNqwIDqbtjYA0jxOCL5Koim7KBGVw334v+LVpXqyNdzW8yuX6cRVywnuE3ntCJ2GDw1mXb1TjAKU35T8KZBjKDBjhOaXTMts720XooBf6fsWcwy0Yohveg3VeLmwSYiAfIbnIDQ=",
"host_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCviEGCC3UzNMcdvCn/nST4Epa++m0hTsosGLFTv7abRLnjNDANo1RWTp+01iHOlbvgYY1iEZDQU1SLGpKwVZ0XpH3vwazwxHWVxUG6Xvo7rGu4/W9EIzkzQWy59liPcBavZAXX/5npz9KyiTsDkXxnQg61LSYFGDjC+awMXIknXrd6KthKR9QhPdSvNukkJKhdaobe6IikaYydbvnahfShi61jrzt5xeuarkJFeWCNwzdvJ+elaTnAbCUoxOdC2yviNdgu9CpYoK6P4zyBsWz4cla4N3e6B9J7J76sSeRbIWQQvZY8IjFdwmxAvHaoSMMHFsAT1GWp0UfQNRz2+a/T"
}
},
"ohai_time": 1357267047.1071382,
"uptime_seconds": 9867,
"uptime": "2 hours 44 minutes 27 seconds",
"idletime_seconds": 4832,
"idletime": "1 hours 20 minutes 32 seconds",
"memory": {
"swap": {
"cached": "1232kB",
"total": "390588kB",
"free": "381764kB"
},
"total": "224176kB",
"free": "167228kB",
"buffers": "1064kB",
"cached": "28680kB",
"active": "27220kB",
"inactive": "14796kB",
"dirty": "208kB",
"writeback": "0kB",
"anon_pages": "11648kB",
"mapped": "6104kB",
"slab": "9920kB",
"slab_reclaimable": "6688kB",
"slab_unreclaim": "3232kB",
"page_tables": "1128kB",
"nfs_unstable": "0kB",
"bounce": "0kB",
"commit_limit": "502676kB",
"committed_as": "84268kB",
"vmalloc_total": "155648kB",
"vmalloc_used": "4364kB",
"vmalloc_chunk": "118796kB"
},
"filesystem": {
"/dev/mmcblk0p3": {
"kb_size": "122662828",
"kb_used": "5283860",
"kb_available": "111148040",
"percent_used": "5%",
"mount": "/",
"fs_type": "ext4",
"mount_options": [
"rw"
],
"uuid": "7b1c1fd9-e98c-4711-a1cb-6d532be6230a"
},
"tmpfs": {
"kb_size": "112088",
"kb_used": "0",
"kb_available": "112088",
"percent_used": "0%",
"mount": "/dev/shm",
"fs_type": "tmpfs",
"mount_options": [
"rw"
]
},
"proc": {
"mount": "/proc",
"fs_type": "proc",
"mount_options": [
"rw"
]
},
"sysfs": {
"mount": "/sys",
"fs_type": "sysfs",
"mount_options": [
"rw"
]
},
"/dev/mmcblk0p1": {
"fs_type": "vfat",
"uuid": "CD95-C444"
},
"/dev/mmcblk0p2": {
"fs_type": "swap",
"uuid": "f1bb40fe-eea1-4dd8-874c-d23c7b3c94da"
},
"rootfs": {
"mount": "/",
"fs_type": "rootfs",
"mount_options": [
"rw"
]
},
"/dev/root": {
"mount": "/",
"fs_type": "ext4",
"mount_options": [
"rw",
"relatime",
"user_xattr",
"barrier=1",
"data=ordered"
]
},
"devtmpfs": {
"mount": "/dev",
"fs_type": "devtmpfs",
"mount_options": [
"rw",
"relatime",
"size=112032k",
"nr_inodes=28008",
"mode=755"
]
},
"devpts": {
"mount": "/dev/pts",
"fs_type": "devpts",
"mount_options": [
"rw",
"relatime",
"gid=5",
"mode=620"
]
},
"cgroup": {
"mount": "/sys/fs/cgroup",
"fs_type": "cgroup",
"mount_options": [
"rw",
"relatime",
"cpu"
]
},
"fusectl": {
"mount": "/sys/fs/fuse/connections",
"fs_type": "fusectl",
"mount_options": [
"rw",
"relatime"
]
}
},
"cpu": {
"total": 0,
"real": 0
},
"block_device": {
"ram0": {
"size": "8192",
"removable": "0"
},
"ram1": {
"size": "8192",
"removable": "0"
},
"ram2": {
"size": "8192",
"removable": "0"
},
"ram3": {
"size": "8192",
"removable": "0"
},
"ram4": {
"size": "8192",
"removable": "0"
},
"ram5": {
"size": "8192",
"removable": "0"
},
"ram6": {
"size": "8192",
"removable": "0"
},
"ram7": {
"size": "8192",
"removable": "0"
},
"ram8": {
"size": "8192",
"removable": "0"
},
"ram9": {
"size": "8192",
"removable": "0"
},
"ram10": {
"size": "8192",
"removable": "0"
},
"ram11": {
"size": "8192",
"removable": "0"
},
"ram12": {
"size": "8192",
"removable": "0"
},
"ram13": {
"size": "8192",
"removable": "0"
},
"ram14": {
"size": "8192",
"removable": "0"
},
"ram15": {
"size": "8192",
"removable": "0"
},
"mmcblk0": {
"size": "250116096",
"removable": "0"
},
"loop0": {
"size": "0",
"removable": "0"
},
"loop1": {
"size": "0",
"removable": "0"
},
"loop2": {
"size": "0",
"removable": "0"
},
"loop3": {
"size": "0",
"removable": "0"
},
"loop4": {
"size": "0",
"removable": "0"
},
"loop5": {
"size": "0",
"removable": "0"
},
"loop6": {
"size": "0",
"removable": "0"
},
"loop7": {
"size": "0",
"removable": "0"
}
}
}
real 0m12.455s
user 0m9.020s
sys 0m1.080s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment