Discussion:
[rancid] HP 1920
Andrea Venturoli
2015-06-30 08:52:33 UTC
Permalink
Hello.

I've got a couple of HP 1920 switches I'd like Rancid to connect to.
/usr/local/libexec/rancid/clogin switch-ufficio.xxxxxxx
switch-ufficio.xxxxxxx
spawn telnet switch-ufficio.xxxxxxx
Trying 192.168.110.10...
Connected to switch-ufficio.xxxxxxx.
Escape character is '^]'.
******************************************************************************
* Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
Login authentication
Username:admin
<Switch Ufficio xxxxxxx>enable
^
% Unrecognized command found at '^' position.
<Switch Ufficio xxxxxxx>^C$
I believe the command "enable" has to be substituted with "_cmdline-mode
on", but found no driver implementing this.

Does such a driver exist?
Anyone using this switch (or any similar one)?

bye & Thanks
av.
Jethro R Binks
2015-06-30 09:36:05 UTC
Permalink
I've done some experimental work on this with rancid 3, at the moment it
relies on some changes to core rancid which I need to think through and
feedback to the project, and I haven't looked at it in a while. I know I
won't get a chance to do so for a while yet either unfortunately.

For the record, this is an HP Comware switch, but is one of a set of
models that has a fairly useless limited CLI, unless you enter the secret
command and magic code to enable access to the full CLI, which requires
the special handling.

Jethro.
Post by Andrea Venturoli
Hello.
I've got a couple of HP 1920 switches I'd like Rancid to connect to.
/usr/local/libexec/rancid/clogin switch-ufficio.xxxxxxx
switch-ufficio.xxxxxxx
spawn telnet switch-ufficio.xxxxxxx
Trying 192.168.110.10...
Connected to switch-ufficio.xxxxxxx.
Escape character is '^]'.
******************************************************************************
* Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P.
*
* Without the owner's prior written consent,
*
* no decompiling or reverse-engineering shall be allowed.
*
******************************************************************************
Login authentication
Username:admin
<Switch Ufficio xxxxxxx>enable
^
% Unrecognized command found at '^' position.
<Switch Ufficio xxxxxxx>^C$
I believe the command "enable" has to be substituted with "_cmdline-mode on",
but found no driver implementing this.
Does such a driver exist?
Anyone using this switch (or any similar one)?
bye & Thanks
av.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
. . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks, Network Manager,
Information Services Directorate, University Of Strathclyde, Glasgow, UK

The University of Strathclyde is a charitable body, registered in
Scotland, number SC015263.
Andrea Venturoli
2015-06-30 09:55:31 UTC
Permalink
Post by Jethro R Binks
I've done some experimental work on this with rancid 3, at the moment it
relies on some changes to core rancid which I need to think through and
feedback to the project, and I haven't looked at it in a while. I know I
won't get a chance to do so for a while yet either unfortunately.
Thanks anyway.
Please let me know if you make any step ahead.
Post by Jethro R Binks
For the record, this is an HP Comware switch, but is one of a set of
models that has a fairly useless limited CLI, unless you enter the secret
command and magic code to enable access to the full CLI, which requires
the special handling.
Exactly.
It's supposed to be this way by default, but I read you should be able
to delete the magic code and then get into the full CLI as soon as you
login. I've been unsuccesful on this however.



bye & Thanks
av.
Jethro R Binks
2015-06-30 11:07:35 UTC
Permalink
Post by Andrea Venturoli
Exactly.
It's supposed to be this way by default, but I read you should be able to
delete the magic code and then get into the full CLI as soon as you login.
I've been unsuccesful on this however.
I've never seen that information! Not sure I believe it.

Jethro.


. . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks, Network Manager,
Information Services Directorate, University Of Strathclyde, Glasgow, UK

The University of Strathclyde is a charitable body, registered in
Scotland, number SC015263.

Andrea Venturoli
2015-06-30 09:42:50 UTC
Permalink
Andrea,
/usr/libexec/rancid/./clogin -t 90 -c "show version" IP_ADDRESS
only to see it's working proper
I had to change the command a bit, but I don't think that matters;
$ /usr/local/libexec/rancid/clogin -t 90 -c "show version" switch-ufficio.xxxxxxx
switch-ufficio.xxxxxxx
spawn telnet switch-ufficio.xxxxxxx
Trying 192.168.110.10...
Connected to switch-ufficio.xxxxxxx.
Escape character is '^]'.
******************************************************************************
* Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
Login authentication
Username:admin
<Switch Ufficio xxxxxxx>enable
^
% Unrecognized command found at '^' position.
<Switch Ufficio xxxxxxx>
Please, let me know if you want me to try anything else.

bye & Thanks
av.
Loading...