- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- question about netstat (ore traceroute)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2006 08:56 PM
08-28-2006 08:56 PM
question about netstat (ore traceroute)
Now We have a tool (I2) that is doing the same ting only the tool does not have the -i option :(
My question is how can I change the sequence
of netstat -in?
so lan901 ore lan 1 in on top...
[]# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan3 1500 192.168.144.0 192.168.144.199 170 0 0 0 0
lan0 1500 130.139.2.0 130.139.2.209 18290 0 0 0 0
lo0 4136 127.0.0.0 127.0.0.1 3046274 0 3046274 0 0
lan900 1500 130.139.1.0 130.139.1.48 1119 0 10 0 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2006 09:42 PM
08-28-2006 09:42 PM
Re: question about netstat (ore traceroute)
netstat -inI lan1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2006 09:45 PM
08-28-2006 09:45 PM
Re: question about netstat (ore traceroute)
sequence stays the same...
logging from my "test" system:
[nlscux80:/]# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan3 1500 192.168.144.0 192.168.144.199 5807 0 3 0 0
lan0 1500 130.139.2.0 130.139.2.209 655484 0 12 0 0
lo0 4136 127.0.0.0 127.0.0.1 3052162 0 3052162 0 0
lan900 1500 130.139.1.0 130.139.1.48 37883 0 318 0 0
[nlscux80:/]# netstat -inI lan1
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
[nlscux80:/]# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan3 1500 192.168.144.0 192.168.144.199 5831 0 3 0 0
lan0 1500 130.139.2.0 130.139.2.209 657654 0 12 0 0
lo0 4136 127.0.0.0 127.0.0.1 3052198 0 3052198 0 0
lan900 1500 130.139.1.0 130.139.1.48 38037 0 319 0 0
[nlscux80:/]# netstat -inI lan0
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 130.139.2.0 130.139.2.209 658809 0 12 0 0
[nlscux80:/]# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan3 1500 192.168.144.0 192.168.144.199 5846 0 3 0 0
lan0 1500 130.139.2.0 130.139.2.209 659714 0 12 0 0
lo0 4136 127.0.0.0 127.0.0.1 3052198 0 3052198 0 0
lan900 1500 130.139.1.0 130.139.1.48 38171 0 319 0 0
[nlscux80:/]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2006 11:38 PM
08-28-2006 11:38 PM
Re: question about netstat (ore traceroute)
# cat ns_reorder.sh
#!/usr/bin/sh
for i in ${@}
do
netstat -in | sed -n "${i}p"
done
exit 0
# ./ns_reorder.sh 1 2 3 4 5
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan3 1500 192.168.144.0 192.168.144.199 170 0 0 0 0
lan0 1500 130.139.2.0 130.139.2.209 18290 0 0 0 0
lo0 4136 127.0.0.0 127.0.0.1 3046274 0 3046274 0 0
lan900 1500 130.139.1.0 130.139.1.48 1119 0 10 0 0
# ./ns_reorder.sh 1 5 3 2 4
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan900 1500 130.139.1.0 130.139.1.48 1119 0 10 0 0
lan0 1500 130.139.2.0 130.139.2.209 18290 0 0 0 0
lan3 1500 192.168.144.0 192.168.144.199 170 0 0 0 0
lo0 4136 127.0.0.0 127.0.0.1 3046274 0 3046274 0 0
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 01:05 AM
08-29-2006 01:05 AM
Re: question about netstat (ore traceroute)
I neet to make sure that the I2 aplication is using the right lan (and for some resaon it is the same lan that traceroute is using (the top lan of netstat -in.)
I have now checked some systems and it looks like there is a standart sequence.
does anny body know what the sequence is?
lan17??
lan16??
lan3
lan10??
lan2
lan9
lan1
lan8
loO
lan7
lan22 ??
lan21 ??
lan13 ??
lan6
lan5
lan4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 01:15 AM
08-29-2006 01:15 AM
Re: question about netstat (ore traceroute)
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 01:46 AM
08-29-2006 01:46 AM
Re: question about netstat (ore traceroute)
ps I alsow like to know how apa luns get in the sequence.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 12:41 PM
08-29-2006 12:41 PM
Re: question about netstat (ore traceroute)
matching host routes will take precedence over network routes
and
network routes will take precedence over the default route
An application might be able to influence the interface selected by routing by first binding to a local source IP, and possibly by having the ndd setting ip_strong_es_model set to a value of one or two.
Or by emulating what traceroute does with its -i option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2007 02:09 AM
01-05-2007 02:09 AM