Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

setfib(1) [freebsd man page]

SETFIB(1)						    BSD General Commands Manual 						 SETFIB(1)

NAME
setfib -- execute a utility with an altered default network view SYNOPSIS
setfib [-F] fib utility [argument ...] DESCRIPTION
The setfib utility runs another utility with a different routing table. The table number fib will be used by default for all sockets started by this process or descendants. ENVIRONMENT
The PATH environment variable is used to locate the requested utility if the name contains no '/' characters. EXIT STATUS
If utility is invoked, the exit status of setfib is the exit status of utility. An exit status of 126 indicates utility was found, but could not be executed. An exit status of 127 indicates utility could not be found. EXAMPLES
Run netstat(1) to view the second routing table. setfib -F 1 netstat -rn or setfib 1 netstat -rn or setfib -1 netstat -rn SEE ALSO
setfib(2), setsockopt(2) STANDARDS
The setfib utility is a FreeBSD specific extension. However, many UNIX-like systems have an equivalent function. HISTORY
The setfib utility appeared in FreeBSD 7.1. BSD
October 20, 2008 BSD

Check Out this Related Man Page

ENV(1)							    BSD General Commands Manual 						    ENV(1)

NAME
env -- set and print environment SYNOPSIS
env [-i] [name=value ...] [utility [argument ...]] DESCRIPTION
env executes utility after modifying the environment as specified on the command line. The option name=value specifies an environmental variable, name, with a value of value. The option '-i' causes env to completely ignore the environment it inherits. If no utility is specified, env prints out the names and values of the variables in the environment, with one name=value pair per line. DIAGNOSTICS
If the utility is invoked, the exit status of env shall be the exit status of utility; otherwise, the env utility exits with one of the fol- lowing values: 0 The env utility completed successfully 1-125 An error occurred in the env utility. 126 The utility specified by utility was found, but could not be invoked. 127 The utility specified by utility could not be found. COMPATIBILITY
The historic - option has been deprecated but is still supported in this implementation. SEE ALSO
execvp(3), environ(7) STANDARDS
The env utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). BUGS
env doesn't handle commands with equal (``='') signs in their names, for obvious reasons. BSD
August 27, 1993 BSD
Man Page

15 More Discussions You Might Find Interesting

1. IP Networking

routing table (netstat -rn)

Is ther a way to retain say, a default gateway entered in a routing table after a reboot? I end up always having to re-enter my default gateway after I reboot my system. Thanks! (4 Replies)
Discussion started by: thundrrod
4 Replies

2. UNIX for Dummies Questions & Answers

Sed utility

Hi, Can you explain little bit with example regarding SED utility in UNIX? How iit is different then grep command? Thanks in advance. Malay (4 Replies)
Discussion started by: malaymaru
4 Replies

3. UNIX for Dummies Questions & Answers

Character position

Hi , I am required to view the fixed postion file very often . I am looking for the utility like this if the file has a one or multile line abcdefghijklmnopqr Utility should make my file look like this 12345678910111213141516-------------------------- abcdefghijk l m n o p q r ... (4 Replies)
Discussion started by: akrathi
4 Replies

4. UNIX for Dummies Questions & Answers

netstat command between clustered hosts

I have 2 clustered hosts, is it possible for me to issue a netstat command against 1 host from the other ? (4 Replies)
Discussion started by: murphyboy
4 Replies

5. Shell Programming and Scripting

Easy way to get local IP address

I needed to get a machine's local IP address when not root (so no ifconfig). Eventually, I arrived at this convoluted solution that grabs the unique local IP info from netstat... netstat -n -t | awk '{print $4}' | grep -o "*\.*\.*\.*" |\ grep -v "127.0.0.1" | sort -u ...however I... (5 Replies)
Discussion started by: simonb
5 Replies

6. IP Networking

Netstat issue

Hi all When I run netstat, it just hangs there and after a while comes back. I cannot figure out why as the server is functioninng well. Thx J (5 Replies)
Discussion started by: jhansrod
5 Replies

7. Red Hat

routing table question

I have below routing table in linux kernel 2.6.9 # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.155.24.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U ... (5 Replies)
Discussion started by: chuikingman
5 Replies

8. Solaris

Default route is configured, but seem to not work

Hiya, I got the default gateway set in /etc/defaultrouter file, however "netstat -nr" doesn't show anything like "default" in the routing table. As far as I know "netstat" on Solaris 10 u7 should show something like : Routing Table: IPv4 Destination Gateway Flags Ref ... (8 Replies)
Discussion started by: TomSu
8 Replies

9. Linux

Netstat -i notification

I'm a bit new to scripting, but have been working on some scripts. I create a script to monitor the network interface for netstat -i, but not sure if I am getting what I need...I'd like to grab the entire column for RX-DRP and inform me of which interface is giving the RX-DRP errors...here is a... (5 Replies)
Discussion started by: sohk220
5 Replies

10. Shell Programming and Scripting

[Solved] Script is ignoring  

Experts, I am finding the split up of the Servers which uses the netstat on a specific port. netstat -a | grep -w 9071 |grep ESTABLISHED | awk '{print $5}' | cut -d'.' -f1 | sort -n | uniq -c 1 ser7b 1 ser7c 2 ser7d 2 ser7e 1 ser7f 1 ser7h 1 ser7i 1 ser8bI am... (5 Replies)
Discussion started by: sathyaonnuix
5 Replies

11. Shell Programming and Scripting

netstat command to be executed for list of hosts

Hi All, Need to run the netstat -i command on the list of hosts and check if "Ierrs" and "Oerrs" has value greaterthan 0. for Ex: below output, driver bge1 and bge3 has Oerrs and Ierrs value > 0, So, script should report saying "Netstat status for $host, driver bge1 has Oerrs = 20, Failed"... (5 Replies)
Discussion started by: Optimus81
5 Replies

12. Shell Programming and Scripting

Help with netstat traffic server command

Help required for creating a unix shell script using netstat command for retrieving total traffic in Kbytes with the source and destination address. (4 Replies)
Discussion started by: Samee
4 Replies

13. Shell Programming and Scripting

Count no of netstat states

netstat | awk '/server/ {for(i=1;i<2;i++) {getline;print}' Output: ESTABLISHED ESTABLISHED ESTABLISHED ESTABLISHED ESTABLISHED TIME_WAIT TIME_WAIT From the above command I'm getting all the states. I want to count the states and write to a file, like "Count of ESTABLISHED... (6 Replies)
Discussion started by: Roozo
6 Replies

14. HP-UX

PID and program name from netstat.

Hello All, I am using netstat on HP-UX to retrieve the established network connections on my host. Can anyone please confirm how can I retrieve the PID and program name as well for these connections? These are available from the netstat version on Windows but I don't see PID and program name to... (10 Replies)
Discussion started by: Happy83
10 Replies

15. Solaris

Setfib on Solaris?

Is there on solaris 11 something like setfib command of FreeBSD ? Thanks (6 Replies)
Discussion started by: antolap
6 Replies