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
arp(8)							      System Manager's Manual							    arp(8)

NAME
arp - Displays and controls Address Resolution Protocol (ARP) tables SYNOPSIS
/usr/sbin/arp [-u] [-n] hostname arp -a [-u] [-n] [-i] [system] arp -d hostname arp -f filename arp -g hostname arp -s [-u] hostname hardware_addr [temp] [pub] [trail] FLAGS
Displays all of the current ARP entries. Deletes the entry for hostname if the user issuing the command has superuser authority. Reads entries from filename and adds those entries to the ARP tables. Use of this flag requires superuser privilege. Entries in the file have the following format: hostname hardware_addr [temp] [pub] [trail] Fields in this format are as follows: Specifies the remote host identified by the entry. Specifies the hardware address of the remote host. The address is given as 6 hexadecimal bytes separated by colons. Specifies that this ARP table entry is temporary. When this argument is not used, the table entry is permanent. Indicates that the table entry will be published and that the current system will act as an ARP server, responding to requests for hostname even though the host address is not its own. Indicates that the trailer encapsulation may be sent to this host. Sends a gratuitous ARP packet. The hostname can be a local host name, alias, or IP address. Displays the interface with which the ARP entry is associated. Displays numeric IP addresses and hardware addresses only. When this flag is not specified, arp displays hostnames, numeric IP addresses, and hardware addresses. Creates a single ARP entry for hostname. Use of this flag requires superuser privilege. The arguments are explained in the discussion of the -f flag. Displays the MAC address in noncanonical form with address bytes reversed and separated by a colon character (:). By default, all addresses are displayed in canonical form with address bytes separated by the hyphen character (-). When used with the -s flag, this indicates that the hardware_addr is in noncanonical form. DESCRIPTION
The arp command displays or modifies the current ARP entry for the host specified by hostname. The host may be specified by name or num- ber, using Internet dot notation. With no flags, the program displays the current ARP entry for hostname. The ARP tables can be displayed by any user, but only the superuser can modify them. EXAMPLES
To display the ARP address-mapping tables for the local host, enter: arp -a alpha1.dec.com (16.181.20.2) at 08-00-2b-2c-f5-31 alpha2.dec.com (16.100.21.20) at 08-00-2b-3c-2d-fd To display the ARP address-map- ping tables for the local host and the interface, enter: arp -a -i jupiter (192.45.20.2) at 08-00-2b-1a-f8-23 (tu0) sigma (204.126.98.16) at 08-00-2b-5f-1d-33 (tu1) To add a single entry for the remote host laszlo to the ARP mapping tables temporarily, enter: arp -s laszlo 08:00:2b:0f:44:23 temp The address is considered canonical even though the bytes are separated by colons. For input, the arp command does not use the colon (:) and hyphen (-) characters to indicate whether the address is canonical or noncanonical. Note that you must have superuser authority to execute this command. To add a single entry for the remote host laszlo to the ARP mapping tables temporarily, enter: arp -u -s laszlo 10:00:d4:f0:22:c4 temp The -u flag indicates the address is noncanonical. Note that you must have superuser authority to execute this command. To add mul- tiple entries to the ARP mapping tables from the file newentries, enter: arp -f newentries Note that you must have superuser authority to execute this command. FILES
Specifies the command path. RELATED INFORMATION
Commands: netstat(1), ifconfig(8) Protocols: arp(7) Specifications: RFC 826 delim off arp(8)
All times are GMT -4. The time now is 04:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy