Comments (6)
Same on windows 11.
from ghw.
Hi @fangdichan this is unfortunately not a bug but an implementation gap. We would need contribution to enable the PCI device lookup on windows, because none of active contributors is a windows user.
from ghw.
@fromanirh is there some prevision on when this functionality will be available? Is there a way to run ghw on windows whithout the implementation of pciFillInfo?
from ghw.
@fromanirh is there some prevision on when this functionality will be available? Is there a way to run ghw on windows whithout the implementation of pciFillInfo?
AFAIK noone is working on this, but we'll gladly accept patches (cc @jaypipes ). You can totally use parts of ghw
on windows, for some of them there is already support on windows, and what's supported will be kept.
from ghw.
@fromanirh sorry for the inconvenience, but how to I compile (make) ghw without specific modules, like pciFillInfo?
from ghw.
@fromanirh sorry for the inconvenience, but how to I compile (make) ghw without specific modules, like pciFillInfo?
no problem at all :)
if you import the ghw packages in your project, you can just import the packages you need [1]
If you need to use the ghwc
tool - https://github.com/jaypipes/ghw/tree/main/cmd/ghwc
you can't compile out packages yet, but you can use some of the subcommands, for example cpu
and they should work on windows.
Unfortunately I don't have a list handy of what works on windows, being myself a linux user.[2]
+++
[1]
import (
"github.com/jaypipes/ghw/pkg/cpu"
"github.com/jaypipes/ghw/pkg/option"
)
[2]
$ go run cmd/ghwc/main.go help
__
.-----. | |--. .--.--.--.
| _ | | | | | | |
|___ | |__|__| |________|
|_____|
Discover hardware information.
https://github.com/jaypipes/ghw
Usage:
ghwc [flags]
ghwc [command]
Available Commands:
baseboard Show baseboard information for the host system
bios Show BIOS information for the host system
block Show block storage information for the host system
chassis Show chassis information for the host system
cpu Show CPU information for the host system
gpu Show graphics/GPU information for the host system
help Help about any command
memory Show memory information for the host system
net Show network information for the host system
pci Show information about PCI devices on the host system
product Show product information for the host system
topology Show topology information for the host system
version Display the version of gofile
Flags:
--debug Enable or disable debug mode
-f, --format string Output format.
Choices are 'json','yaml', and 'human'. (default "human")
-h, --help help for ghwc
--pretty When outputting JSON, use indentation
Use "ghwc [command] --help" for more information about a command.
from ghw.
Related Issues (20)
- drop use of blkid on block_linux.go HOT 1
- github.com/StackExchange/wmi is archived, change it HOT 1
- too many open files error when using ghw in gotop client HOT 1
- Panic when collecting host information HOT 5
- Consider updating declared Go version in go.mod HOT 1
- On my windows, sometimes it show error: Cannot change thread mode after it is set HOT 7
- ci: enable gh actions with arm64 HOT 1
- ARM: failed to determine memory area for node: open /sys/devices/system/memory/block_size_bytes: no such file or directory HOT 7
- HDD is classified as SSD on windows 10 HOT 1
- Linux: failed to determine memory area for node: open /sys/devices/system/node/node0/memory_failure/state: no such file or directory HOT 13
- Possible bug in parsing core.ID and core.Index HOT 10
- change library to github.com/yusufpapurcu/wmi HOT 2
- Support querying current resource usage HOT 1
- Move `ghw` from jaypipes to go-hardware Github Organization HOT 10
- FreeBSD/Darwin GPU support HOT 1
- Retrieval of core_id and physical_package_id for CPUs that are offline.
- Expose CPU flags HOT 2
- linux 网卡如果做了bond HOT 1
- Retrieve SCSI_IDENT_SERIAL info on block device HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghw.