Discussion:
[rancid] Getting h3crancid to work
Kevin Olbrich
2018-02-05 13:56:57 UTC
Permalink
Hi!

I got some HP 5130 switches (rebranded Comware / H3C).
Can someone tell me how I get this to work?

https://sites.google.com/site/jrbinks/code/rancid/h3c

After fixing two path errors (expect path, etc.) I still don't get where I
should add "h3c".
When I had to add plugins like this, I had to edit the types-config and
nothing in rancid-fe.

I am currently on rancid (3.7-1~bpo9+1) - Debian Stretch backports.

Kind regards,
Kevin
Jethro R Binks
2018-02-05 14:01:43 UTC
Permalink
Try this instead;

https://sites.google.com/site/jrbinks/code/rancid/cmwrancid

but I might need to send you updated cmw.pm and cmwlogin if you could test
those and feedback?

h3c module was for rancid 2 really.

Jethro.
Post by Kevin Olbrich
Hi!
I got some HP 5130 switches (rebranded Comware / H3C).
Can someone tell me how I get this to work?
https://sites.google.com/site/jrbinks/code/rancid/h3c
After fixing two path errors (expect path, etc.) I still don't get where I
should add "h3c".
When I had to add plugins like this, I had to edit the types-config and
nothing in rancid-fe.
I am currently on rancid (3.7-1~bpo9+1) - Debian Stretch backports.
Kind regards,
Kevin
. . . . . . . . . . . . . . . . . . . . . . . . .
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.
Kevin Olbrich
2018-02-06 14:26:31 UTC
Permalink
Hi!

Thank you. I think you are right. I am on Debian 9 and I get this error in
rancid logs when I try to collect from one of these switches:

Trying to get all of the configs.
wrong # args: should be "set varName ?newValue?"
while executing
"set do_command 0 set do_script 0"
(file "/usr/lib/rancid/bin/cmwlogin" line 68)


Kind regards
Kevin
Post by Jethro R Binks
Try this instead;
https://sites.google.com/site/jrbinks/code/rancid/cmwrancid
but I might need to send you updated cmw.pm and cmwlogin if you could test
those and feedback?
h3c module was for rancid 2 really.
Jethro.
Post by Kevin Olbrich
Hi!
I got some HP 5130 switches (rebranded Comware / H3C).
Can someone tell me how I get this to work?
https://sites.google.com/site/jrbinks/code/rancid/h3c
After fixing two path errors (expect path, etc.) I still don't get where
I
Post by Kevin Olbrich
should add "h3c".
When I had to add plugins like this, I had to edit the types-config and
nothing in rancid-fe.
I am currently on rancid (3.7-1~bpo9+1) - Debian Stretch backports.
Kind regards,
Kevin
. . . . . . . . . . . . . . . . . . . . . . . . .
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.
Kevin Olbrich
2018-02-23 13:18:34 UTC
Permalink
Hi!

Can you send me the updated file?
My knowledge of perl is very limited.

Thank you very much.


- Kevin
Post by Kevin Olbrich
Hi!
Thank you. I think you are right. I am on Debian 9 and I get this error in
Trying to get all of the configs.
wrong # args: should be "set varName ?newValue?"
while executing
"set do_command 0 set do_script 0"
(file "/usr/lib/rancid/bin/cmwlogin" line 68)
Kind regards
Kevin
Post by Jethro R Binks
Try this instead;
https://sites.google.com/site/jrbinks/code/rancid/cmwrancid
but I might need to send you updated cmw.pm and cmwlogin if you could test
those and feedback?
h3c module was for rancid 2 really.
Jethro.
Post by Kevin Olbrich
Hi!
I got some HP 5130 switches (rebranded Comware / H3C).
Can someone tell me how I get this to work?
https://sites.google.com/site/jrbinks/code/rancid/h3c
After fixing two path errors (expect path, etc.) I still don't get
where I
Post by Kevin Olbrich
should add "h3c".
When I had to add plugins like this, I had to edit the types-config and
nothing in rancid-fe.
I am currently on rancid (3.7-1~bpo9+1) - Debian Stretch backports.
Kind regards,
Kevin
. . . . . . . . . . . . . . . . . . . . . . . . .
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.
Loading...