Page 1 of 1

SNMP to file delete

Posted: 25 Jun 2015 22:34
by mpmserrao
Hi all, i have a question. Do you think that is possible to delete the bof primary config file using SNNP? Tais feature is importante in a remote SR 7750 lab, to provide always the default configuration to users that starts the tasks. For the reboot we find in timetra chassis Mib a oid...
Thx in advance.

Re: SNMP to file delete

Posted: 26 Jun 2015 04:43
by mivens
Not tried it but since the SNMP object for the primary configuration file location is listed in the MIB as being read-write, in theory you should be able to change such entries in the BOF file with an snmpset.

Code: Select all

$snmptranslate -Td -IR sbiPrimaryConfigFile

TIMETRA-SYSTEM-MIB::sbiPrimaryConfigFile
sbiPrimaryConfigFile OBJECT-TYPE
  -- FROM       TIMETRA-SYSTEM-MIB
  -- TEXTUAL CONVENTION TmnxDisplayStringURL
  SYNTAX        OCTET STRING (0..180) 
  MAX-ACCESS    read-write
  STATUS        current
  DESCRIPTION   "The value of sbiPrimaryConfigFile specifies the location and
         name of the primary configuration file."