Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-16-2016, 01:27 PM   #1
LQ Newbie
Registered: Mar 2016
Posts: 2

Rep: Reputation: Disabled
sort remeining energy in neighbor table

hey everyone..
i add a new field energy in neighbor table. This field includes remaining energy of each node and stored in the neighbor table. Now I want to sort the table based on energy field in descending order. please help me in doin this??
Old 03-16-2016, 01:29 PM   #2
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,150

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
assuming mysql:
mysql -u deepika721 node 'select energy from neighbor order by enrgy desc;'
change the username and database name where appropriate.

Last edited by schneidz; 03-16-2016 at 01:34 PM.
Old 03-16-2016, 01:43 PM   #3
LQ Newbie
Registered: Mar 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
i want to do this in ns2..



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to modify the neighbor table in NS2? aicaicai Linux - Newbie 3 03-05-2012 08:09 PM
neighbor table overflow Homer Glemkin Linux - Networking 8 11-02-2005 06:37 PM
Neighbor Table Overflow error snowmonkey Linux - Software 1 11-04-2003 05:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration