I have been requested to use control m to run cisco commands via ssh for some cisco network devices hounestly i dont know if control m can be used for this task so if there is a way or a job type that i can use for my task to schedule the requested commands it will be a big help from you.

If you create a Control-M job and set the Task Type to Command then whatever you enter into the command field will be taken as if you were at the command prompt and entering the command yourself.

On Unix you should be able to set the Run As field to be the userid that you want to execute as (if the Agent has been installed as root). On Windows it takes the userid from whatever the Agent runs as.

In the command filed you can enter up to 512 characters (on recent versions) and use Control-M variables within that command (which can expand the used field up to double, i.e. 1024 characters). You can also use conditional processing within the command to control things within the command, e.g. -

I am really sorry for the delay on the response, I tried your suggestion and created the command job but the job shows on execution state and didn't finish or execute anything, I tried the same command from the SSH host used it worked fine on CMD I used the show clock command it worked fine in control m it didn't

I changed the user to the user that is executing the job I received a message from the agent (job failed to initialize) for rung the command on CMD when I run the command it simply open a putty session run the command and close the session and the putty log shows a successful execution of the ssh command

I am really sorry for my delay in responding for each one of you but the good thing that I managed to solve my request by using plink the command line of putty and made command line job from a host server that have the ssh port opened to the network device and it worked as expected.