Sponsored Content
Operating Systems Linux How to check which NIC Card is used for backups? Post 302464226 by DGPickett on Tuesday 19th of October 2010 02:19:06 PM
Old 10-19-2010
Code:
 netstat(1)                                                       netstat(1)

           -i                Show the state of network interfaces.  Only the
                             interfaces that have been configured with an IP
                             address or the plumb option using the ifconfig
                             command are shown.  The output includes both
                             the primary and logical interfaces.  (See
                             ifconfig(1M)).  The counts for Ipkts and Opkts
                             fields are for IP packets only.  This option is
                             ignored if the -p option is specified.

           -I interface      Show information about the specified interface
                             only.  This option applies to the -g and -i
                             options.



---------- Post updated at 02:19 PM ---------- Previous update was at 02:18 PM ----------

lsof will verify where what process has what socket open to.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

No NIC Card?

Hello Everyone, While trying to configure my network interface card on my system which runs mandrake 7, I have faced many problems. I used commands like netconf, drakconf, ifconfig etc to configure my NIC but of no use. There is no output for dmesg|grep eth. Does that mean that mandrake... (2 Replies)
Discussion started by: cyno
2 Replies

2. HP-UX

configuring nic card

using sam i have tryed to configure the nic, however when i try to do so i get an error saying i couldn't as i was using BIND ? (0 Replies)
Discussion started by: bobstar01
0 Replies

3. Linux

Howto Detect New Nic Card

Hi PPL! I have P-IV processor, with on-board NIC card. I have added one more NIC card for domestic use. My kudzu does not recognise the newly added PCMCIA NIC card. How to go about this one? Suggest PEnguin (0 Replies)
Discussion started by: chakri.penguin
0 Replies

4. Solaris

How to check Virtual NIC card speed on solaris

Hi, We have a 4 port Sun gigaswift NIC card on our sun fire server. If the card is a physical one I know how to check the settings/speed. But since this is a virtual card with 4 ports , I am not sure as how we can check the settings. Details ----------- root:/> ifconfig -a lo0:... (3 Replies)
Discussion started by: pray44u
3 Replies

5. HP-UX

how can I determine which NIC card is virtual NIC Card

how can I determine which NIC card is virtual NIC Card which condition can make a decision Does HP UX have Virtual Network Adapter Concept if ,it has where I can Find if I Install Virutal Network Adapter or which command that i can get it or which software can generate thanks (2 Replies)
Discussion started by: alert0919
2 Replies

6. Solaris

Reg. NIC card

Hi friends i have problem with my home pc, i installed solaris 10 but my lan drivers are not installed, if i want to install drivers manually from where to download and how to install. I have Realtech lan card. when i type ifconfig -a it shows only localhost 127.0.0.0 Lo0 cannot see other than... (5 Replies)
Discussion started by: kurva
5 Replies

7. Solaris

NIC card repetative Failover

I have configure 2 NIC in ipmp group1 .Similarly other 2 NIC in ipmp group2 When I connect both NIC to 2 different switch , which is connect to one L3 switch as trunk. Both the NIC failover to each other continously. Following are the message log. ifmsdb1 in.mpathd: NIC failure detected... (0 Replies)
Discussion started by: abhaymittal003
0 Replies

8. UNIX for Advanced & Expert Users

Determine the ethernet (NIC) card speed.

Hi, Does anyone know how can I determine the maximum capable speed on a network interface card for different OS like HP, Sun, AIX and Linux. I am aware of the tool "ethtool" which can be used for Linux. Are there any handly commands or /proc files where I can get this info depending on the OS.... (3 Replies)
Discussion started by: devtakh
3 Replies

9. HP-UX

NIC card issue

Hi, Someone asked me the below. If the box has multiple NIC cards, try to run a test with interface address specified as shown below $ java utils.MulticastTest -N server100 -A 237.155.155.1 -i <interfaceaddress> How can I now find out if my box has multiple NIC cards and how can I... (5 Replies)
Discussion started by: mohtashims
5 Replies

10. Red Hat

Finding speed of NIC Card

Hi, I would like to know how to find out ACTUAL speed of NIC Card. I have used the command ethtool eth0, it is showing supported modes, but what is acutal speed ? how to find out? (4 Replies)
Discussion started by: manoj.solaris
4 Replies
snmpnetstat(1M) 					  System Administration Commands					   snmpnetstat(1M)

