Problem with rsh (remote shell)

Hi!
I'm spanish and my english is not very good. I'm development a soft that connect with router cisco with rsh. And i have to send rsh commands but i can't. From my Linux shell command a request rsh:
rsh 192.168.1.5 cisco-rsh
cisco-rsh is a user that has privileges.
A configuration of my FastEthernet0/0 on my router(cisco 2600) is:
no ip rcmd domain-lookup
ip rcmd rcp-enable
ip rsh-enable
ip rcmd remote-host cisco-rsh 192.168.1.33 cisco-rsh enable
ip rcdm remote-username cisco-rsh
ip rcmd source-interface FastEthernet0/0
Then what is my problem? only can use rsh because my teacher is required.

To enable the Cisco IOS software to receive incoming remote shell (rsh) protocol and remote copy (rcp) protocol requests, customers must configure an authentication database to control access to the router. This configuration is accomplished by using the ip rcmd remote-host command.
http://www.cisco.com/en/US/docs/ios/12_2t/12_2t8/feature/guide/ftAuth.html

Similar Messages

  • Strange problem with purple-remote

    Hi, I experience a strange problem with purple-remote (program which allow to control Pidgin via D-Bus) :
    To get the current status message, you have to type
    $ purple-remote getstatusmessage
    This works, but when I type
    $ echo $(purple-remote getstatusmessage)
    this fails with the error
    Traceback (most recent call last):
    File "/usr/bin/purple-remote", line 238, in <module>
    print output
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)
    Why?
    How can this program work in the first case but not in the second?
    Thank you
    Edit: BTW, is there a workaround to put the output of `purple-remote getstatusmessage' in a variable? $(), redirections and piping doesn't work.
    Fractal
    Last edited by Fractal (2010-04-04 12:09:56)

    Hi Andyh,
    Welcome to the forum.  How annoying does that sound, if I had to get up every time I wanted to change channel or volume I would crack up.
    Drop me an email to [email protected], please include your BT account details and I will see what can be done to help.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Problems with rsh in solaris 8

    I have tried to execute a command with "rsh", like a "prstat", and it works but if I execute a "snoop" command, I see that the machine that runs the command(rsh) lost information. There is packets from TCP that has been return (in some occasions partially), this provokes the application losts information.
    Which can the problem be ?

    OK, but the problem is not in C++. Your C++ code just invokes invokes the shell and remote operations, and returns the result. The local C++ program cannot cause or repair communication problems between machines.

  • Problems with IR remote after 10.5.6 & 10.5.7

    Hi guys,
    I am just trying to find out if anyone else is having a problem with the apple remotes since the last few OSX updates.
    The problem I have
    Apple remote fails to respond to any input.
    The IR reciver is still present in the system profiler and is not disabled in security system pref.
    The only way I have found to resolve this is to reset the PRAM (+BTW I'm impressed this works with a bluetooth keyboard+)
    I have had this problem on 2 different iMac 24" Core2's and a mac mini.
    It seems to happen sporadically. I have tried pairing remotes but this doesn't help.
    This is an annoying problem as these Macs are mostly used as media centres via frontrow or Plex
    Anyone else seeing this behaviour got any ideas why it is happening?
    Mr D

    Hi guys,
    I am just trying to find out if anyone else is having a problem with the apple remotes since the last few OSX updates.
    The problem I have
    Apple remote fails to respond to any input.
    The IR reciver is still present in the system profiler and is not disabled in security system pref.
    The only way I have found to resolve this is to reset the PRAM (+BTW I'm impressed this works with a bluetooth keyboard+)
    I have had this problem on 2 different iMac 24" Core2's and a mac mini.
    It seems to happen sporadically. I have tried pairing remotes but this doesn't help.
    This is an annoying problem as these Macs are mostly used as media centres via frontrow or Plex
    Anyone else seeing this behaviour got any ideas why it is happening?
    Mr D

  • [TV@Master] problem with the remote MS 8606

    My remote was working fine with the MSIPVR WinDVR ver 2 and drivers 2.65.1.79 that came with the card. But it had problem with the reception and channel sorting so i downloaded the new drivers ver 4.102.1.8 and MSIPVR ver 3 for Ms 8606 from the msi website. The reception has greatly improved but the remote has stoped working.I replaced the batteries but it still doesn't work.

    is the WinCinema Manager program running? (look in notification area of taskbar - by clock)

  • Problem with selecting remote tables.

    Hi, im having problems with one select...
    Running select, in which i select tables from remote DB, takes not more then 2 seconds, retrieving few rows.
    1) When i try to "create table as" using that select it takes about 1 minute to run.
    2) Trying "merge into" my table using that select takes more that 5 minutes, ... replacing the select within merge by newly created temporary table (point 1) works fine - takes few seconds to run.
    So why simple select takes few seconds, creation of table using that select takes one minute and merge using that select takes 5minutes to run ?
    Thanks for any ideas
    Plan hash value: 1936184599
    | Id  | Operation                             | Name                        | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop | Inst   |IN-OUT|
    |   0 | MERGE STATEMENT                       |                             |     1 |   642 |    84  (12)| 00:00:02 |       |       |        |      |
    |   1 |  MERGE                                | NP_HT_REC        |       |       |            |          |       |       |        |      |
    |   2 |   VIEW                                |                             |       |       |            |          |       |       |        |      |
    |   3 |    NESTED LOOPS OUTER                 |                             |     1 |  8637 |    84  (12)| 00:00:02 |       |       |        |      |
    |*  4 |     HASH JOIN                         |                             |     1 |  8244 |    81  (13)| 00:00:01 |       |       |        |      |
    |*  5 |      HASH JOIN                        |                             |     1 |  4220 |    60  (10)| 00:00:01 |       |       |        |      |
    |*  6 |       HASH JOIN                       |                             |     1 |  4182 |    56   (9)| 00:00:01 |       |       |        |      |
    |   7 |        NESTED LOOPS                   |                             |     1 |  4134 |    41  (10)| 00:00:01 |       |       |        |      |
    |*  8 |         HASH JOIN                     |                             |     1 |  4109 |    40  (10)| 00:00:01 |       |       |        |      |
    |   9 |          REMOTE                       | HT_REC              |     2 |   170 |    11   (0)| 00:00:01 |       |       |   NP | R->S |
    |  10 |          VIEW                         | VW_SQ_3                     |   806 |  3167K|    29  (14)| 00:00:01 |       |       |        |      |
    |  11 |           SORT GROUP BY               |                             |   806 | 96720 |    29  (14)| 00:00:01 |       |       |        |      |
    |  12 |            MERGE JOIN                 |                             |   806 | 96720 |    28  (11)| 00:00:01 |       |       |        |      |
    |  13 |             SORT JOIN                 |                             |     2 |   170 |    12   (9)| 00:00:01 |       |       |        |      |
    |  14 |              REMOTE                   | HT_REC              |     2 |   170 |    11   (0)| 00:00:01 |       |       |   NP | R->S |
    |* 15 |             SORT JOIN                 |                             |  7100 |   242K|    16  (13)| 00:00:01 |       |       |        |      |
    |  16 |              REMOTE                   | T_UR_BUS               |  7100 |   242K|    14   (0)| 00:00:01 |       |       |   NP | R->S |
    |  17 |         REMOTE                        | T_UR                      |     1 |    25 |     1   (0)| 00:00:01 |       |       |   NP | R->S |
    |  18 |        REMOTE                         | T_UR_BUS               |  7100 |   332K|    14   (0)| 00:00:01 |       |       |   NP | R->S |
    |  19 |       REMOTE                          | HT_BUS                 |     3 |   114 |     3   (0)| 00:00:01 |       |       |   NP | R->S |
    |  20 |      VIEW                             | VW_SQ_4                     |     2 |  8048 |    21  (20)| 00:00:01 |       |       |        |      |
    |  21 |       REMOTE                          |                             |       |       |            |          |       |       |   NP | R->S |
    |  22 |     PARTITION RANGE ITERATOR          |                             |     2 |   786 |     3   (0)| 00:00:01 |   KEY |   KEY |        |      |
    |  23 |      TABLE ACCESS BY LOCAL INDEX ROWID| NP_HT_REC        |     2 |   786 |     3   (0)| 00:00:01 |   KEY |   KEY |        |      |
    |* 24 |       INDEX RANGE SCAN                | NP_HT_REC_IDX_UK |     2 |       |     1   (0)| 00:00:01 |   KEY |   KEY |        |      |
    Predicate Information (identified by operation id):
       4 - access("HB"."CHANGE_DATE"="VW_COL_1" AND "TUB"."BUNDLE_ID"="BUNDLE_ID")
           filter("ROWID"=ROWID)
       5 - access("TUB"."BUNDLE_ID"="HB"."BUNDLE_ID")
           filter("TUB"."DATE_CHANGE">="HB"."CHANGE_DATE")
       6 - access("HR"."USER_ID"="TUB"."USER_ID" AND "TUB"."DATE_CHANGE"="VW_COL_1")
           filter("HR"."CHANGE_DATE">="TUB"."DATE_CHANGE")
       8 - access("HR"."USER_ID"="USER_ID")
           filter("ROWID"=ROWID)
      15 - access(INTERNAL_FUNCTION("HR"."CHANGE_DATE")>=INTERNAL_FUNCTION("TUB"."DATE_CHANGE"))
           filter(INTERNAL_FUNCTION("HR"."CHANGE_DATE")>=INTERNAL_FUNCTION("TUB"."DATE_CHANGE"))
      24 - access("RES"."CHANGE_ID"(+)=TO_NUMBER(TO_CHAR("HR"."CHANGE_ID")) AND "RES"."REC_ID"(+)=TO_NUMBER(TO_CHAR("HR"."REC_ID")) AND
                  "RES"."SCHEDULE_ID"(+)=TO_NUMBER(TO_CHAR("HR"."SCHEDULE_ID")) AND "RES"."USER_ID"(+)=TO_NUMBER(TO_CHAR("HR"."USER_ID")) AND
                  "RES"."CHANGE_DATE"(+)=TO_DATE(INTERNAL_FUNCTION("HR"."CHANGE_DATE"),'dd.mm.yyyy hh24:mi:ss'))

    Have tried hint /*+NO_QUERY_TRANSFORMATION*/ and it is working fine now = 2seconds for merge :) Have no idea why is that, but it works
    thanks
    d.

  • Return codes using rsh (remote shell) on Solaris

    I am executing a Unix script which does a remote shell call (via rsh) to another script on a remote machine (I am actually executing this from a Java app). The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
    If I do the following in the rsh script:
    rsh -l resdev morph "/dev/bin/remote_script"
    rc=$?
    echo "$rc\n"
    then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script? I need to ensure that remote_script executed successfully.
    Jan Miller
    [email protected]
    202-237-9584

    Hi,
    If you have control over the remote script then put as the last line :-
    echo "Run OK" >&2
    On calling Script (or Java Process):
    rsh -l resdev morph "/dev/bin/remote_script" 2> rc.file
    (or pipe stderr to your java process call).
    Check the stderr data='Run OK' to see if successful.

  • Problem with running Bash shell scripts

    I am unable to run Bash shell scripts on the UNIX Terminal application.
    This is the transcript from the Terminal application.
    Zhi-Yang-Ongs-Computer:/Applications/MetaPost/metapost-1.102 zhiyangong$ ./test1.sh
    dyld: Symbol not found: _BC
    Referenced from: /usr/local/bin/bash
    Expected in: /usr/lib/libSystem.B.dylib
    Trace/BPT trap
    Zhi-Yang-Ongs-Computer:/Applications/MetaPost/metapost-1.102 zhiyangong$
    Is this a problem with the the default installation of the Bash shell? Can I install the Bash shell on my own? If so, how can I do that?
    Also, how can I get the dynamic linker, dyld, to refer to the symbol "_BC"? What does this symbol "_BC" refer to?

    This was in your posted output:
    /usr/local/bin/bash
    You are NOT running the default bash, you are trying to run a private copy.
    The default Mac OS X bash is located at
    /bin/bash
    Try the following:
    /bin/bash ./test1.sh
    Does that work?
    What is the first line of your script? Is it:
    #!/bin/bash
    Or maybe
    #!/usr/bin/env bash
    /usr/bin/env would find the first bash in PATH . I find this most useful for finding perl on different systems, but sh, ksh, bash, zsh, csh, tcsh are all generally found in /bin so I do not bother using /usr/bin/env
    And if you have
    #!/usr/local/bin/bash
    Then the person that wrote test1.sh choose to use something besides the default bash
    Or maybe this script was transferred from some system where you needed to put your own copy of bash in /usr/local/bin because the vendor does not distribute bash
    Then again, you have not showed us what is inside your script, so it is possible something in the script called something else which invoked the /usr/local/bin/bash
    If that is the case, then you might try:
    /bin/bash -x ./test1.sh
    which should show you the commands executed before it died.

  • AirPort Express (Problems with multiple remote speakers

    I've been so far successfully using several AirPort Express base stations to stream music from Itunes to differant rooms in my house. A week ago I suddenly started getting an error message ("Unknown Error -3256) when attempting to stream to multiple rooms. Anyone else having this problem all of a sudden? I've gone thru the configuration for Airport and each base station and everthing seems to be in order.... Any ideas... Anyone? thanks

    A lot of people including myself have been having problems with the airport. We think it's the AirPort update or the security update that is causing problems. If you're experiencing problems or slow downs with your internet then that's also part of the update. Wait till the next update or we find a workaround to this problem.

  • Problem with JMX Remote Port - JBoss & Apache on same machine

    Hi,
    I have a server which hosts Apache that uses mod_jk to pass requests to three Tomcat instances. Apache listens to port 80.
    I want to install a different application on the same machine that runs on JBoss. Foreseeing the problem with port numbers, I got a different IP address (Let's say IP2, and original IP for Apache is IP1) on the same machine to run JBoss application. I changed HTTP Connector configuration in server.xml to add "address=IP1:8080" for Tomcat, "address=IP2:8080" for JBoss. I also modified Apache Listen directive in httpd.conf from "Listen 80" to "Listen IP1:80".
    Now when I try to start JBoss server by running run.bat, I get below error.
    Can any one please suggest how can I resolve this port conflict? Is there even a way to resolve it? As JAVA_HOME can point to a single location and both JBoss & Apache use it?
    Thanks.
    ===============================================================================
      JBoss Bootstrap Environment
      JBOSS_HOME: C:\jboss
      JAVA: C:\Java\jdk1.6.0_01\bin\java
      JAVA_OPTS: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=
    9004 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.aut
    henticate=false  -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.
    client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
      CLASSPATH: C:\Java\jdk1.6.0_01\lib\tools.jar;E:\jboss\bin\run.jar
    ===============================================================================
    Error: Exception thrown by the agent : java.rmi.server.ExportException: Port alr
    eady in use: 9004; nested exception is:
            java.net.BindException: Address already in use: JVM_Bind
    Press any key to continue . . .

    What's running on JMX port without the Jboss running ?
    Seems that u have something it.
    Btw, try to discover how to bind JMX of portal to IP2, not to IP1 or to global Ip.

  • Problem with e71 remote unlock

    Hi,
    I tried to use remote lock on my nokia e71 and it worked perfectly, but i restarted my phone , and now i can't use my sim card ( it says "Sim card not valid" ).
    The phone is network unlocked , i used my sim until now , and it doesn't work anymore.
    I need help , please answer me soon.
                                                       Thanks.

    Sim card not valid... when starting the phone?
    I would try to move the sim-card... i would think about contact problems.
    Never had that.... i did test remote lock and it worked perfectly.... so if it is not a contact-problem i do not know....

  • N80IE Problem with Nokia Remote Control Headset AD...

    Guys,do you have this AD-41 Remote Control Headphone,found in N73 Music Edition Phones,on your N80? My problem is that, I cant remotely play a song by simply pressing the PLAY Button on it... But before I bought this headset for my N80 I check first the Nokia web site, its says that it is COMPATIBLE... Is there something missing? Like, do I need to install a certain app so that it would work? Or, Its just like, I can't do it in N80?

    Hi, Ryan. Look, I have now an N73; but before I had an N80 and guess what: I had the same problem as you. I sent an e-mail to Nokia, and what did they say in the e-mail they sent back? "The compatibility between your device and your hands-free is PARTIAL, sir.". What the **bleep**?!!... Yes, it's not fully compatible. You don't need any software or setup in the phone... You (and I) need light the Nokia's offices on fire...

  • Problem with RSH access on 7204-G2

    Hi
    I want to "add" "delete" lines in dynamic access-list by RSH from Linux.
    I can only delete lines from access-list,but when I add lines I receive message:
    "Line has invalid autocommand "access-template 105 test1 host 192.168.3.246 any
    Here my script:
    #!/bin/bash
    rsh -l voip 192.168.55.49 access-template 105 test1 host 192.168.3.246 any
    rsh -l voip 192.168.55.49 clear access-template 105 test1 host 192.168.3.246 any
    Here my config:
    Cisco IOS Software, 7200 Software (C7200P-ADVENTERPRISEK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
    no ip domain lookup
    ip rcmd rcp-enable
    ip rcmd rsh-enable
    ip rcmd remote-host voip 192.168.3.246 rsh enable

    Here some logs:
    From Linux server:
    [root@Scripts]# ./auto_acl.sh
    Line has invalid autocommand "access-template 105 test1 host 192.168.3.246 any"
    [root@Scripts]# ./auto_acl.sh
    Line has invalid autocommand "access-template 105 test1 host 192.168.3.246 any"
    [root@Scripts]# ./auto_acl.sh
    Line has invalid autocommand "access-template 105 test1 host 192.168.3.246 any"
    [root@Scripts]#
    From 7204:
    Nov 22 14:17:28.782: RCMD: [514 <- 192.168.255.247:1023] recv 1022\0
    Nov 22 14:17:28.982: RCMD: [514 <- 192.168.255.247:1023] recv root\0voip\0access-template 105 test1 host 192.168.3.246 any\0
    Nov 22 14:17:28.982: RCMD: [514 -> 192.168.255.247:1023] send
    Nov 22 14:18:04.968: RCMD: [514 <- 192.168.255.247:1023] recv 1022\0
    Nov 22 14:18:05.168: RCMD: [514 <- 192.168.255.247:1023] recv root\0voip\0access-template 105 test1 host 192.168.3.246 any\0
    Nov 22 14:18:05.168: RCMD: [514 -> 192.168.255.247:1023] send
    Nov 22 14:18:10.376: RCMD: [514 <- 192.168.255.247:1023] recv 1022\0
    Nov 22 14:18:10.576: RCMD: [514 <- 192.168.255.247:1023] recv root\0voip\0access-template 105 test1 host 192.168.3.246 any\0
    Nov 22 14:18:10.576: RCMD: [514 -> 192.168.255.247:1023] send
    7204#

  • Problems with rsh

    Hi Friends
    Im facing a typical problem , being new to solaris I want some help on rsh .
    Typically when we had solaris 8 in our network when we gave rsh Hostname we used to login without being prompted for password , now we have migrated to solaris 10 and when I do a rsh Hostname , we are prompted for password , due to this Im having to change all my scripts to expect scripts .
    Im having NIS and client systems .and im trying to rsh as root from one system to another .
    Please advice .
    Thank you

    im behind firewall , and this im enabling only for the local systems which connect thru proxy .is there alternate way of doing it .
    the function im looking in to is to run scripts on multiple systems without intervention .
    eg - I have to run a script on all the system in the network so I write a script and place in one common location like /net/hostname/share , i create a database file of the hosts in the network and using a loop i execute the script on all the system using rsh .
    is there any alternate method for achieving the same .
    I Tried expect script its tooo time consuming .
    Thanks in advance
    Message was edited by:
    srivab

  • Problem with making remote toppics when linking with external chm

    Hi to everybody,
    i m novice to robohelp html when i am creating chm files from
    my exsisting project that is a robohelp word project which take
    input doc file in Robohelp word and create .hpj poject and then i
    open this .hpj project into robo help Html to create chm file .
    when i m opening this project into robohelp html it is making .xpj
    project from the hpj project .
    but at this time poject has some links with external chm but
    when i m making hyper link with external chm using Remote toppic
    option this option i couldn't unable to found any where in robohelp
    html plz anyone can know help me out from this
    probelm....................plz...................i need help
    ,,,,,,,,,,,,,,,,,,,if anyone know how to remote toppic occur in
    such situation plz let me know,......
    Thx
    Rgard's

    Hi Ruziyo and welcome to the RH forums.
    If you are opening up your project via the XPJ file in
    RoboHelp HTML the remote topic should be able to be found by:
    - Highlighting what is to be hyperlinked.
    - Clicking the Insert > Hyperlink menu item (or use the
    toolbar icon or Cntl + K).
    - Click on the arrow to the right of the "Link To" field.
    - Select the Remote Topic option.
    - Select the CHM file that contains the topic to which the
    hyperlink is linked to.
    - Select the required topic.
    You will be asked to copy the CHM into your project
    directory. Hope this answers your question. If not, please do come
    back.

Maybe you are looking for

  • Problem connecting two trunks to sip provider using same CUBE

    We need to connect two SIP trunks from service provider to Cisco CUCM 7.1 using CUBE "Cisco 2821", SP using the following configuration: First SIP PSTN Link Configuration(In-Out DID/DOD 218 7700 – 218 7799) Customer IP Address =   10.196.191.158/30 S

  • Os x is falsely reporting a logged in user on shutdown/restart

    Ever since upgrading my Mac mini from OS X 10.9 Server to 10.10 Server I have a strange error: As soon as I log in into a local user then try to reboot/shutdown, OS X will report that another user is currently logged in and I need to enter admin cred

  • Adding itune purchased movie clip to keynote preso

    i think i am reaching for the stars, but i have a need to take about 3 minutes of a movie clip that i purchased from itunes and add to slideshow. is there a product that does that?

  • Adobe Acrobat 11 pro includes form central?

    Hi, I am buying adobe acrobat 11pro, and I think it includes form central templates, if I wanna create conditional based form which I think PDF doesnt support, and I dont want to embed the form into website, so what are my options. 1. I want to creat

  • IW41 - Storage Location Control (User Exit)

    Hi, While I'm trying to use function Goods Movement in PM order confirmation, I only want to consume ingredients from one storage location. Is there any user exit for this control? Thank & Regards, Begum