Old 01-03-2012, 04:28 PM   #1 (permalink)
Untangle Ninja
 
Mathiau's Avatar
 
Join Date: Feb 2008
Location: Costa Frickn' Rica
Posts: 1,467
Mathiau is on a distinguished road
Send a message via AIM to Mathiau Send a message via MSN to Mathiau Send a message via Yahoo to Mathiau
Default Whipe clean all logs and events for all modules?

Since it seems i have some huge event logs in my system...and it takes literally minuted to view events as it "compiles." and i get excessively high CPU usage from 4-7 on a quad core...

is it possible to emtpy all of the event logs for all modules on all racks and almost 'start' over as if it were a fresh install?
__________________
Def1:Started:UT 7.1 x64 -- Current :UT 9.1 x64| Gigabyte GM-G31 mATX | Intel Q8200 | 8G DDR2 800 | 80G WD | 4x Intel Pro 1000 GT NIC's | Corsair 550W PSU | Norco RPC-250 2U Case | 50mb/50mb | 10 users
Mathiau is offline  
Old 01-03-2012, 04:38 PM   #2 (permalink)
Untangle Junkie
 
dmorris's Avatar
 
Join Date: Nov 2006
Location: San Mateo, CA
URLs submitted: 10
Posts: 10,613
dmorris is on a distinguished road
Default

/etc/init.d/untangle-vm stop && psql -U postgres -c "drop schema reports cascade;" uvm && /etc/init.d/untangle-vm start

edit Disclaimer to others reading this thread: my posting of this is not in any way an endorsement or suggestion to do this. I am not saying this is a good idea. I am simply answering his question.
__________________
Attention: Support and help on the Untangle Forums is provided by
volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com

Last edited by dmorris; 01-03-2012 at 04:56 PM..
dmorris is online now  
Old 01-03-2012, 04:39 PM   #3 (permalink)
Untangle Ninja
 
Mathiau's Avatar
 
Join Date: Feb 2008
Location: Costa Frickn' Rica
Posts: 1,467
Mathiau is on a distinguished road
Send a message via AIM to Mathiau Send a message via MSN to Mathiau Send a message via Yahoo to Mathiau
Default

Appreciated!

should this be quick or will it kill the FW while it does it
__________________
Def1:Started:UT 7.1 x64 -- Current :UT 9.1 x64| Gigabyte GM-G31 mATX | Intel Q8200 | 8G DDR2 800 | 80G WD | 4x Intel Pro 1000 GT NIC's | Corsair 550W PSU | Norco RPC-250 2U Case | 50mb/50mb | 10 users
Mathiau is offline  
Old 01-03-2012, 04:40 PM   #4 (permalink)
Untangle Junkie
 
dmorris's Avatar
 
Join Date: Nov 2006
Location: San Mateo, CA
URLs submitted: 10
Posts: 10,613
dmorris is on a distinguished road
Default

I guess that depends on your definition of quick. My guess would be no.
__________________
Attention: Support and help on the Untangle Forums is provided by
volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com
dmorris is online now  
Old 01-03-2012, 04:41 PM   #5 (permalink)
Untangle Ninja
 
Mathiau's Avatar
 
Join Date: Feb 2008
Location: Costa Frickn' Rica
Posts: 1,467
Mathiau is on a distinguished road
Send a message via AIM to Mathiau Send a message via MSN to Mathiau Send a message via Yahoo to Mathiau
Default

ahahaa, off it goes!
__________________
Def1:Started:UT 7.1 x64 -- Current :UT 9.1 x64| Gigabyte GM-G31 mATX | Intel Q8200 | 8G DDR2 800 | 80G WD | 4x Intel Pro 1000 GT NIC's | Corsair 550W PSU | Norco RPC-250 2U Case | 50mb/50mb | 10 users
Mathiau is offline  
Old 01-03-2012, 04:46 PM   #6 (permalink)
Untangle Ninja
 
Mathiau's Avatar
 
Join Date: Feb 2008
Location: Costa Frickn' Rica
Posts: 1,467
Mathiau is on a distinguished road
Send a message via AIM to Mathiau Send a message via MSN to Mathiau Send a message via Yahoo to Mathiau
Default

good to go, less than a minute

Code:
~ # /etc/init.d/untangle-vm stop && psql -U postgres -c "drop schema reports cascade;" uvm &&
cmdand cmdand> /etc/init.d/untangle-vm start
 * Stopping Untangle VM                                                                                                                                           [...............ungraceful exit......]

