Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

if.sh on newer SmartOS kernel returns empty data #18

Open
sax opened this issue Nov 19, 2013 · 2 comments
Open

if.sh on newer SmartOS kernel returns empty data #18

sax opened this issue Nov 19, 2013 · 2 comments

Comments

@sax
Copy link
Contributor

sax commented Nov 19, 2013

In a non-global SmartOS zone, the if.sh check returns no data.

Assuming an interface net0, it appears to run the following command:

> /usr/bin/kstat -p -m z14_net0

The working command to collect this data (on platform image joyent_20131105T084235Z) would be:

> kstat -p -n net0
@sax
Copy link
Contributor Author

sax commented Nov 20, 2013

@neophenix Just wanted to make sure you saw this. I hesitate to fix this myself, as I don't know what other variations there are. Don't want to accidentally break things for OmniOS, or write too-complicated code if there are alternatives.

@neophenix
Copy link
Contributor

It looks like the issue is that the latest SmartOS removed all but the physical layer stats, which isn't what if.sh returns on other platforms, so we might just need a new script here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants