FTP MIB object handler function
"Rose, Robert P" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Folks,
Has anyone implemented a file transfer (FTP) or (SFTP) MIB handler function? What I need to do is have a MIB client set the FTP server address, source file, dest file, username and password through SETS of MIB objects then get or put a file triggered by the SET of another MIB object?
How do I call the ftp command from my qedTransferAction handler function ? I am using Linux....if anyone has implemented this using SFTP that would be a GREAT help!
Thanks!
Rob
Here are my FTP MIB objects:
- ****************************************************************************************
-- qedFtpMgt - File Transfer Mib elements
-- ****************************************************************************************
qedTransferAction OBJECT-TYPE
SYNTAX INTEGER {
put(1)
get(2)
}
ACCESS read-write
STATUS mandatory
DESCRIPTION
"Set to go(1) to start a transfer."
::= { qedFileTransferMgt 1 }
qedTansferStatus OBJECT-TYPE
SYNTAX INTEGER {
inactive(1),
getting-file(2),
putting-file(3),
file-not-found(4),
server-does-not-respond(5),
invalid-username-password(6),
unknown-error(7),
success(8)
}
ACCESS read-only
STATUS mandatory
DESCRIPTION
"Status of the file transfer."
::= { qedFileTransferMgt 2 }
qedFileType OBJECT-TYPE
SYNTAX INTEGER {
config(1)
}
ACCESS read-only
STATUS mandatory
DESCRIPTION
"Type of file to transfer."
::= { qedFileTransferMgt 3 }
qedSrcFile OBJECT-TYPE
SYNTAX DisplayString (SIZE(0..127))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"The source file name for FTP transfer when a
transfer is next requested via this MIB. This value is set to
the zero length string when no file name has been specified. When
entering a filename do NOT give a path just the file name to be
transfered. The destinantion file is releveant to the source file
in name and locations"
::= { qedFileTransferMgt 4 }
qedDestFile OBJECT-TYPE
SYNTAX DisplayString (SIZE(0..127))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"The destination file name for FTP transfer when a
transfer is next requested via this MIB. This value is set to
the zero length string when no file name has been specified."
::= { qedFileTransferMgt 5 }
qedFileServer OBJECT-TYPE
SYNTAX IpAddress
ACCESS read-write
STATUS mandatory
DESCRIPTION
"The IP address of the TFTP server for transfer
when a download is next requested via this MIB.
This value is set to `0.0.0.0' when no IP address has been
specified."
::= { qedFileTransferMgt 6 }
qedFtpUserName OBJECT-TYPE
SYNTAX DisplayString (SIZE(0..127))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"The username specified for an FTP Transfer."
::= { qedFileTransferMgt 7 }
qedFtpPassword OBJECT-TYPE
SYNTAX DisplayString (SIZE(0..127))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"The password specified for an FTP Transfer."
::= { qedFileTransferMgt 8 }
Robert P Rose
GENERAL DYNAMICS
C4 Systems
400 John Quincy Adams Road, Bldg 80
Taunton, MA 02780
PH: 508-880-4016
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users