Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 7:25 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Sun Mar 16, 2008 8:48 pm 
Offline
Newbie

Joined: Sat Mar 15, 2008 10:14 am
Posts: 14
Here is a nifty trick I found to return a nice looking IP format such as 10.0.3.1 rather than 010.000.003.001

this query returns the formatted ip, and can easily be substituted into the query page

[code]SELECT *,INET_NTOA(INET_ATON(net_ip_address)) as formatted_ip FROM `system`[/code]

and then instead of using net_ip_address you can use formatted_ip

so taking a previous example of a custom query I made

[code]SELECT * FROM `system`
WHERE `system_memory` < 384[/code]

and adding in the formatted address you get

[code]
SELECT *,INET_NTOA(INET_ATON(net_ip_address)) as formatted_ip FROM `system`
WHERE `system_memory` < 384[/code]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group