I'd tend to use grep on an array rather than a string, for a string I'd go for something like the following with a straight regex. (Note: regex used works for my flavour of netstat and may need amending to work for you, (netstat 1.42 (2001-04-15) from net-tools 1.6)
Last edited by Skrynesaver; 05-19-2011 at 07:22 AM..
Reason: Left in final quote from cmndline development
This User Gave Thanks to Skrynesaver For This Post:
Hello Mentors!
I am a new here in the furom, i hope somebody can understand my problem.
Basically we have an application here called unigraphics and being installed per station and the setup is look like this.
1. installed unigraphics UGNX3 version on every station
2. some are installed in... (1 Reply)
Q1: can anyone tell me how cfgadm keeps track of the device even if the device is disconnected ,
when we disconnect a device using cfgadm
cfgadm -ys disconnect <ap_id>
then the device disappears from the lshal o/p. HAL uses libdevinfo for the device list. if the device is not there in the... (2 Replies)
Hi,
I need to create a script which checks the availability of a particular service on a particular Port on HP-Unix. Is there any command in unix wherein we can check if any port is accepting the connections now.
Thanks,
Vihang. (5 Replies)
Hi Experts,
I am checking how to get day in Perl.
If it is “Monday” I need to process…below is the pseudo code.
Can you please prove the code for below condition.
if (today=="Monday" )
{
while (current_time LESS THAN 9:01 AM)
... (1 Reply)
I have RHEL 5.8 in our production environment. We are using SSL, my query is how to find the port used for SSL. In /etc/services, it shows 443 but when I give
netstat -tulpn | grep 443
Or
netstat -tulp | grep https
I do not get any output.
I hope, my question is clear of how to find... (4 Replies)
I have my firewall process running
# ps -ef | grep firewall
root 21169 1 0 08:50 ? 00:00:00 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
I wish to know what ip : port number it is using. Can you please tell me how can i find out ?
I tried the below command... (4 Replies)
Discussion started by: mohtashims
4 Replies
LEARN ABOUT FREEBSD
setfib
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