LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-16-2016, 12:27 PM   #1
deepika721
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, 12:29 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
assuming mysql:
Code:
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 12:34 PM.
 
Old 03-16-2016, 12:43 PM   #3
deepika721
LQ Newbie
 
Registered: Mar 2016
Posts: 2

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


Reply

Tags
ns2



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 07:09 PM
neighbor table overflow Homer Glemkin Linux - Networking 8 11-02-2005 05:37 PM
Neighbor Table Overflow error snowmonkey Linux - Software 1 11-04-2003 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 AM.

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