Sponsored Content
Operating Systems Solaris Pla help - urgent-netstat error--- cant open mib stream Post 302252690 by s4g3 on Thursday 30th of October 2008 06:10:49 AM
Old 10-30-2008
Not sure why netstat would do that as it is based on kstat so that normal user can use it. However it uses arp internally so check if the permissions of `which arp` got screwed up. On my sparc system it is
xxxx% ls -l /usr/sbin/arp
-r-xr-xr-x 1 root bin 10252 Aug 16 2007 /usr/sbin/arp
xxxx% ls -l `which netstat`
-r-xr-xr-x 1 root bin 83456 Aug 16 2007 /usr/bin/netstat

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

netstat error

Hi all, recently on my Sun Solaris 8 server this error message appeared:$ netstat -i > ip open: Permission denied > can't open mib stream: Bad file number > The server was rebooted recently and this error has only popped up since then. Any ideas? (2 Replies)
Discussion started by: gerwhelan
2 Replies

2. Programming

open file stream problem

I have faced a problem that I use 2 file streams in a function and try to fopen() both files. Then I can't get the file descriptor. But if I just use 1 file stream and 1 fopen(), then i can get the file descriptor. Does anybody know why this happens? Thanks in advance. ... (2 Replies)
Discussion started by: ivancheung
2 Replies

3. UNIX for Dummies Questions & Answers

From Where Can I download MIB

Hi, From Where I can download MIB for Linux 7.2. Please help. Regards, Sumit Roy (4 Replies)
Discussion started by: sumitroy
4 Replies

4. HP-UX

HP O/S MIB file?

HI all, please let me know where i can find the HP OS system MIB file.? Thanks in advance. Rgds, Jagadeesh. (2 Replies)
Discussion started by: bjagadeesh
2 Replies

5. AIX

SAP and MIB

Hi there all.. I got SAP running on AIX systems. Now I got SNMP running and it is collecting info. But I want the SAP MIB to be running so I can also retrieve SAP info. How can I neable it on AIX? When I do a MIB walk on SAP it isnt showing anything. Thanx in advance! :) (1 Reply)
Discussion started by: draco
1 Replies

6. UNIX for Dummies Questions & Answers

netstat error(getnameinfo failed)

# netstat -a > /test/a getnameinfo failed getnameinfo failed getnameinfo failed getnameinfo failed getnameinfo failed command is working fine (as i get output in file /test/a) # dig -x 10.xxx.xxx.xxx ; <<>> DiG 9.3.3rc2 <<>> -x 10.203.xxx.xxx ;; global... (4 Replies)
Discussion started by: crackthehit007
4 Replies

7. Programming

Error in handling stream objects

Hi, I am trying to write a C++ code to write a file with the similar data between two input files.Input files will be command line arguments.Following is the code ,I am able to open & create files but getting errors during comparison & there is no explicit error message I am getting please let me... (1 Reply)
Discussion started by: forstudy3
1 Replies

8. Shell Programming and Scripting

[Video stream] network stream recording with mplayer

Hi I used this command: mplayer http://host/axis-cgi/mjpg/video.cgi -user root -passwd root \ -cache 1024 -fps 25.0 -nosound -vc ffh264 \ -demuxer 3 -dumpstream -dumpfile output.avi It's ok but... Video Playing is very fast! Why? Is it a synch problem? What parameter I have to use for... (1 Reply)
Discussion started by: takeo.kikuta
1 Replies

9. Shell Programming and Scripting

open 2 files and compare values script - urgent

Hi gurus I have two csv files that are outputs. The file contains data similar to s.no,number1,number2,date1 -------------------------------- 1, a123,482.29,11/28/07 13:00 2,a124,602.7,9/24/07 14:00 3,a125,266.93,10/9/07 16.48 4,a126,785.15,11/14/07 16:08 <file 2> s.no name... (2 Replies)
Discussion started by: inkyponky
2 Replies

10. UNIX for Advanced & Expert Users

MIB issue

can someone please help me out with this. why do i keep getting a "No Such Instance..." error message? The MIB file is in the proper directory and with the proper permissions. What could be wrong? I restarted snmpd already. Thank you. snmpwalk -v2c -c AH$%FJY ferenty01.blah.net... (0 Replies)
Discussion started by: SkySmart
0 Replies
getusershell(3C)					   Standard C Library Functions 					  getusershell(3C)

NAME
getusershell, setusershell, endusershell - get legal user shells SYNOPSIS
#include <unistd.h> char *getusershell(void); void setusershell(void); void endusershell(void); DESCRIPTION
The getusershell() function returns a pointer to a legal user shell as defined by the system manager in the file /etc/shells. If /etc/shells does not exist, the following locations of the standard system shells are used in its place: /bin/bash /bin/csh /bin/jsh /bin/ksh /bin/pfcsh /bin/pfksh /bin/pfsh /bin/sh /bin/tcsh /bin/zsh /sbin/jsh /sbin/pfsh /sbin/sh /usr/bin/bash /usr/bin/csh /usr/bin/jsh /usr/bin/ksh /usr/bin/pfcsh /usr/bin/pfksh /usr/bin/pfsh /usr/bin/sh /usr/bin/tcsh /usr/bin/zsh /usr/xpg4/bin/sh The getusershell() function opens the file /etc/shells, if it exists, and returns the next entry in the list of shells. The setusershell() function rewinds the file or the list. The endusershell() function closes the file, frees any memory used by getusershell() and setusershell(), and rewinds the file /etc/shells. RETURN VALUES
The getusershell() function returns a null pointer on EOF. BUGS
All information is contained in memory that may be freed with a call to endusershell(), so it must be copied if it is to be saved. SunOS 5.10 30 Aug 2004 getusershell(3C)
All times are GMT -4. The time now is 09:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy