• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

NET-SNMP command syntax to connect to FTP not TFTP !

Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
7 Posts 2 Posters 951 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    adarovsky
    last edited by Apr 29, 2019, 6:41 PM

    I was using successfully snmpset command from NET-SNMP tool set:
    snmpset -v 1 -c community 10.x.x.x. .1.3.6.1.4.1.9.9.96.1.1.1.1.2.666 i 1 [1 stands for FTP protocol, 2 - for FTP]
    snmpset -v 1 -c community 10.x.x.x. .1.3.6.1.4.1.9.9.96.1.1.1.1.3.666 i 4
    snmpset -v 1 -c community 10.x.x.x. .1.3.6.1.4.1.9.9.96.1.1.1.1.4.666 i 1
    snmpset -v 1 -c community 10.x.x.x. .1.3.6.1.4.1.9.9.96.1.1.1.1.5.666 i a [and here is a tricky one!!!
    for TFTP server here should be just an IP address; however, for FTP transfer I need to supply user:password@IP/path.statement. What is the correct syntax for this? Whatever combination I tried it did not work.

    I would greatly appreciate any input on this problem. All the literature I searched so far provides examples for TFTP transfers only! None with FTP ! Yet, NET-SNMP tool clearly gives the options for TFTP, FTP, SCP, etc...

    Thank you in advance.

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Apr 29, 2019, 6:44 PM

      @adarovsky said in NET-SNMP command syntax to connect to FTP not TFTP !:

      snmpset

      where did you get the idea that this would work pfsense?

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • A
        adarovsky
        last edited by Apr 29, 2019, 6:48 PM

        Here is the instruction from NET-SNMP:

        1.3.6.1.4.1.9.9.96.1.1.1.1.2.336 i 1

        ccCopyProtocol: The protocol file transfer protocol that should be used to copy the configuration file over the network. If the config file transfer is to occur locally on the SNMP agent, the method of transfer is left up to the implementation, and is not restricted to the protocols below. The object can be:
        1.tftp
        2.ftp
        3.rcp
        4.scp
        5.sftp

        It works for me when i use option 1 (tftp). Why, then, there are 4 more options, if I couln't use them?!

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by johnpoz Apr 29, 2019, 6:56 PM Apr 29, 2019, 6:52 PM

          And where does pfsense documentation state that is working on pfsense?

          you can do that to cisco, but like cisco doesn't have ftp enabled as option, etc.

          So not sure why you think you can do this with pfsense..

          That package to add net-smnp is pretty new, pretty sure that @jimp baby..

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          1 Reply Last reply Reply Quote 0
          • A
            adarovsky
            last edited by Apr 29, 2019, 6:56 PM

            It doesn't. But it also does not make an implicit statement that it works only with option 1. They just provide the list of options for selection.
            Probably I read it wrong.
            Bad luck for me, then...

            thanks

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Apr 29, 2019, 6:57 PM

              I flagged jimp to this thread... He is the developer on that if not mistaken.. There is not really a lot of info on it that I have seen.

              I just don't think what your looking to do is really used anywhere to be honest..

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • A
                adarovsky
                last edited by Apr 29, 2019, 7:01 PM

                the situation is changing in the field...
                IOS images grows, config file grows - TFTP's getting too slow to catch up...Besides, security is getting into the picture, so SFTP is on the next run...

                thanks

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received