netstat not working


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers netstat not working
# 1  
Old 11-16-2006
netstat not working

Hello,

One of the solaris machine in our network is giving an error when the netstat command is executed.

soloman:/home/db2admin->netstat
ip open: Permission denied
can't open mib stream: Bad file number


But it works with root. I couldnt' get any useful info during my search in google.

Here's wht the uname say

soloman:/home/db2admin->uname -a
SunOS soloman 5.8 Generic_117350-30 sun4u sparc SUNW,Ultra-80


Can some one help me out?
# 2  
Old 11-16-2006
As the message says, "Permission denied". Check that netstat perms are correct, and make sure it's, at least, 555. Though, in one of my Sun boxes (Sol9) it's 2555... Perhaps you need to set either suid or sgid...

Regards.
# 3  
Old 11-16-2006
I did checked the permissions.. it looks okay to me...

soloman:/etc/init.d->l /usr/bin/netstat
-r-xr-sr-x 1 root sys 55180 Jan 7 2004 /usr/bin/netstat
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

netstat

When running netstat -i from the Command Terminal, It returns with 21 different connections.. The addresses all look like this: ::1 fe80:1::1 10:dd:b1:a5:c4:ba with Network names like Linke#2 fe80::8e2d How can I delve deeper into this to clarify what is going on with my network?... (0 Replies)
Discussion started by: dwfiedler
0 Replies

2. Red Hat

netstat

Hi Can any body tell me about TIME_WAIT status meaning in the following command output. # netstat -anp|grep 5000 tcp 0 0 127.0.0.1:50006 0.0.0.0:* LISTEN 5058/ccsd tcp 0 0 0.0.0.0:50008 0.0.0.0:* ... (3 Replies)
Discussion started by: mastansaheb
3 Replies

3. UNIX for Dummies Questions & Answers

Need help with a netstat command

Do I have this command correct to show all current connections/sessions my Solaris box has? It does not seem to do anything. netstat -an | grep EST (6 Replies)
Discussion started by: SIFT3R
6 Replies

4. UNIX for Advanced & Expert Users

Help with netstat

Hi, I want to list the time for how long a secure connections last to my server/blade. i am using netstat command to get the same, but not sure how to get the time for how long connections is being ESTABLISHED. netstat -na | grep 'ESTABLISHED' | grep :443 |awk '{print $4}' | cut -d: -f1 |... (1 Reply)
Discussion started by: Siddheshk
1 Replies

5. UNIX for Dummies Questions & Answers

Netstat(8) on CentOS?

Hi, Im currently using CentOS and have a few questions on the command Netstat(8). a.So what command do I use to list all active and available sockets? I also want to include UNIX domain sockets. (I have read the netstat man page but just really confused) b. What states may a TCP... (1 Reply)
Discussion started by: coolcalin812
1 Replies

6. Solaris

netstat -- what am i looking at?

Greetings to all, Here is a line of output from my netstat command cbp031.904 wdcprodhome.nfsd 98304 0 49640 0 ESTABLISHED The only thing i recognize is the unix machine "cbp031" but what is .904 and all the other data telling me? Thanks in advance. (3 Replies)
Discussion started by: Harleyrci
3 Replies

7. IP Networking

netstat output

I can't tell what the output of the netstat command means. Is there anywhere that has this information? I tried the man pages, but they weren't helpful. (3 Replies)
Discussion started by: Ultrix
3 Replies

8. IP Networking

netstat

Hi what is the command to see the process name/application name along with the port number, connection status ... netstat is not giving process/application name Is there any way to know which application is holding which port? Thanks in advance (3 Replies)
Discussion started by: axes
3 Replies

9. IP Networking

TIME_WAIT in netstat

Why would I get TIME_WAIT when i netstat a port?? What would be some scenarios of this situation?? (1 Reply)
Discussion started by: eloquent99
1 Replies

10. IP Networking

Netstat

Giving netstat command on the prompt gives commands such as localhost.43592 localhost.35237 32768 0 32768 0 TIME_WAIT localhost.43594 localhost.43595 32768 0 32768 0 TIME_WAIT localhost.43598 localhost.35237 32768 0 32768 0 TIME_WAIT... (6 Replies)
Discussion started by: DPAI
6 Replies
Login or Register to Ask a Question