Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RANCID: Users

path variable with ciscowlc and wlogin

 

 

RANCID users RSS feed   Index | Next | Previous | View Threaded


CDeRemer at caron

Jul 29, 2012, 4:40 AM

Post #1 of 5 (835 views)
Permalink
path variable with ciscowlc and wlogin

Hello all,

I think I'm having a newbie linux user issue. I just downloaded and put the wlogin and ciscowlc/5 scripts into my rancid users's bin directory along with all the other scripts. Can execute wlogin and successfully have it logging into my WLC. I also edited the rancid-fe to add the new device types. However if I try to execute an individual backup run of the wlc I get this output:
rancid [at] CaronRANCI:~/bin$ ./ciscowlc5 -d bs-air-5508-1
executing wlogin -t 90 -c"show udi;show sysinfo;show run-config commands" bs-air-5508-1
sh: wlogin: not found
bs-air-5508-1: missed cmd(s): show sysinfo,show udi,show run-config commands
bs-air-5508-1: missed cmd(s): show sysinfo,show udi,show run-config commands
bs-air-5508-1: End of run not found
bs-air-5508-1: End of run not found
!
rancid [at] CaronRANCI:~/bin$

.... Weird ...

So I run this:
rancid [at] CaronRANCI:~/bin$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
rancid [at] CaronRANCI:~/bin$

I expected that my /~/bin (or full path /home/rancid/bin) would be there, but it's not... however the rest of rancid works just peachy.... Any ideas?


CDeRemer at caron

Jul 30, 2012, 1:05 PM

Post #2 of 5 (801 views)
Permalink
Re: path variable with ciscowlc and wlogin [In reply to]

From: heasley [heas [at] shrubbery]
Sent: Sunday, July 29, 2012 2:10 PM
To: Chris DeRemer
Subject: Re: [rancid] path variable with ciscowlc and wlogin

Sun, Jul 29, 2012 at 11:40:21AM +0000, Chris DeRemer:
> Hello all,
>
> I think I'm having a newbie linux user issue. I just downloaded and put the wlogin and ciscowlc/5 scripts into my rancid users's bin directory along with all the other scripts. Can execute wlogin and successfully have it logging into my WLC. I also edited the rancid-fe to add the new device types. However if I try to execute an individual backup run of the wlc I get this output:
> rancid [at] CaronRANCI:~/bin$ ./ciscowlc5 -d bs-air-5508-1
> executing wlogin -t 90 -c"show udi;show sysinfo;show run-config commands" bs-air-5508-1
> sh: wlogin: not found
> bs-air-5508-1: missed cmd(s): show sysinfo,show udi,show run-config commands
> bs-air-5508-1: missed cmd(s): show sysinfo,show udi,show run-config commands
> bs-air-5508-1: End of run not found
> bs-air-5508-1: End of run not found
> !
> rancid [at] CaronRANCI:~/bin$
>
> .... Weird ...
>
> So I run this:
> rancid [at] CaronRANCI:~/bin$ echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
> rancid [at] CaronRANCI:~/bin$
>
> I expected that my /~/bin (or full path /home/rancid/bin) would be there, but it's not... however the rest of rancid works just peachy.... Any ideas?

is it executable? try running it with the full path.



=============

Heasley,

The files are all 755. If a run with full path i get similar results, see below:

rancid [at] CaronRANCI:/root$ cd ~
rancid [at] CaronRANCI:~$ /home/rancid/bin/ciscowlc5 -d bs-air-5508-1
executing wlogin -t 90 -c"show udi;show sysinfo;show run-config commands" bs-air-5508-1
sh: wlogin: not found
bs-air-5508-1: missed cmd(s): show sysinfo,show udi,show run-config commands
bs-air-5508-1: missed cmd(s): show sysinfo,show udi,show run-config commands
bs-air-5508-1: End of run not found
bs-air-5508-1: End of run not found
!

Cheers,
Chris
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


CDeRemer at caron

Jul 31, 2012, 7:44 AM

