C20 - run API via SSH with plink logged on as admin

Hi all

What is the way of interacting ssh vith help API and application plink to run commands on a C20 looged as an administrator?

I am able to execute commands as root for example to perform a reboot:

Batch script:

C:\putty\plink.exe-SSH IP_Addresss-l root pw - password C:\C20restartjob\c20.txt m

C20.txt:

echo restart now

/ sbin/reboot

Output

I would like to be able to run the commands API but being logged on as admin user.

What I use in the c20.txt file if the command is recognized?

SW: TC 6.X

Thanks in advance for your advice.

Played a little further - and found something that works for plink.

     C:\>PLINK.EXE -ssh testc60 -l admin -pw TANDBERG<>

where C20. Cotains TXT:

     xcommand boot

     bye

The "bye" is really useless if the reboot - to do, but if you show other xcommands then unplug the codec at the end of all your orders.

Wayne
--
Remember the frequency responses and mark your question as answered as appropriate.

Tags: Cisco Support

Similar Questions

  • Running commands via SSH

    Hello

    I'm trying to use VCO SSH plugin to run certain commands on my host.
    Connection works fine and orders such as availability, hostname work too.
    What I want to do is to run the command mkdir create some folders, but it still fails (IE mkdir \vswp\volumes\myvol\mydir)

    What I ultimately want to achieve is to clone the disks with vmkfstools

    Any thoughts?

    If you try to create folders on linux/ESXi, please note that you should not use ' \ ' but ' / '.

    I.e. mkdir/mnt/NewFolder

  • Try to get the Scheduler of tasks for automatically running Windows Media Player with a log?

    I did a new task in the Task Scheduler to run wmplayer.exe. The trigger is whenever a user logs on. He gave me a permission error, which I fixed it by checking "do not store the password." Everything remains that I went alone, without anything change it. So, I disconnected and reconnected again to see if wmp would open by itself at startup. There can be no. Any ideas?

    Haha, nevermind, I forgot to restart the computer >. > This is a lesson to all, ALWAYS RESTART you YOUR COMPUTER IF YOU HAVE PROBLEMS. Patches about all ^_^

  • Running studiocli via ssh using authorized_keys o causes Epic build Fail

    Preface: I use authorized_host ssh keys to implement my non ssh sessions.

    Do this command in the shell of my build machine:

    SSH o 'StrictHostKeyChecking no 'root@myip' studiocli - createbuild - profile opt/vmware/var/lib/build/profiles/Build.xml--debug--verbose'

    Results output and following (epic fail of my attempt of construction):

    Failed: Failed to reset the process group identifier

    I followed it down to the code following in studiocli python (I commented).

        1. change vabs in a group of various different process than the OBA

        2. avoid the process OBA is killed during the cancellation of construction *.

      1. try: *.

      2. OS.setpgid (0, 0) *.

      3. except OSError: *.

      4. Failure ("Unable to Reset process Group ID") *.

      5. return ret *.

    What impact will this have on my versions if I comment on him?

    Is there a better way to call studiocli in ssh?

    Thank you

    H. Alan Treesong

    Try:

    SSH root@myip ' / bin/bash/etc/Environment; / opt/vmware/bin/studiocli - createbuild - profile opt/vmware/var/lib/build/profiles/test_profile.xml--debug--verbose'

    Vishwas

  • Running a VMware Player with server Via NAT

    Is it possible to run a VMware Player with a server (like Ubuntu) using NAT?

    Basically, I want to use the IP address of the host machine to send and receive data from and to the virtual machine

    Yes, it's doable.

  • Deletion of snapshots via SSH

    I have a RN102 with 2x3TB red WD leads to XRAID2. I deleted all my photos except one (instant action is 191 GB). However, snapshots take up a lot of space:

    He has not recovered "over time", so I thought to delete manually via SSH. My gaze of 5 actions 4 like this where each record contains a lot of data (taken copies of my actions):

    Would I ruin anything by deleting them?

    Also, is it the result of a bug? Why space is not recovered when I delete images via the GUI?

    Thank you!

    Here are the shots that have not been successfully upgraded when you updated of the pre - 6.2.x 6.2.x firmware (or later).

    You could do

    # touch .force_snapshots_upgrade
    # systemctl restart readynasd

    These shots should then be upgraded and you can then delete the admin web UI.

    The space is recovered only when you delete pictures if the snapshots that you delete contains the only copy of certain data. If the current data or snapshots that you do not delete also contain spatial data not to be released to the top. Also, when you delete snapshots that the system will have to recursively update other snapshots. It can take some time if you have many snapshots.

    Once you have removed all the clichés that you want and the use of volume of less than 80% return, I would say that you then run a balance.

  • Generate ACS V 4.1.1 23 aging via SSH password does not work.

    Hello, my name is Elias and I have problems with ACS via SSH password aging does not work and there is no meseges password sent by ACS console when I use SSH from aging. I know that there are problems with this, but I can't find any workaround or documentation that says that there is no workaroun. Can you help me with this?

    Greetings from the King.

    Hey Elias,.

    SSHv1 does not support the password as you can do in telnet. You must be

    running a version of the IOS which supports SSHv2.

    The following site explains which versions support this:

    http://www.Cisco.com/en/us/partner/products/SW/iosswrel/ps5207/products_feat

    ure_guide09186a00802045dc.html

    Rgds,

    somishra

  • PuTTY of appeal via Powershell using Plink - how auto answer the key question of safety

    I'm working on a script that you call PuTTY via Powershell using Plink.exe.  However, we use automatically generated keys, so I need to answer the question "do you trust this security key" during the execution of my script.

    I found through this blog (http://www.virtu-al.net/2013/01/07/ssh-powershell-tricks-with-plink-exe/), you can use ' echo y | Plink.exe", however I do not know where to put this in the script to work properly.  Any help would be appreciated!

    Thank you!

    It's the "-batch ' option.  Remove that fixed the issue.

  • How do you get HP DESKJET 460 wbt to work via Bluetooth with Windows 7?

    I have a Deskjet 460 and I try to get it to connect via Bluetooth with my laptop.

    My laptop running Windows 7.  I went to the "Add printers" section in the computer and downloaded the drivers, but when I tried to print a test page, the printer acted like he was going to print but it only pulled the paper down and then won print.  She stayed like that until I cancelled the print job.

    You have any suggestions on how to get this to work without connecting the USB cable?  I prefer to use the wireless Bluetooth option.

    Hello-

    Check out this link to see if it helps:

    http://support.HP.com/us-en/document/c02530249

  • PIX and SSH - access to PIX via SSH

    Need help with PIX and SSH

    Objective: Connect to PIX via SSH from the 10.1.1.50 IP address behind inside the interface on the PIX using local aaa on PIX.

    Current settings:

    hostname pix1

    example.com domain name

    CA generates the key rsa 1024

    example username password abc123 privileges 15

    include authentication AAA ssh inside 10.1.1.50 255.255.255.255 local

    SSH 10.1.1.50 255.255.255.255 inside

    Thanks for any help!

    Try this:

    AAA-server local LOCAL Protocol

    the ssh LOCAL console AAA authentication

  • Powering down VMs and ESXi via SSH

    Hello

    I need;

    (1) stop all virtual machines running on the host ESXi

    (2) then stop this ESXi host

    How to achieve this via SSH?

    Thank you.

    I found it much easier to do via PowerCLI...

    $vc = vcenter1

    $dc = 'Center '.

    SE connect-VIServer $vc

    # Gets the list of all virtual machines in the data center (except the vCenter VM itself)

    $vms = get-data center-name $dc | Get - VM | where {$_. - don't $vc name - and $_.} PowerState - eq "Receptor"}

    # Stop the virtual machines in the data center located in a State power.

    {Foreach ($vm to $vms)

    if($VM.) {ExtensionData.Config.Tools.ToolsVersion - only '0')}

    stop #gracefully

    Stop-VMGuest - VM $vm - confirm: $false

    sleep - 60 seconds

    }

    #forcefully VM stop

    Stop-VM - $vm VM - confirm: $false

    }

    # Stop vCenter VM (comment if vCenter is not virtual)

    sleep - 120 seconds

    Stop-VMGuest - VM $vc - confirm: $false

  • My Windows 7 Professional Office system disk has been corrupted and I took the opportunity to install a SSD for a new system disk and reinstall Windows.  The system is installed and running on the SSD, with my old drive system currently used for storage a

    My Windows 7 Professional Office system disk has been corrupted and I took the opportunity to install a SSD for a new system disk and reinstall Windows.  The system is in place and running on the SSD, with my old drive system now used for storage as it is still readable.  The only product Adobe, that I reinstalled so far is drive XI but I would like to reinstall items 8 and Acrobat 9 without occupying more licenses that both are also installed on my laptop.  Can you tell me the best way to do it?  -Thank you

    If you have two activations allocated already and one was lost on the hard drive that has failed, then you must contact the Adobe Support via chat and ask them to reset your activations.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...

    Serial number and activation support (non - CC) chat
    http://helpx.Adobe.com/x-productkb/global/Service1.html ( http://adobe.ly/1aYjbSC )

  • Sqlldr error with plink in remote command

    Hi all

    My OS is Windows, I tried to launch a command remote sqlldr with plink (putty):

    Dos command:
    "plink host-l oracle - oracle sqlldr userid pw - schema/pwd-/tmp/test.ctl of control.

    I got this error: "ksh: sqlldr: not found".

    Setting the server:
    $ORACLE_HOME=/app/local/oracle/product/10.2.0/Db_1

    When I try "sqlldr userid - schema/pwd-control /tmp/test.ctl" directly with the server PuTTY it works.

    Please could someone explain to me how can I do with the command line remotely?

    Thank you

    Hello
    Plink is not running the .profile file when it connects.

    You can try to change you plink command line:

    ". ~ / .profile. You order sqlldr.

    Note the. is important!

    See you soon,.
    Harry

  • I run a Mac Pro with El Capitan and iMovie 11 will not recognize my camcorder Sony FDR-AX35P 4 K

    I run a Mac Pro with El Capitan. iMovie 11 will not recognize my camcorder Sony FDR-AX45P 4 K. He keeps asking connect a camera.

    iMovie 11 (version 9) supported cameras include not all models Sony FDR.  iMovie 10 supports a number of FDR-AXxx models however does not list your a see particular: iMovie support cameras - Apple Support

    There are a number of problems of running iMovie 11 under El Capitan, particularly with still pictures appears.  (It does not supports video 4K).  I recommend try iMovie 10.1.2 which you should be able to get in for free or may already have in your applications folder.  Although your camera model in particular is still not listed, I would expect it would probably work, and failing that you should be able to read files directly from the SD card if you put in an SD card reader.

    Geoff.

  • Have Windows 7 running on Parallels Desktop with a Mac. Get "setup.exe is not a valid Win32 application" when trying to download a program with Windows Explorer. I can download from these sites with Vista and XP with other computers.

    Have Windows 7 running on Parallels Desktop with a Mac. Get "setup.exe is not a valid Win32 application" when trying to download a program with Windows Explorer. I can download from these sites with Vista and XP with other computers. Now, I can't download the programs that are supposed to solve the problem! including FoxFire

    Try to download from this site:

Maybe you are looking for

  • Automatically sort columns

    Hello I have a column with a number of figures for names that changes according to the entry on a separate table. It is sort of have this kind of column down automatically without having to click each me time change of numbers? Thank you Rob

  • P series too hot and sound card problem

    Hello in recent weeks, I have a problem with the temperature. The P series of satellites is much too hot, even if only the essential progs are running, the processor runs with 100% very often. Without the Task Manager (to close the CPRS) of "windows"

  • Can't download ITunes of purchased music versions

    Recently, I'm subscribed to iTunes game in order to get the iWTunes over the .m4p songs that won't play on Sonos. All the songs now show the State bought or matched iCloud, but if I follow the steps to download the iTunes more versions - go to my mus

  • In trying to play the game, download the message I need permission of the plug-in.

    I tried to play the game, but ever time I do its saying that I need permission of plug in I do not understand what it means that everything I knom is every time a gray screen comes up showing a piece of the puzzle, I hope you can help thank you very

  • Error 204 on Windows: help please!

    I'm trying to install Adobe Creative Cloud for the first time but 204 continuous error appears. I tried everything above all. I restarted my laptop, I did a clean boot, etc., but it still appears. I'm on a Windows 7 laptop.