Grabbing IP and zonename from multiline 'ifconfig' output
Hi There,
I have a Solaris server that has a bunch of zones configured and I am trying to write a script that will take all interfaces other than the loopback ones (e.g. lo0:3 etc) and present them so that I can easily determine the zone that owns the IP
So in the case of the following ifconfg output
I would get something like
Im a little unsure how I would get it to treat each individual block of ifconfig output as a seperate entity as clearly the virtual IP's for the zones are laid out differently by ifconfig than the non zone/main IP's (eg. nxge3) .. youll notice that the ip address line is positioned differently.
I have to capture all valid IPs in the report whether they are linked to a zone or not ..
Any advice or guidance on what would be a good starting point for me would be greatly appreciated, as im not really sure how to tackle this one
I asked a similar question earlier and got a very good answer but a new doubt came up. This is a few lines of a '/sbin/ifconfig' command on my PC:
RX packets:3781025 errors:0 dropped:0 overruns:0 frame:0
TX packets:1941909 errors:0 dropped:0 overruns:0 carrier:0
Does the RX and TX packets... (1 Reply)
I'm trying to install the recommended patch cluster on a x86 Solaris 10 box.
I get this error:
ERROR: /sbin/zonename cannot be found. install_cluster for 10_x86 patch cluster not applied. Exiting.
I tried touching the file and it gave a different error of: expected argument..
anyone... (1 Reply)
I am executing a stored proc and sending the results in a log file. I then want to grab one result from the output parameters (bolded below, 2) so that I can store it in a variable which will then be called in another script. There are more details that get printed in the beginning of the log file,... (3 Replies)
Hi -
Trying to understand a few things from an ifconfig -a output - can't seem to find info anywhere on the net.
Specifically - looking to understand the following:
Flags=8863
Smart
Running (is this the same as UP)
Simplex
inet6
supported media: autoselect - does that imply the... (1 Reply)
Hi,
I wish to format the output of a grep command in such a way that sed will be able to handle the newline characters held in the output.
Since sed does not allow newlines to be contained in a replacement pattern, that means adding a backslash '\' character to the end of each line from... (8 Replies)
Hi all,
Very new to shell scripting so appreciate some help!
There is a process count that I need to monitor, I have the AIX command that gives this value and I've cleaned it up with grep/awk so it only spits out the value I'm interested in:
echo "psc -i 10050 -s RELOAD_SERVICE" | tmadmin... (14 Replies)
I'm trying to gather information on the interfaces on a large number of servers.
If I run ifconfig I will get: eth0 Link encap:Ethernet HWaddr 00:50:56:A2:27:C1
inet addr:10.145.xxx.xxx Bcast:10.152.45.255 Mask:255.255.254.0
-----
eth1 Link... (2 Replies)
Hi,
I have created a bonding bond1 interface with 6 Eth , mode=4. Recently i have changed my old ipv6 to new one and tried to restart as well as reload network service. Post which i can see old as well as changed ipv6 in ifconfig command output. Below are few files and command output for your... (1 Reply)
Dear all,
I have below "ldapsearch" output
$ ldapsearch -D "CN=SVC-ACCOUNT,OU=SVC,OU=VDSI,OU=Non-Human,DC=Org,DC=com" -w secretword -H ldaps://org.com:636 -b DC=Org,DC=com -s sub uid=v00000 "(filter)" "displayName" "uid" "street"
# extended LDIF
#
# LDAPv3
# base <DC=Org,DC=com> with... (7 Replies)
Discussion started by: baluchen
7 Replies
LEARN ABOUT FREEBSD
if_ntb
NTB(4) BSD Kernel Interfaces Manual NTB(4)NAME
ntb, ntb_hw, if_ntb -- Intel(R) Non-Transparent Bridge driver
SYNOPSIS
To compile this driver into your kernel, place the following lines in your kernel configuration file:
device ntb_hw
device if_ntb
Or, to load the driver as a module at boot, place the following line in loader.conf(5):
if_ntb_load="YES"
DESCRIPTION
The ntb driver provides support for the Non-Transparent Bridge (NTB) in the Intel S1200, Xeon E3 and Xeon E5 processor families.
The NTB allows you to connect two computer systems using a PCI-e link if they have the correct equipment and connectors.
CONFIGURATION
The NTB memory windows need to be configured by the BIOS. If your BIOS allows you to set their size, you should set the size of both memory
windows to 1 MiB. This needs to be done on both systems.
Each system needs to have a different IP address assigned. The MAC address is randomly generated. Also for maximum performance, the MTU
should be set to 16 kiB. This can be done by adding the line below to rc.conf(5):
ifconfig_ntb0="inet 192.168.1.10 netmask 255.255.255.0 mtu 16384"
And on the second system :
ifconfig_ntb0="inet 192.168.1.11 netmask 255.255.255.0 mtu 16384"
If you are using the UDP protocol, you may want to increase the net.inet.udp.maxdgram sysctl(8) variable.
SEE ALSO rc.conf(5), sysctl(8)AUTHORS
The ntb driver was developed by Intel and originally written by Carl Delsey <carl@FreeBSD.org>.
BUGS
If the driver is unloaded, it cannot be reloaded without a system reboot.
The network support is limited. It isn't fully configurable yet. It also isn't integrated into netgraph(4) or bpf(4).
NTB to Root Port mode is not yet supported.
There is no way to protect your system from malicious behavior on the other system once the link is brought up. Anyone with root or kernel
access on the other system can read or write to any location on your system. In other words, only connect two systems that completely trust
each other.
BSD Apr 11, 2013 BSD