<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using SNMP to backup configuration on an RFGW-1. &amp;quot;Illegal values&amp;quot; when setting OIDs. in Network Management</title>
    <link>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3830964#M128200</link>
    <description>&lt;P&gt;...Looking online I came across this file, "RFGW_1-MIBS-06_04_07.zip" located at &lt;A href="https://software.cisco.com/download/home/281229746/type/284625276/release/06.04.07" target="_self"&gt;https://software.cisco.com/download/home/281229746/type/284625276/release/06.04.07&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this file I found the following text:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;REVISION "200908191500Z"&lt;BR /&gt;DESCRIPTION&lt;BR /&gt;"Modified description for rfgw1TrapCommunityString,&lt;BR /&gt;rfgw1FileMgmtUsername, rfgw1FileMgmtPassword,rfgw1FileMgmtFilePath,&lt;BR /&gt;rfgw1FileMgmtConfigUsername, rfgw1FileMgmtConfigPassword,&lt;BR /&gt;rfgw1FileMgmtConfigFilePath, rfgw1FileMgmtFileName,&lt;BR /&gt;rfgw1FileMgmtConfigFileName."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&lt;EM&gt;edit&lt;/EM&gt;] Using a MIB browser I was able to verify that I am using the correct OIDs... and that there is a second set of OIDs that could also be used - neither seem to work though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 22:27:05 GMT</pubDate>
    <dc:creator>Calab</dc:creator>
    <dc:date>2019-04-02T22:27:05Z</dc:date>
    <item>
      <title>Using SNMP to backup configuration on an RFGW-1. "Illegal values" when setting OIDs.</title>
      <link>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3830351#M128181</link>
      <description>&lt;P&gt;I am trying to automate a backup solution for the Cisco RFGW-1 devices that we currently have in our network using SNMP from a Python script. My issue is that whenever I set a value for an OID I end up with an "&lt;STRONG&gt;illegal value&lt;/STRONG&gt;" entry in the RFGW-1 logs. I believe that these OIDs were working in an older perl script that used to be part of a larger backup solution we used, so I'm pretty sure that they are valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either the values I am using are getting mangled someplace, or the wrong OIDs are being used. I tried to look the OIDs up in the Cisco SNMP Object Navigator, but they could not be found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The OIDs I am using can be found below, in the python code snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;# Execute SNMP to backup the running configuration
errorIndication, errorStatus, errorIndex, varBinds = next(
	setCmd(SnmpEngine(),
		   CommunityData(snmpCommunity, mpModel=1),
		   UdpTransportTarget((device,161), timeout=2),
		   ContextData(),
		   ObjectType(ObjectIdentity(".1.3.6.1.4.1.1429.1.12.1.2.20.12.0"), Integer(1)) ,
		   ObjectType(ObjectIdentity(".1.3.6.1.4.1.1429.1.12.1.2.20.13.0"), OctetString(ftpServer)) ,
		   ObjectType(ObjectIdentity(".1.3.6.1.4.1.1429.1.12.1.2.20.14.0"), OctetString(ftpUser)) ,
		   ObjectType(ObjectIdentity(".1.3.6.1.4.1.1429.1.12.1.2.20.15.0"), OctetString(ftpPassword)) ,
		   ObjectType(ObjectIdentity(".1.3.6.1.4.1.1429.1.12.1.2.20.17.0"), OctetString(backupFile)) ,
		   ObjectType(ObjectIdentity(".1.3.6.1.4.1.1429.1.12.1.2.20.16.0"), OctetString("CMTS-Data/{}".format(device))) ,
		   ObjectType(ObjectIdentity(".1.3.6.1.4.1.1429.1.12.1.2.20.1.0"), Integer(8)) )
)&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;The values are pretty simple strings...&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;backuser&lt;/STRONG&gt;" for the ftpUser, "&lt;STRONG&gt;20190401_Config&lt;/STRONG&gt;" for the backupFile, "&lt;STRONG&gt;CMTS-Data/devicename&lt;/STRONG&gt;" for the backup path.&lt;/P&gt;&lt;P&gt;... yet they generate an Illegal value on the RFGW-1 when set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do these values need to be encoded in any way for the RFGW-1 to accept them?&lt;/P&gt;&lt;P&gt;How can I verify my OIDs if they are not found in the Cisco SNMP Object Navigator?&lt;/P&gt;&lt;P&gt;Any idea why the values are not being accepted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[edit] I should add that the configuration backup DOES work if I don't try to specify most of the OIDs values (&lt;EM&gt;see below&lt;/EM&gt;). The RFGW-1 uses its currently configured values instead. Unfortunately, I cannot depend on these being set correctly on all of our devices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;# Execute SNMP to backup the running configuration
errorIndication, errorStatus, errorIndex, varBinds = next(
	setCmd(SnmpEngine(),
		   CommunityData(snmpCommunity, mpModel=1),
		   UdpTransportTarget((device,161), timeout=2),
		   ContextData(),
		   ObjectType(ObjectIdentity(".1.3.6.1.4.1.1429.1.12.1.2.20.1.0"), Integer(8)) )
)&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Apr 2019 05:35:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3830351#M128181</guid>
      <dc:creator>Calab</dc:creator>
      <dc:date>2019-04-02T05:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using SNMP to backup configuration on an RFGW-1. "Illegal values" when setting OIDs.</title>
      <link>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3830384#M128184</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- It's a bit unclear whether this device supports all CISCO standard MIBS , I am a lit worried when I have a look at the link below , look for the strings '&lt;STRONG&gt;MIBS are supported&lt;/STRONG&gt;' ; I it seems rather limited and it doesn't list the &lt;FONT color="#0000FF"&gt;CISCO-COPY-CONFIG-MIB&lt;/FONT&gt; either. Also does your device run a&amp;nbsp; fairly recent &lt;STRONG&gt;software version&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.cisco.com/c/dam/en/us/td/docs/video/OVP/RFGW_1/4039214_A.pdf" target="_blank"&gt;https://www.cisco.com/c/dam/en/us/td/docs/video/OVP/RFGW_1/4039214_A.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 06:21:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3830384#M128184</guid>
      <dc:creator>Mark Elsen</dc:creator>
      <dc:date>2019-04-02T06:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using SNMP to backup configuration on an RFGW-1. "Illegal values" when setting OIDs.</title>
      <link>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3830945#M128199</link>
      <description>&lt;P&gt;The software revision is 06.04.07.&lt;/P&gt;&lt;P&gt;I'm fairly certain that there are OIDs to use to backup the configuration on the RFGW-1 as we used that method before in a perl script that ran on one of our old hosts, which is now decommissioned.&lt;/P&gt;&lt;P&gt;Another reason this might be difficult to verify is that the Enterprise identified by these OIDs (.1.3.6.1.4.1.1429) is Scientific-Atlanta, not Cisco. This is definitely a Cisco device.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 20:31:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3830945#M128199</guid>
      <dc:creator>Calab</dc:creator>
      <dc:date>2019-04-02T20:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using SNMP to backup configuration on an RFGW-1. "Illegal values" when setting OIDs.</title>
      <link>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3830964#M128200</link>
      <description>&lt;P&gt;...Looking online I came across this file, "RFGW_1-MIBS-06_04_07.zip" located at &lt;A href="https://software.cisco.com/download/home/281229746/type/284625276/release/06.04.07" target="_self"&gt;https://software.cisco.com/download/home/281229746/type/284625276/release/06.04.07&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this file I found the following text:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;REVISION "200908191500Z"&lt;BR /&gt;DESCRIPTION&lt;BR /&gt;"Modified description for rfgw1TrapCommunityString,&lt;BR /&gt;rfgw1FileMgmtUsername, rfgw1FileMgmtPassword,rfgw1FileMgmtFilePath,&lt;BR /&gt;rfgw1FileMgmtConfigUsername, rfgw1FileMgmtConfigPassword,&lt;BR /&gt;rfgw1FileMgmtConfigFilePath, rfgw1FileMgmtFileName,&lt;BR /&gt;rfgw1FileMgmtConfigFileName."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&lt;EM&gt;edit&lt;/EM&gt;] Using a MIB browser I was able to verify that I am using the correct OIDs... and that there is a second set of OIDs that could also be used - neither seem to work though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 22:27:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3830964#M128200</guid>
      <dc:creator>Calab</dc:creator>
      <dc:date>2019-04-02T22:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using SNMP to backup configuration on an RFGW-1. "Illegal values" when setting OIDs.</title>
      <link>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3831005#M128201</link>
      <description>&lt;P&gt;... and more trouble...&lt;/P&gt;&lt;P&gt;OID ".1.3.6.1.4.1.1429.1.12.1.2.1.6" appears to be ignored by the RFGW-1 as well. This corresponds to " rfgw1GeneralSaveConfiguration", which SHOULD cause the RFGW-1 to save the running configuration to the startup configuration when the value of 1 is set. According to the device logs, this is not happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point I don't know what I should be doing... I just know that it doesn't work as designed.&lt;/P&gt;&lt;P&gt;[&lt;EM&gt;edit&lt;/EM&gt;] ...fixed this one. Net::SNMP needs to have ".0" appended to the OID for it to work, so now the running configuration is being saved to NVRAM successfully.&lt;/P&gt;&lt;P&gt;Still no luck with the copying of NVRAM config to the FTP server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to clarify...My logs show the following when I copy running config to nvram and then try to backup the nvram configuration to an FTP server:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;02 APR 19 16:08:05.372	Configuration	Error	Auto Save Based on SNMP Set Failed.
