Asterisk CLI

chrisisearth

Joined
Nov 13, 2008
Messages
23
Likes
0
Points
0
#1
Hi Guys,

Since I re built the pbx in our office using 1.3 (using md for raid)

I cant get into asterisk -r,

I found this quiet handy for debugging and stuff.....

Is it still there somewhere?

Any help would be much appreciated!

Thanks

Chris
 

Chilling_Silence

Joined
Sep 23, 2008
Messages
488
Likes
0
Points
0
#2
What user are you logging in with when you run asterisk -r?
Presumably you're getting an error saying it cant find something in /var ?
 

chrisisearth

Joined
Nov 13, 2008
Messages
23
Likes
0
Points
0
#3
as root,

someone on irc mentioned amportal restart on irc! but that command didnt work, this is a bast install of elastix 1.3
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#4
Chrisisearth,

Can confirm that your Elastix PBX is running (e.g. you can make a call from one extension to another)

When you type asterisk -r -vvvvvvvvv at the linux prompt, is there any message at all

Regards

Bob
 

chrisisearth

Joined
Nov 13, 2008
Messages
23
Likes
0
Points
0
#5
Hi Bob,

Yep, this is a live system in an office with about 20 users,


Welcome to Elastix
----------------------------------------------------

For access to the Elastix web GUI use this URL
http://172.30.30.250

[cmurphy@siper ~]$ su
Password:
[root@siper cmurphy]# cd
[root@siper ~]# asterisk -r -vvvvvvvvv
bash: asterisk: command not found


its kinda crazy!

Thanks
 

jandir

Joined
Aug 24, 2008
Messages
65
Likes
0
Points
0
#6
It looks like the asterisk executable is not in your path. Try logging in with

$ su -

Or execute asterisk with the full path after an su

# /usr/sbin/asterisk -rvvvvvvv
 

chrisisearth

Joined
Nov 13, 2008
Messages
23
Likes
0
Points
0
#7
Hi Jandir,

/usr/sbin/asterisk -rvvvvvvv got me in!

any reason why its not in in my executable path in this build?
 

jandir

Joined
Aug 24, 2008
Messages
65
Likes
0
Points
0
#8
Typically in unix systems non administrative users do not have /usr/sbin in their path since sbin contains mainly system configuration commands. You might want to login with "su -" in the future to get the correct environment for root. See quote below from a linux forum that discusses one aspect of the difference between "su" and "su -". There are also other security implications of using one over the other.

"su" is equiv "su root" and "su -" equiv "su - root"

the diff between "su" and "su -" is that with "su -" you log in as a root with the env setting/profile (i.e you really log in as a root). just type "pwd" and you will be in the root home dir @ /root.

if you "su" only then basically you just "borrow" the root permission without having all the root env setting/profile . just "su" from your home dir and type "pwd", you can see that you still in the user dir i.e /home/user of the user you were logged in as when you executed the su command.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,567
Latest member
achilont13
Top