Old 01-27-2010, 11:11 AM   #1 (permalink)
Master Untangler
 
neiby's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 603
neiby is on a distinguished road
Default List of good troubleshooting commands?

I'm wondering if there is a consolidated list of helpful UT troubleshooting commands somewhere. I've seen commands to check the database size, check disk space, check to see what applications are installed and/or running, etc. I've also seen and used top and jnettop. I still feel like I really don't know what to look for if I'm having a problem and I'd like to be a little more self-sufficient.

What other commands have you all found helpful?
__________________
Disclaimer: I may or may not have had enough coffee when I'm posting. Interpret my responses thusly.
neiby is offline   Reply With Quote
Old 01-27-2010, 11:39 AM   #2 (permalink)
Administrator
 
gotkimchi's Avatar
 
Join Date: Jan 2007
Location: Bay Area
Posts: 2,075
gotkimchi is on a distinguished road
Send a message via AIM to gotkimchi Send a message via MSN to gotkimchi Send a message via Yahoo to gotkimchi
Default

backups
/usr/share/untangle/autodump
__________________
to be understood, you must first understand.
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
gotkimchi is offline   Reply With Quote
Old 01-27-2010, 11:40 AM   #3 (permalink)
Administrator
 
gotkimchi's Avatar
 
Join Date: Jan 2007
Location: Bay Area
Posts: 2,075
gotkimchi is on a distinguished road
Send a message via AIM to gotkimchi Send a message via MSN to gotkimchi Send a message via Yahoo to gotkimchi
Default

Not upgrading
tail -n 100 /var/log/uvm/apt.log
__________________
to be understood, you must first understand.
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
gotkimchi is offline   Reply With Quote
Old 01-27-2010, 12:50 PM   #4 (permalink)
Master Untangler
 
neiby's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 603
neiby is on a distinguished road
Default

Here are some that I know of:

top (show cpu load and usage)

jnettop (show network traffic)

ucli instances (show installed and running modules)

sudo du -hs /var/lib/postgresql/ (show the size of the database)

ifconfig -a (show all interfaces, even if down)
__________________
Disclaimer: I may or may not have had enough coffee when I'm posting. Interpret my responses thusly.
neiby is offline   Reply With Quote
Old 01-27-2010, 12:56 PM   #5 (permalink)
Master Untangler
 
neiby's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 603
neiby is on a distinguished road
Default

ucli sessions 1 | wc -l (shows the current number of sessions on the box)

I'd like to find out more about the ucli commands available. It seems to be useful, but I can't find any documentation on it.
__________________
Disclaimer: I may or may not have had enough coffee when I'm posting. Interpret my responses thusly.
neiby is offline   Reply With Quote
Old 01-27-2010, 01:11 PM   #6 (permalink)
Administrator
 
gotkimchi's Avatar
 
Join Date: Jan 2007
Location: Bay Area
Posts: 2,075
gotkimchi is on a distinguished road
Send a message via AIM to gotkimchi Send a message via MSN to gotkimchi Send a message via Yahoo to gotkimchi
Default

Have fun

optional args:
-h hostname
-u username
-w password
-t timeout (default 120000)
-p policy
-v
toolbox commands:
ucli install mackage-name
ucli uninstall mackage-name
ucli update
ucli upgrade
ucli requestInstall mackage-name
toolbox lists:
ucli available
ucli installed
ucli uninstalled
ucli upgradable
ucli uptodate
node manager commands:
ucli instantiate mackage-name [ args ]
ucli start TID
ucli stop TID
ucli destroy TID
ucli neverStarted
node manager lists:
ucli instances
node live sessions:
ucli sessions [ TID ]
admin manager:
ucli who
ucli getRegInfo
ucli passwd [ -a | -d ] login [ password ]
uvm commands:
ucli shutdown
ucli serverStats
ucli gc
ucli loadRup
ucli setProperty key value
policy manager:
ucli addPolicy name [notes]
ucli listPolicies
reporting manager:
ucli isReportingEnabled
ucli areReportsAvailable
ucli prepareReports [ args ]
ucli startReports
ucli stopReports
logging manager:
ucli userLogs tid
ucli resetLogs
ucli logError [text]
apt commands:
ucli register mackage-name
ucli unregister mackage-name
argon commands:
nucli server commands:
ucli restartCliServer
debugging commands:
ucli aptTail
__________________
to be understood, you must first understand.
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
gotkimchi is offline   Reply With Quote
Old 01-27-2010, 03:49 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

jnettop - it seems to show some good info, but it is showing my WAN connection and such, how can i view where the bandwidth is going on the LAN side... example my UT box says i am using about 80kb steady in.... but i want to know who it is..

how do i change the device from eth0 to eth1

[EDIT]


jnettop -i eth1


Last edited by Mathiau; 01-27-2010 at 04:00 PM..
Mathiau is offline   Reply With Quote
Old 01-27-2010, 04:51 PM   #8 (permalink)
Untangle Ninja
 
mrunkel's Avatar
 
Join Date: Jul 2008
Posts: 2,769
mrunkel is on a distinguished road
Default

Quote:
Originally Posted by Mathiau View Post
jnettop - it seems to show some good info, but it is showing my WAN connection and such, how can i view where the bandwidth is going on the LAN side... example my UT box says i am using about 80kb steady in.... but i want to know who it is..

how do i change the device from eth0 to eth1

[EDIT]


jnettop -i eth1

or I think just hit I inside jnettop
__________________
m.


Big Frickin Disclaimer:
While I'm pretty sure, I can't guarantee that I know what I'm doing. There might be a better way to do this, and this way might actually suck. Make sure you understand the implications of what you're doing before trying to follow these directions.

It often helps troubleshooting if you have a good network map. Look here if you want my advice on how to draw one.
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
mrunkel is online now   Reply With Quote
Old 01-28-2010, 07:46 AM   #9 (permalink)
Master Untangler
 
neiby's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 603
neiby is on a distinguished road
Default

Pressing the number keys switches between the available interfaces on your server.
__________________
Disclaimer: I may or may not have had enough coffee when I'm posting. Interpret my responses thusly.
neiby is offline   Reply With Quote
Old 01-28-2010, 01:52 PM   #10 (permalink)
Untangle Ninja
 
dwasserman's Avatar
 
Join Date: Jun 2008
Location: Argentina
URLs submitted: 57
Posts: 3,634
dwasserman is on a distinguished road
Default

Can this threath be a sticky at top of forum for easy access ? is becoming a bible
dwasserman is offline   Reply With Quote
Reply

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 07:50 AM.


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