cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1241
Views
0
Helpful
2
Replies

Open CUCM via SSH over PHP and run a command

hghghghghg
Level 1
Level 1

Hello,

 

I'm trying to connect to the SSH Consolle of our CUCM via a PHP script. The connection (login) to the CUCM works, but when i set up a command, it gives me the error message below. Other Cisco SSH consoles work via PHP properly.

 

I found this website, but via php connector it doesn`t work...

https://community.cisco.com/t5/ip-telephony-and-phones/cm-platform-access-with-plink-exe/m-p/1822270

 

 

stty: standard input: Invalid argument
stty: standard input: Invalid argument
stty: standard input: Invalid argument
Exception in thread "main" java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:504)
	at java.lang.Integer.parseInt(Integer.java:527)
	at sdMain.initialize(sdMain.java:501)
	at sdMain.main(sdMain.java:676)
stty: standard input: Invalid argument
Command Line Interface is starting up, please wait ...

 

Thanks,

Regards

 

2 Replies 2

Chris Deren
Hall of Fame
Hall of Fame

What command are you sending and are you waiting long enough for specific admin prompt as unlike IOS devices for example the CUCM SSH session takes longer to load and it's important to wait/confirm an expected prompt is present before pushing commends.

Now it works with SOPA API (AXLAPI.wsdl).

 

Thanks