Simple Info About How To Check Interface Status In Solaris
Another option is use the ip command along with grep command / egrep command:
How to check interface status in solaris. On the system with the interfaces to be configured, assume the primary administrator role or become superuser. Check the status of the zones that we've created: 3) check the mac address of the nic.
Run the below commands to check the active network interface and the associated mac address. For example, when you run. To display network status information, such as statistics about the state of network interfaces, routing tables, and various protocols, use the netstat.
One, eth0 , is wired, and another, wlan0, is wireless. Networkctl is a command line utility for viewing a summary of network devices and their connection status. Checking link status with kstat (solaris 8 and 9) kstat is another useful command to check the link status.
There's support libraries you can use. How to obtain interface status. Eth0:.*state up' || _do_your_thing so here we grep the ubiquitous ip tool's stdout for a line which contains both our interface of interest and the phrase state up ( thanks to.
Press enter to run the command. Check /sys/class/net/eth0/operstate and other files in this directory. Ip a s eno1 | grep state.
Open a netlink socket and query the interface status. To verify the specific network. As far as i know this is specific to linux 2.6+, but it provides a clean interface to the kernel driver.