Post #3 of 5 (814 views)
Permalink
Re: path variable with ciscowlc and wlogin [In reply to]

From: heasley [heas [at] shrubbery]
Sent: Monday, July 30, 2012 4:24 PM
To: Chris DeRemer
Subject: Re: [rancid] path variable with ciscowlc and wlogin

Mon, Jul 30, 2012 at 08:05:39PM +0000, Chris DeRemer:
> From: heasley [heas [at] shrubbery]
> Sent: Sunday, July 29, 2012 2:10 PM
> To: Chris DeRemer
> Subject: Re: [rancid] path variable with ciscowlc and wlogin
>
> Sun, Jul 29, 2012 at 11:40:21AM +0000, Chris DeRemer:
> > Hello all,
> >
> > I think I'm having a newbie linux user issue. I just downloaded and put the wlogin and ciscowlc/5 scripts into my rancid users's bin directory along with all the other scripts. Can execute wlogin and successfully have it logging into my WLC. I also edited the rancid-fe to add the new device types. However if I try to execute an individual backup run of the wlc I get this output:
> > rancid [at] CaronRANCI:~/bin$ ./ciscowlc5 -d bs-air-5508-1
> > executing wlogin -t 90 -c"show udi;show sysinfo;show run-config commands" bs-air-5508-1
> > sh: wlogin: not found
> > bs-air-5508-1: missed cmd(s): show sysinfo,show udi,show run-config commands
> > bs-air-5508-1: missed cmd(s): show sysinfo,show udi,show run-config commands
> > bs-air-5508-1: End of run not found
> > bs-air-5508-1: End of run not found
> > !
> > rancid [at] CaronRANCI:~/bin$
> >
> > .... Weird ...
> >
> > So I run this:
> > rancid [at] CaronRANCI:~/bin$ echo $PATH
> > /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
> > rancid [at] CaronRANCI:~/bin$
> >
> > I expected that my /~/bin (or full path /home/rancid/bin) would be there, but it's not... however the rest of rancid works just peachy.... Any ideas?
>
> is it executable? try running it with the full path.
>
>
>

Runs fine as full path not otherwise:

rancid [at] CaronRANCI:~$ /home/rancid/bin/wlogin BS-AIR-5508-1
bs-air-5508-1
spawn telnet bs-air-5508-1
Trying 10.57.1.10...
telnet: Unable to connect to remote host: Connection refused
spawn ssh -c 3des -x -l ***** bs-air-5508-1

(Cisco Controller)
User: *******
Password:***********
(Cisco Controller) >
(Cisco Controller) >logout


rancid [at] CaronRANCI:~$ wlogin BS-AIR-5508-1
bash: wlogin: command not found
rancid [at] CaronRANCI:~$
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


me at ale

Jul 31, 2012, 1:16 PM

Post #4 of 5 (802 views)
Permalink
Re: path variable with ciscowlc and wlogin [In reply to]

On 29/07/12 12:40, Chris DeRemer wrote:
>
> rancid [at] CaronRANCI:~/bin$ echo $PATH
>
> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
>
> I expected that my /~/bin (or full path /home/rancid/bin) would be
> there, but it's not... however the rest of rancid works just
> peachy.... Any ideas?
>
>

You either need to move wlogin to somewhere in $PATH, or, preferably,
amend $PATH to include wherever wlogin is for the rancid user.

alexd


rancid at ale

Jul 31, 2012, 1:37 PM

Post #5 of 5 (802 views)
Permalink
Re: path variable with ciscowlc and wlogin [In reply to]

On 29/07/12 12:40, Chris DeRemer wrote:
>
> rancid [at] CaronRANCI:~/bin$ echo $PATH
>
> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
>
> I expected that my /~/bin (or full path /home/rancid/bin) would be
> there, but it's not... however the rest of rancid works just
> peachy.... Any ideas?
>
>

You either need to move wlogin to somewhere in $PATH, or, preferably,
amend $PATH to include wherever wlogin is for the rancid user.

alexd

RANCID users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.