CT-FLASH-MIB DEFINITIONS ::= BEGIN
IMPORTS
NetworkAddress
FROM RFC1155-SMI
OBJECT-TYPE
FROM RFC-1212
DisplayString
FROM RFC1213-MIB
ctFlash
FROM CTRON-MIB-NAMES;
flashStatus OBJECT IDENTIFIER ::= { ctFlash 1 }
flashFile OBJECT IDENTIFIER ::= { ctFlash 2 }
flashCmd OBJECT IDENTIFIER ::= { ctFlash 3 }
flashVolumeStatusTable OBJECT-TYPE
SYNTAX SEQUENCE OF FlashVolumeStatusEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"This table contains status information on each flash volume."
::= { flashStatus 1 }
flashVolumeStatusEntry OBJECT-TYPE
SYNTAX FlashVolumeStatusEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"Information on a particular volume."
INDEX { flashVolume }
::= { flashVolumeStatusTable 1 }
FlashVolumeStatusEntry ::= SEQUENCE {
flashVolume
INTEGER,
flashVolFiles
INTEGER,
flashVolSpace
INTEGER
}
flashVolume OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"Uniquely defines a volume."
::= { flashVolumeStatusEntry 1 }
flashVolFiles OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The flash filing system status contains the number of
files currently in the volume."
::= { flashVolumeStatusEntry 2 }
flashVolSpace OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"This object returns the approximate amount of remaining
storage space, in bytes, in the flash filing system."
::= { flashVolumeStatusEntry 3 }
flashFileTable OBJECT-TYPE
SYNTAX SEQUENCE OF FlashFileEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"Describes each file in a flash file system volume."
::= { flashFile 1 }
flashFileEntry OBJECT-TYPE
SYNTAX FlashFileEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"Describes a particular file."
INDEX { flashVolume, flashFileID }
::= { flashFileTable 1 }
FlashFileEntry ::= SEQUENCE {
flashFileID
INTEGER,
flashFilename
DisplayString,
flashFileVersion
DisplayString,
flashFileType
INTEGER,
flashFileSize
INTEGER
}
flashFileID OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"This object contains a volume-unique file id associated with
each file."
::= { flashFileEntry 1 }
flashFilename OBJECT-TYPE
SYNTAX DisplayString(SIZE (0..16))
ACCESS read-only
STATUS mandatory
DESCRIPTION
"This object contains the filename of the current file."
::= { flashFileEntry 2 }
flashFileVersion OBJECT-TYPE
SYNTAX DisplayString(SIZE (0..8))
ACCESS read-only
STATUS mandatory
DESCRIPTION
"This object contains the file version number of the current
file in the form 'XX.XX.XX', where 'X' is in the range 0-9."
::= { flashFileEntry 3 }
flashFileType OBJECT-TYPE
SYNTAX INTEGER { intelHex(1),
intelHexCompressed(2),
iEEE695(3),
eLF(4),
table(5),
dLL(6),
bOOT(7),
binary(8),
binaryCompressed(9),
taggedData(10),
package(11) }
ACCESS read-only
STATUS mandatory
DESCRIPTION
"This object contains the file type defined for the file."
::= { flashFileEntry 4 }
flashFileSize OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"This object contains the size, in bytes, currently allocated
to the file."
::= { flashFileEntry 5 }
flashCmdPath OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..128))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"Filename requested of the server for a TFTP download
or upload."
::= { flashCmd 1 }
flashCmdNetAddress OBJECT-TYPE
SYNTAX NetworkAddress
ACCESS read-write
STATUS mandatory
DESCRIPTION
"IP address of the TFTP server to use with a flash file
download or upload operation. If an IP address is not
specified, the operation will default to the IP address
associated with the runtime TFTP download."
::= { flashCmd 2 }
flashCmdVolume OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-write
STATUS mandatory
DESCRIPTION
"Flash volume to contain the file created during a
download operation."
::= { flashCmd 3 }
flashCmdOperation OBJECT-TYPE
SYNTAX INTEGER { install(1),
download(2),
upload(3),
cleanup(4),
delete(5),
none(6) }
ACCESS read-write
STATUS mandatory
DESCRIPTION
"Operation to perform on the specified flash file.
Download and upload operations require that the network.
pathname, filename, version, type, and volume be specified.
Cleanup does not require any additional information."
::= { flashCmd 4 }
flashCmdStatus OBJECT-TYPE
SYNTAX INTEGER { idle(1),
other(2), flashVerifyServer(3),
flashCleanup(4), downLoadActive(5),
upLoadActive(6),
completeError(7) }
ACCESS read-only
STATUS mandatory
DESCRIPTION
"Status of the download or upload operation. The idle(1)
status indicates no operation is in progress. The
downLoadActive(3) or upLoadActive(4) indicate a file
transfer in progress. The completeError(5) status indicates
that a file transfer was started but an error was detected."
::= { flashCmd 5 }
flashCmdError OBJECT-TYPE
SYNTAX INTEGER { oK(1), deleteFailed(2), fileSystem(3), tFTPerror(4), corruptFile(5), dupFlashName(6), noFlashFile(7), flashAlloc(8), maxFiles(9), invalidName(10), protocolErr(11), serverLost(12), noNetFile(13), noNetAccess(14), netDiskFull(15), dupNetFile(16), parseError(17), invalidType(18), invalidCmd(19), invalidModId(20), noServerIP(21), socketError(22), blockSequence(23),bufferError(24)} ACCESS read-only
STATUS mandatory
DESCRIPTION
"If the value of flashCmdStatus is completeError(5), then
this object describes the nature of the error."
::= { flashCmd 6 }
flashCmdFile OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..16))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"Flash filename to perform the specified operation."
::= { flashCmd 7 }
flashCmdVersion OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..8))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"Flash file version to perform the specified operation
in the form 'XX.XX.XX' where 'X' is in the range 0-9."
::= { flashCmd 8 }
flashCmdType OBJECT-TYPE
SYNTAX INTEGER { intelHex(1),
intelHexCompressed(2),
iEEE695(3),
eLF(4),
table(5),
dLL(6),
bOOT(7),
binary(8),
binaryCompressed(9),
taggedData(10),
package(11) }
ACCESS read-write
STATUS mandatory
DESCRIPTION
"File type to specify with a flash file created during
a download operation."
::= { flashCmd 9 }
flashCmdSize OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-write
STATUS mandatory
DESCRIPTION
"Size of the download file. This value allows the flash
filing system to initialize an appropriate amount of
flash memory prior to the TFTP transfer, preventing a
time-out condition during a transfer."
::= { flashCmd 10 }
flashBlockCount OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"Current TFTP block count of an active session. If no
TFTP transfer is in progress, zero is returned."
::= { flashCmd 11}
END