[racktables-users] Re: Cannot import vlan or cdp from a switch

  • From: "Julien BRETON" <julienbreton@xxxxxxx>
  • To: <racktables-users@xxxxxxxxxxxxx>
  • Date: Mon, 11 Apr 2011 07:14:23 +0200

I use version 0.19.3, i even tried with an older version without success.

I've added another switch in the objects :
Properties :
Name: SW-A219
FQDN : @ip.domain.com
HW : Catalyst : 2960-24TC (it's in fact a TC-L but it should'nt be a problem)
SW : Cisco IOS 12.2

IPV4 Tab
OS Interface : Cisco IOS 12.2 (not sure what to put here)
IP : @IP
Type: connected
The others tabs and fields are not set.

My /deviceconfig/switch.secrets.php is like this :

# S-T-A-R-T
@ip.domain.com   telnet   @IP   -   -    user_pass   enable_pass
# S-T-O-P

The rights are set with owner www-data and 0755
The server is Ubuntu server 64bits 10.04

Unfortunately, that doesn't work. Still have code 127

Thanks

-----Message d'origine-----
De : racktables-users-bounce@xxxxxxxxxxxxx 
[mailto:racktables-users-bounce@xxxxxxxxxxxxx] De la part de Denis Ovsienko
Envoyé : dimanche 10 avril 2011 19:18
À : racktables-users@xxxxxxxxxxxxx
Objet : [racktables-users] Re: Cannot import vlan or cdp from a switch


10.04.2011, 12:28, "Julien BRETON" <julienbreton@xxxxxxx>:
> Hi all,
>
> First of all, thanks for your work. This is a very great tool.
>
> I can manage to add object and rack, however, I’m unable to import vlan or 
> cdp. I’ve got the error code :
>
> Device configuration unavailable :
>
> gateway failed with code 127

Code 127 stands for "file not found", which is very strange in this context. Is 
this the latest version?

>
> I configured /gateways/deviceconfig/switch-secrets.php file and also 
> /gateways/switchvlan/cisco.secrets.php (both files have the sames 
> configuration between START and STOP) without success.
>

The right directory is "deviceconfig". "switchvlans" is a legacy helper I 
cannot get rid of.

> I think I’m wrong ine the configuration, so if someone can give me advice on 
> how to configure both files (with examples).
>
> Do I set some specific right on the files ? 0644, 0755 ?
>
> I named my object like this : SW-IDIRECT, then in the secrets files, I 
> created :
>
> SW-IDIRECT telnet IP_ADDRESS  -  -  - ENABLE_PASSWORD -> not working

This is right, once the switch requires no username and no password to get to 
the point, where the user needs to go to enable mode.

> I also tried to replace SW-IDIRECT by the fqdn and IP but, no success.

It is advised to fill in the FQDN attribute and use it in the 
switch-secrets.php in the first column of password line. Also, the "HW type" 
attribute must be set correctly for this code to work.

>
> Any help would be appreciated.
>
> Cheers


-- 
 Denis Ovsienko



Other related posts: