Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query for Active Nodes in the last 'X' number of days

Status
Not open for further replies.

insanity1

Technical User
Nov 30, 2004
40
CA
I am just wondering if there is a means of querying for all nodes that have been active in the last 'X' number of days?

(v5.3.3 for Linux)
 
This will give you an idea:

select node_name,cast(lastacc_time as date) acc_date from nodes order by acc_date

from there you can say something like:

select node_name,cast(lastacc_time as date) last_acc from nodes where (cast(lastacc_time as date)>= cast(current_timestamp as date) - 5 days)

that will show you all nodes that connected from 5 days ago until today....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top