cisco-ie / tdm

Telemetry Data Mapper to ease data discovery, correlation, and usage with YANG, MIBs, etc.
Apache License 2.0
37 stars 4 forks source link

Downloading MIBs from ftp.cisco.com/pub/mibs/v2 error #66

Closed britonb closed 4 years ago

britonb commented 4 years ago

Hello It seems that ftp.cisco.com/pub/mibs/v2 is no longer available. Do you know any workaround to download MIBs to /data/extract/mib/ ?

Logs below. Regards Nuno

docker logs -f tdm_etl_1 Warning: Your Pipfile requires python_version 3.6, but you are using 3.8.1 (/root/.local/share/v/d/bin/python). $ pipenv --rm and rebuilding the virtual environment may resolve the issue. $ pipenv check will surely fail. INFO:root:Loading configuration. INFO:root:Awaiting DBMS availability. INFO:root:Awaiting DBMS connectivity. INFO:root:Creating database. INFO:root:Creating database schema. INFO:root:Populating static data. INFO:root:Populating MIB data. INFO:root:Downloading MIBs from ftp.cisco.com/pub/mibs/v2 to /data/extract/mib/ Traceback (most recent call last): File "main.py", line 118, in main() File "main.py", line 96, in main populate_snmp(db) File "/data/snmp.py", line 296, in populate_snmp snmppop.download_mibs() File "/data/snmp.py", line 70, in download_mibs ftp.retrlines( File "/usr/local/lib/python3.8/ftplib.py", line 451, in retrlines with self.transfercmd(cmd) as conn, \ File "/usr/local/lib/python3.8/ftplib.py", line 382, in transfercmd return self.ntransfercmd(cmd, rest)[0] File "/usr/local/lib/python3.8/ftplib.py", line 343, in ntransfercmd conn = socket.create_connection((host, port), self.timeout, File "/usr/local/lib/python3.8/socket.py", line 808, in create_connection raise err File "/usr/local/lib/python3.8/socket.py", line 796, in create_connection sock.connect(sa) TimeoutError: [Errno 110] Operation timed out

remingtonc commented 4 years ago

Hi @britonb - are you operating behind a proxy? Might need to set the ftp_proxy environment variable in the docker-compose.yml file.

britonb commented 4 years ago

Hi Remington, I'm not behind a proxy. It seems that the URL isn't working,

Thanks Nuno

Get Outlook for Androidhttps://aka.ms/ghei36


From: Remington Campbell notifications@github.com Sent: Monday, February 10, 2020 7:36:53 PM To: cisco-ie/tdm tdm@noreply.github.com Cc: britonb britonb@msn.com; Mention mention@noreply.github.com Subject: Re: [cisco-ie/tdm] Downloading MIBs from ftp.cisco.com/pub/mibs/v2 error (#66)

Hi @britonbhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbritonb&data=02%7C01%7C%7Cc1e83a0a0daf4523bcf708d7ae6095c2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637169602155895244&sdata=84zjQbzdShWvOcqp2GPihT%2BJJqCGCZ7RsQHK9lqbEMI%3D&reserved=0 - are you operating behind a proxy? Might need to set the ftp_proxy environment variable in the docker-compose.yml file.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcisco-ie%2Ftdm%2Fissues%2F66%3Femail_source%3Dnotifications%26email_token%3DABJ7ABHWIY3VGT6WSWXDZO3RCGUFLA5CNFSM4KSROHYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELJ6KJY%23issuecomment-584312103&data=02%7C01%7C%7Cc1e83a0a0daf4523bcf708d7ae6095c2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637169602155895244&sdata=W%2FQHytqeeMBbZdyQtzmnPgwgtJ5oNgPXc0HevBGCS9U%3D&reserved=0, or unsubscribehttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABJ7ABEL3Y7M6HTGXOG7UJLRCGUFLANCNFSM4KSROHYA&data=02%7C01%7C%7Cc1e83a0a0daf4523bcf708d7ae6095c2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637169602155905252&sdata=SezcUtV5Vh8bSvE0T3%2BeKCBqA8hwJpdex%2FhcjXNSZVM%3D&reserved=0.

remingtonc commented 4 years ago

@britonb Are other external DNS hostnames able to resolve in the container? You might need to debug from within the container - there's a lot that could be wrong, but I can confirm that ftp://ftp.cisco.com is alive and well today externally. It might be important to note that this is FTP traffic in case there is some kind of policy around FTP traffic in your network.

britonb commented 4 years ago

Hi Please close the issue. Now it's working. Regards Nuno