NAME
snmpnetstat - show network status using SNMP SYNOPSIS
/usr/sfw/bin/snmpnetstat [common options] [-a] [-n] agent /usr/sfw/sma_snmp/bin/snmpnetstat [common options] [-iorns] agent /usr/sfw/sma_snmp/bin/snmpnetstat [common options] [-in] [-I interface] agent [interval] /usr/sfw/sma_snmp/bin/snmpnetstat [common options] [-an] [-s] [-P protocol] agent DESCRIPTION
The snmpnetstat command symbolically displays the values of various network-related information retrieved from a remote system using the SNMP protocol. There are a number of output formats, depending on the options for the information presented. Referring to the SYNOPSIS, above: o The first form of the command displays a list of active sockets. o The second form presents the values of other network-related information according to the option selected. o The third form, with an interval specified, continuously displays the information regarding packet traffic on the configured network interfaces. o The fourth form displays statistics about the named protocol. The operand agent identifies a target SNMP agent that is instrumented to monitor the given objects. At its simplest, the agent specifica- tion consists of a host name or an IPv4 address. In this situation, the command attempts communication with the agent using UDP/IPv4 to port 161 of the target host. See snmpcmd(1M) for a full list of the possible formats for agent. The version 1 and version 2c community specifies the community name for the transaction with the remote system. OPTIONS
The following options are supported: common options See snmpcmd(1M) for a list of possible values for common options, as well as their descriptions. -a With the default display, show the state of all sockets. Normally, sockets used by server processes are not shown. -i Show the state of all of the network interfaces. The interface display provides a table of cumulative statistics regarding packets transferred, errors, and collisions. The network addresses of the interface and the maximum transmission unit (MTU) are also displayed. -o Show an abbreviated interface status, giving octets in place of packets. This is useful when observing virtual interfaces (such as Frame Relay circuits) on a router. -I interface Show information only about this interface; used with an interval as described below. -n Show network addresses as numbers. (Normally, snmpnetstat interprets addresses and attempts to display them symbolically). This option can be used with any of the display formats. -P protocol Show statistics about protocol, which is either a well-known name for a protocol or an alias for it. Some protocol names and aliases are listed in the file /etc/protocols or in a naming service. A null response typically means that there are no interesting numbers to report. The program will complain if protocol is unknown or if there is no statistics routine for it. -s Show per-protocol statistics. When used with the -r option, show routing statistics instead. -r Show the routing tables. When -s is also present, show per-protocol routing statistics instead of the routing tables. interval When snmpnetstat is invoked with an interval argument, it displays a running count of statistics related to network interfaces. inter- val is the number of seconds between reporting of statistics. snmpnetstat supports the following types of display: active sockets display (default) The default display, for active sockets, shows the local and remote addresses, protocol, and the internal state of the protocol. Address formats are of the form host.port or network.port if a socket's address specifies a network but no specific host address. When known, the host and network addresses are displayed symbolically according to /etc/hosts and /etc/networks, respectively. If a symbolic name for an address is unknown, or if the -n option is specified, the address is printed numerically, according to the address family. For more information regarding the Internet "dot format," refer to inet(3SOCKET). Unspecified, or wildcard, addresses and ports appear as "*". interface display The interface display provides a table of cumulative statistics regarding packets transferred, errors, and collisions. The network addresses of the interface and the maximum transmission unit (MTU) are also displayed. routing table display The routing table display indicates the available routes and their status. Each route consists of a destination host or network and a gateway to use in forwarding packets. The flags field shows the state of the route (U if the route is up), whether the route is to a gateway (G), whether the route was created dynamically by a redirect (D), and whether the route has been modified by a redirect (M). Direct routes are created for each interface attached to the local host. The gateway field for such entries shows the address of the outgoing interface. The interface entry indicates the network interface used for the route. interface display with an interval When snmpnetstat is invoked with an interval argument, it displays a running count of statistics related to network interfaces. This display consists of a column for the primary interface and a column summarizing information for all interfaces. The primary interface can be replaced with another interface with the -I option. The first line of each screen of information contains a summary since the system was last rebooted. Subsequent lines of output show values accumulated over the preceding interval. active sockets display for a single protocol When a protocol is specified with the -P option, the information displayed is similar to that in the default display for active sock- ets, except the display is limited to the given protocol. Note that figures snmpnetstat reports in the Ipkts column (part of the interface display) might differ from figures in the Ipkts column in netstat(1M). snmpnetstat displays a total of unicast, multicast, and broadcast packets. netstat omits broadcast packets from its total. EXAMPLES
Example 1: Displaying Active Sockets The following is an example of snmpnetstat's default display, which is to display active sockets. % snmpnetstat -v 2c -c public -a testhost Active Internet (tcp) Connections (including servers) Proto Local Address Foreign Address (state) tcp *.echo *.* LISTEN tcp *.discard *.* LISTEN tcp *.daytime *.* LISTEN tcp *.chargen *.* LISTEN tcp *.ftp *.* LISTEN tcp *.telnet *.* LISTEN tcp *.smtp *.* LISTEN Active Internet (udp) Connections Proto Local Address udp *.echo udp *.discard udp *.daytime udp *.chargen udp *.time % snmpnetstat -v 2c -c public -i testhost Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Queue eri0 1500 10.6.9/24 testhost 170548881 245601 687976 0 0 lo0 8232 127 localhost 7530982 0 7530982 0 0 Example 2: Displaying Statistics for a Specific Protocol The following example shows how snmpnetstat displays statistics for a specific protocol. % snmpnetstat -v 2c -c public -P tcp testhost Active Internet (tcp) Connections Proto Local Address Foreign Address (state) tcp *.echo *.* LISTEN tcp *.discard *.* LISTEN tcp *.daytime *.* LISTEN tcp *.chargen *.* LISTEN tcp *.ftp *.* LISTEN tcp *.telnet *.* LISTEN tcp *.smtp *.* LISTEN EXIT STATUS
0 Successful completion. 1 A usage syntax error. A usage message is displayed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsmcmd | +-----------------------------+-----------------------------+ |Interface Stability |External | +-----------------------------+-----------------------------+ SEE ALSO
iostat(1M), netstat(1M), snmpcmd(1M), vmstat(1M), attributes(5) SunOS 5.10 20 Jan 2004 snmpnetstat(1M)
All times are GMT -4. The time now is 06:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy