« Back to Technical Questions

iosapi --mode exec

Combination View Flat View Tree View
Hi Experts,
 
I tried "iosapi --mode exec",
The "show" and "write" commands succeeded.
But, many commands shows "Unsupported operation" on iosapi.
i.e.
iosapi --mode exec "dir flash0:"
iosapi --mode exec "debug telnet"
iosapi --mode exec "systat"
 
Which ios commands support on iosapi --mode exec?
 
Regards,
Satoshi

Hi Satoshi,

Use the IOS CLI API to issue the following selected commands on the Cisco IOS router:
¿Copy commands¿for example, copy running-config startup-config
¿Show commands¿for example, show running-config
¿Configuration commands¿for example, int fa9/0

Thanks,
Raghavendra

RE: iosapi --mode exec
Answer
10/18/11 10:49 AM as a reply to Raghavendra Gutty Veeranagappa.
Hi Raghavendra,

Thank you for the information.
I tried by --mode config with "do". some commands are working.
i.e.
iosapi --mode config "do reload"
iosapi --mode config "do debug telnet"

Can I use mode config with "do" ?

Thanks,
Satoshi

Hi Satoshi,

I think you can use mode config with do commands.

Thanks,
Raghavendra

RE: iosapi --mode exec
Answer
10/18/11 11:13 AM as a reply to Raghavendra Gutty Veeranagappa.
Hi Raghavendra,

Thanks!
Satoshi