NOTICE:  drop cascades to table reports.merged_address_map
NOTICE:  drop cascades to default for table reports.merged_address_map column id
NOTICE:  drop cascades to sequence reports.n_openvpn_stats_event_id_seq
NOTICE:  drop cascades to default for table reports.n_openvpn_stats column event_id
NOTICE:  drop cascades to sequence reports.n_bandwidth_quotas_event_id_seq
NOTICE:  drop cascades to default for table reports.n_bandwidth_quotas column event_id
NOTICE:  drop cascades to sequence reports.n_bandwidth_penalties_event_id_seq
NOTICE:  drop cascades to default for table reports.n_bandwidth_penalties column event_id
NOTICE:  drop cascades to sequence reports.n_webcache_stats_event_id_seq
NOTICE:  drop cascades to default for table reports.n_webcache_stats column event_id
NOTICE:  drop cascades to sequence reports.n_mail_addrs_event_id_seq
NOTICE:  drop cascades to default for table reports.n_mail_addrs column event_id
NOTICE:  drop cascades to sequence reports.n_mail_msgs_event_id_seq
NOTICE:  drop cascades to default for table reports.n_mail_msgs column event_id
NOTICE:  drop cascades to sequence reports.n_http_events_event_id_seq
NOTICE:  drop cascades to default for table reports.n_http_events column event_id
NOTICE:  drop cascades to sequence reports.sessions_event_id_seq
NOTICE:  drop cascades to default for table reports.sessions column event_id
NOTICE:  drop cascades to table reports.n_webcache_stats
NOTICE:  drop cascades to table reports.n_openvpn_connect_totals
NOTICE:  drop cascades to table reports.n_openvpn_stats
NOTICE:  drop cascades to table reports.n_bandwidth_quotas
NOTICE:  drop cascades to table reports.n_bandwidth_penalties
NOTICE:  drop cascades to table reports.n_adlogin_events
NOTICE:  drop cascades to table reports.n_adlogin_totals
NOTICE:  drop cascades to table reports.reports_state
NOTICE:  drop cascades to table reports.email
NOTICE:  drop cascades to table reports.users
NOTICE:  drop cascades to table reports.hnames
NOTICE:  drop cascades to table reports.n_mail_msg_totals
NOTICE:  drop cascades to table reports.n_shield_totals
NOTICE:  drop cascades to table reports.n_virus_http_totals
NOTICE:  drop cascades to table reports.n_virus_mail_totals
NOTICE:  drop cascades to table reports.n_shield_rejection_totals
NOTICE:  drop cascades to table reports.session_totals
NOTICE:  drop cascades to table reports.n_http_totals
NOTICE:  drop cascades to table reports.n_server_totals
NOTICE:  drop cascades to table reports.n_mail_addr_totals
NOTICE:  drop cascades to table reports.n_server_events
NOTICE:  drop cascades to table reports.n_mail_addrs
NOTICE:  drop cascades to table reports.n_mail_msgs
NOTICE:  drop cascades to table reports.n_http_events
NOTICE:  drop cascades to table reports.session_counts
NOTICE:  drop cascades to table reports.sessions
NOTICE:  drop cascades to table reports.n_admin_logins
NOTICE:  drop cascades to table reports.table_updates
NOTICE:  drop cascades to table reports.report_data_days
DROP SCHEMA
 * Starting Untangle VM                                                                                                                                           [...........................|.............................]

root@def2#
__________________
Def1:Started:UT 7.1 x64 -- Current :UT 9.1 x64| Gigabyte GM-G31 mATX | Intel Q8200 | 8G DDR2 800 | 80G WD | 4x Intel Pro 1000 GT NIC's | Corsair 550W PSU | Norco RPC-250 2U Case | 50mb/50mb | 10 users
Mathiau is offline  
Old 01-03-2012, 04:51 PM   #7 (permalink)
Untangle Ninja
 
Mathiau's Avatar
 
Join Date: Feb 2008
Location: Costa Frickn' Rica
Posts: 1,467
Mathiau is on a distinguished road
Send a message via AIM to Mathiau Send a message via MSN to Mathiau Send a message via Yahoo to Mathiau
Default

guess i had a hella-lotta logs which were slowing the system down, the system is so much more responsive and tolerable, the GUI is just cruising!
__________________
Def1:Started:UT 7.1 x64 -- Current :UT 9.1 x64| Gigabyte GM-G31 mATX | Intel Q8200 | 8G DDR2 800 | 80G WD | 4x Intel Pro 1000 GT NIC's | Corsair 550W PSU | Norco RPC-250 2U Case | 50mb/50mb | 10 users
Mathiau is offline  
Closed Thread

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 08:43 AM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2