ExtremeCloud IQ- Site Engine & Extreme Management Center

  • 1.  run Expect in Netsight

    Posted 10-28-2015 08:36

    Hi,

    I've tried to follow the below KB article to run Expect on my Netsight 6.3 ...
    https://extremeportal.force.com/ExtrArticleDetail?an=000082621

    The problem is I get the following error if I install the expect package...

    root@netsightvienna.mywlan.at:~$ apt-get install expect
    Reading package lists... 0%
    Reading package lists... 100%
    Reading package lists... Done
    Building dependency tree... 0%
    Building dependency tree... 0%
    Building dependency tree... 50%
    Building dependency tree... 50%
    Building dependency tree
    Reading state information... 0%
    Reading state information... 1%

    Reading state information... Done You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    bind9 : Depends: libbind9-80 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.8 is to be installed
    Depends: libdns81 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.8 is to be installed
    Depends: libisc83 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.8 is to be installed
    Depends: libisccfg82 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.8 is to be installed
    Depends: liblwres80 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.8 is to be installed
    e2fsprogs : PreDepends: e2fslibs (= 1.42-1ubuntu2) but 1.42-1ubuntu2.2 is to be installed
    expect : Depends: tcl8.5 (>= 8.5.0) but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    root@netsightvienna.mywlan.at:~$

    Could someone tell me how to solve that....

    Thanks,
    Ron



  • 2.  RE: run Expect in Netsight

    Posted 10-28-2015 08:44
    This is a generic ubuntu problem, I have faced in my another ubuntu system while installing bind9.
    apt-get clean
    apt-get update
    apt-get -f
    to install dep mods, then start installing packages.
    Refer here : http://ubuntuforums.org/showthread.php?t=1580857


  • 3.  RE: run Expect in Netsight

    Posted 10-28-2015 12:28
    Thanks, now the installation of the Expect package was a success BUT still the script doesn't run...

    root@netsightvienna.mywlan.at:/usr/local/Enterasys_Networks/NetSight/scripts$ ./wlanshut.exp 10.12.0.1 mypassissecret PS4 disable

    -bash: ./wlanshut.exp: /usr/bin/expect^M: bad interpreter: No such file or directory

    root@netsightvienna.mywlan.at:/usr/local/Enterasys_Networks/NetSight/scripts$

    So if there is a simple fix for it I'd appreciate some help...


  • 4.  RE: run Expect in Netsight

    Posted 10-28-2015 12:28
    Check your line breaks... Google sent me here: http://stackoverflow.com/questions/2920416/configure-bin-shm-bad-interpreter
    Unless, of course, you've already done that :)

    Edited with a better link.


  • 5.  RE: run Expect in Netsight

    Posted 10-28-2015 12:28
    Thanks Drew, exactly what I've missed !!!

    Ron