02 APR 19 16:08:04.072	SNMP	Error	SNMP TEST failed for rfgw1FileMgmtFileName. Error: Illegal values
02 APR 19 16:08:04.072	SNMP	Error	SNMP TEST failed for  rfgw1FileMgmtFilePath. Error: Illegal values
02 APR 19 16:08:04.072	SNMP	Error	SNMP TEST failed for  rfgw1FileMgmtPassword. Error: Illegal values
02 APR 19 16:08:04.072	SNMP	Error	SNMP TEST failed for  rfgw1FileMgmtUsername. Error: Illegal values
02 APR 19 16:08:01.272	Configuration	Warning	Data base has been saved&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;...and the OIDs I am trying to use are those in my first post &lt;EM&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt; &lt;/EM&gt;the ones found below:&lt;/P&gt;&lt;PRE&gt;.1.3.6.1.4.1.1429.1.12.1.2.20.2.0  - FTP server address type = 1
.1.3.6.1.4.1.1429.1.12.1.2.20.3.0  - FTP server address = 10.0.1.2
.1.3.6.1.4.1.1429.1.12.1.2.20.4.0  - FTP server username = backuser
.1.3.6.1.4.1.1429.1.12.1.2.20.5.0  - FTP server password = &lt;EM&gt;password&lt;/EM&gt;
.1.3.6.1.4.1.1429.1.12.1.2.20.6.0  - File path on FTP server = CMTS-Data/devicename
.1.3.6.1.4.1.1429.1.12.1.2.20.7.0  - File name on FTP server = 20190401_Config.gz
.1.3.6.1.4.1.1429.1.12.1.2.20.1.0  - File management command = 8 , which means execute backup.&lt;/PRE&gt;&lt;P&gt;...at this point I'm hoping someone can tell me that I need to format my values in a specific way, such as adding quotation marks around them, or something similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 23:21:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3831005#M128201</guid>
      <dc:creator>Calab</dc:creator>
      <dc:date>2019-04-02T23:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using SNMP to backup configuration on an RFGW-1. "Illegal values" when setting OIDs.</title>
      <link>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3831143#M128207</link>
      <description>&lt;P&gt;Well... I was able to determine my issue and get my script working... I'm not sure if the issue is with the RFGW-1 or pysnmp.&lt;/P&gt;&lt;P&gt;You cannot set values for multiple OIDs in one snmp set request. I broke my script into a separate set command for each value and now it is working well.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 05:47:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-management/using-snmp-to-backup-configuration-on-an-rfgw-1-quot-illegal/m-p/3831143#M128207</guid>
      <dc:creator>Calab</dc:creator>
      <dc:date>2019-04-03T05:47:18Z</dc:date>
    </item>
  </channel>
</rss>

