plugin for download/upload routers switches configuration

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

ddonohue wrote:i've since, read from somewhere, that your TFTP Server can't be 127.0.0.1, ie Localhost, so now i'm just getting a time out.
It is not my TFTP ... but it is normal !!! Yes because the command is executed by the switch/router so he cannot find localhost !!!!

It seems your TFTP (server) cannot reached the router.
Try this:
- check with an snmp browser if your router can answer.
or
Try this:
- download the script for Cisco, cisco11.sh or cisco12.sh, in http://www.pancho.org/archives/contrib/ (for your IOS version)
- change the values (router,string,server,file)
- execute it.

It is a script of the creator of pancho for testing if your switch/router respond to the snmprequest and download the config file.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

not getting alot of love from this, i'm simply getting a

snmpset: No securityName specified


donohue
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

ddonohue wrote:not getting alot of love from this, i'm simply getting a
snmpset: No securityName specified
Which script did you start ?
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

tried it w/ catalyst and the cisco 12.

donohue
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

ddonohue wrote:tried it w/ catalyst and the cisco 12.
please can you recheck your community / user on both side ...
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

yup, they are correct, just flipped up private, and it's still giving me the same security stuff.

donohue
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

ddonohue wrote:yup, they are correct, just flipped up private, and it's still giving me the same security stuff.
And with a snmpget like :
snmpget -v1 -Cf -c yourcommunity your-router system.sysUpTime system.sysContact.0
(I am not sure on unix)
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

just tryed what you said, i'm still getting no response from host.

donohue


I also tried v1, and still have the same problem., i tried v2 afterwards.

snmpget -v2c -Cf -c community 10.xxx.xxx.2 system.sysUpTime system.sysContact.0
Timeout: No Response from 10.xxx.xxx.2.
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

ddonohue wrote:getting no response from host.
Can you check with a snmp bowser and/or on an another device (pc,workstation,printer,switch) before and retry on your router ?

snmpget -v1 -c yourcommunity your-device .1.3.6.1.2.1.1.1.0
(.1.3.6.1.2.1.1.1.0 is like system.sysDescr.0)

do you have a firewall between both, ...?

Your device must answer to the snmp request first.

PS: I have to go bed, it is very late in this part of the earth.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

pepj wrote:
ddonohue wrote:getting no response from host.
Can you check with a snmp bowser and/or on an another device (pc,workstation,printer,switch) before and retry on your router ?

snmpget -v1 -c yourcommunity your-device .1.3.6.1.2.1.1.1.0
(.1.3.6.1.2.1.1.1.0 is like system.sysDescr.0)

do you have a firewall between both, ...?

Your device must answer to the snmp request first.

PS: I have to go bed, it is very late in this part of the earth.
Yup, works that way.


ddonohue@impreza:~> snmpget -v1 -c community 10.xxx.xxx.2 .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software
IOS (tm) s72033_rp Software (s72033_rp-PK9SV-M), Version 12.2(17d)SXB11, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled T
ddonohue@impreza:~> snmpget -v1 -c community 10.xxx.xxx.3 .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software
IOS (tm) s72033_rp Software (s72033_rp-PK9SV-M), Version 12.2(17d)SXB11, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled T
ddonohue@impreza:~>
Last edited by ddonohue on Tue Jul 18, 2006 7:25 am, edited 1 time in total.
jduchesne
Posts: 30
Joined: Fri Jul 07, 2006 7:50 am

Post by jduchesne »

pepj,

For the secure.cfg it's ok thanks a lot!
I can access to the mange config.
But can you take a look at this?
I use the pancho method as you can see.
When I want to see in unix my file in /usr/local/tftp I see nothing but I see that my log is ok I don't understand.Do you have some explication for this problem? Is it my configuration in cacti that is not good ?

Thank pepj.
Attachments
pb.doc
(161.5 KiB) Downloaded 317 times
jduchesne
Posts: 30
Joined: Fri Jul 07, 2006 7:50 am

Post by jduchesne »

Pepj

An other question where the config of the switches were saved when I made the config in the pb.doc?
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

jduchesne wrote: When I want to see in unix my file in /usr/local/tftp I see nothing but I see that my log is ok I don't understand.Do you have some explication for this problem? Is it my configuration in cacti that is not good ?
As you can read in the explanation of the "path of the data" you should give only the part after the tftproot.
I think in your case it try to put it in /usr/local/tftp/usr/local/tftp

As example here are my paths:
- I download in a path like d:/data/20060714 (the date change each day), my TFTP root is d:/data
- path for configurations files ---> d:/data
- fileformat for the uploaded/downloaded file ---> ::HOST::.::DATE::.cfg
- pre command in pancho ---> If not exist d:\\data\\%y%%m%%d% mkdir d:\\data\\%y%%m%%d% (it is windows for unix it should be if test -d '/data/%y%%m%%d%'; then mkdir /data/%y%%m%%d% fi)
- I have no post command (you need a sleep when you use it because the TFTP is asynchrone)
jduchesne wrote:Pepj
where the config of the switches were saved
It should be under your "path of the configuration's files" parameter. (to notice for cacti these pancho-configuration are only temporary - I let it as check - and they will be created at each start)
In your case "/usr/local/tftp"
In order to see then configuration's file or the logfile of pancho you can open the view where you choose the devices:

PS: to open it: open the configmanager view where all configuration are listed, click on the name of the configuration you want to see. At the top you can see two icons, one to see the created pancho configuration, one for the log file.
(http://forums.cacti.net/viewtopic.php?t=12406, the view configmanager-mactrac.jpg)
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

pepji, any ideas on what i posted above?

donohue
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

ddonohue wrote:pepji, any ideas on what i posted above?

donohue
can you see your pm
It seems to be a snmp rw problem. Try to change first a snmp variable ... see your pm.

PS: In my environement I have also Cisco 6506 and 6509 IOS. It functions well with pancho.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests