<?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: ilo redfish in ProLiant Servers (ML,DL,SL)</title>
    <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7116593#M173455</link>
    <description>&lt;P&gt;I figured out that sending:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --insecure --header "X-Auth-Token: ${iLOAuth}" --request GET ${iLOSSO}/redfish/v1/Managers/1/snmpservice | jq -r '.SNMPv1Enabled'&lt;/LI-CODE&gt;&lt;P&gt;gets me the value true.&amp;nbsp; Now, I just need to figure out how to set it to false?&amp;nbsp; I tried running the above adding "/SNMPv1Enabled" to the end of the GET, but get back "ResourceMissingAtURI.&amp;nbsp; My hope was that if that worked, I could just change the GET to a PUT and add a "false" as data.&amp;nbsp; Any ideas?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 10:16:39 GMT</pubDate>
    <dc:creator>BradV</dc:creator>
    <dc:date>2021-01-08T10:16:39Z</dc:date>
    <item>
      <title>ilo redfish</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7116488#M173444</link>
      <description>&lt;P&gt;I'm trying to find in the iLO Redfish documentation how to disable snmp v1, but not having any luck.&amp;nbsp; Does anyone know if this is possible?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 17:19:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7116488#M173444</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2021-01-07T17:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: ilo redfish</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7116593#M173455</link>
      <description>&lt;P&gt;I figured out that sending:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --insecure --header "X-Auth-Token: ${iLOAuth}" --request GET ${iLOSSO}/redfish/v1/Managers/1/snmpservice | jq -r '.SNMPv1Enabled'&lt;/LI-CODE&gt;&lt;P&gt;gets me the value true.&amp;nbsp; Now, I just need to figure out how to set it to false?&amp;nbsp; I tried running the above adding "/SNMPv1Enabled" to the end of the GET, but get back "ResourceMissingAtURI.&amp;nbsp; My hope was that if that worked, I could just change the GET to a PUT and add a "false" as data.&amp;nbsp; Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 10:16:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7116593#M173455</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2021-01-08T10:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: ilo redfish</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7116662#M173461</link>
      <description>&lt;P&gt;For OneView, the only way to disable SNMPv1 is to put it into FIPS or CNSA mode.&amp;nbsp; Keep in mind that once you do, any legacy iLO or other resource OneView requires SNMP to manage (i.e. external SAN manager) is no longer be manageable unless you configure SNMPv3 with it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/#hpeilosnmpservice-v2_2_0-hpeilosnmpservice" target="_blank" rel="noopener"&gt;This&lt;/A&gt; is the current iLO Redfish documentation.&amp;nbsp; I don't see a method to changing the SNMPv1 status of an iLO4 or iLO5 device.&amp;nbsp; I'll reach out to some iLO engineers and find out the answer.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 23:28:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7116662#M173461</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2021-01-08T23:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: ilo redfish</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7116749#M173463</link>
      <description>&lt;P&gt;Thanks Chris.&amp;nbsp; I guess at the very least if I change the snmp v1 community name to some random string, then at least we can say that their ability to discover what type of device they are attacking is severly hampered?&amp;nbsp; I'll look into how to change the community string via the oneview API on Monday.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jan 2021 13:10:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7116749#M173463</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2021-01-09T13:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: ilo redfish</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7122775#M173843</link>
      <description>&lt;P&gt;Sorry, took me a little while to get back to this.&amp;nbsp; Found a way to return the current community string, but it is a read only value.&amp;nbsp; Does not appear to be a method to set the SNMP v1 community string?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --insecure --header "X-Auth-Token: ${iLOAuth}" --request GET ${iLOSSO}/redfish/v1/Managers/1/snmpservice | jq -r '.ReadCommunities'&lt;/LI-CODE&gt;&lt;P&gt;Gets an array with the currently set community strings.&amp;nbsp; We have hundreds of DL380 and 560 servers.&amp;nbsp; I'd like a scripted way to set the community string either through the iLO API, or OneView API.&amp;nbsp; Anyone know if it is possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 10:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7122775#M173843</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2021-02-25T10:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: ilo redfish</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7124466#M173943</link>
      <description>&lt;P&gt;Sorry for the late reply.&amp;nbsp; &lt;A href="https://github.com/HewlettPackard/python-ilorest-library/blob/master/examples/Redfish/set_snmp_alert.py" target="_blank" rel="noopener"&gt;Here is a sample script&lt;/A&gt; we developed you can use to change the SNMP communities.&amp;nbsp; It is a Python script, but you should be able to pick apart the API calls to make it a BASH shell script with cURL.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 19:05:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7124466#M173943</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2021-03-08T19:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: ilo redfish</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7124600#M173952</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;Figured it out!&amp;nbsp; &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;First, I get OneView session credentials then extract a list of all current hardware.&amp;nbsp; Then run:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;echo '{"ReadCommunities": ["jlsf9879j#(*UjOUEO8(&amp;amp;(#(","",""]}' | jq -c '.' &amp;gt; snmp-communities
HARDW=extracted-hardware-list
for SERVER in server{1..100)-ilo ; do
   UUID=$(jq -r '.members[] | select(.name="'${SERVER}'") | "\(.uuid)"' ${HARDW})
   read iLOSSO iLOAuth &amp;lt;&amp;lt;&amp;lt; $(curl --insecure --header "X-API-Version: ${currentVersion}" \
      --header "auth: ${sessionID}" \
      --request GET ${OneView}/rest/server-hardware/${UUID}/remoteConsoleUrl | \
      jq -r '.remoteConsoleUrl' | sed -e 's|hplocons|https|' -e 's|addr=||' \
      -e 's|^\(.*\)&amp;amp;sessionkey=\(.*\)$|\1 \2|')
   curl --insecure \
      --header "X-Auth-Token: ${iLOAuth}" \
      --header "Content-Type: application/json" \
      --location --include --data "@snmp-communities" \
      --request PATCH ${iLOSSO}/redfish/v1/Managers/1/snmpservice
done&lt;/LI-CODE&gt;&lt;P&gt;I was able to get several hundred servers done in a few minutes!&amp;nbsp; &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 13:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7124600#M173952</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2021-03-09T13:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: ilo redfish</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7166080#M177903</link>
      <description>&lt;P&gt;Note: The previous answer just changed the snmp v1 community string to something other than public.&amp;nbsp; I have since figured out how to just disable snmp v1.&amp;nbsp; Run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;HARDW=extracted-hardware-list
for SERVER in server{1..100)-ilo ; do
   UUID=$(jq -r '.members[] | select(.name="'${SERVER}'") | "\(.uuid)"' ${HARDW})
   read iLOSSO iLOAuth &amp;lt;&amp;lt;&amp;lt; $(curl --insecure --header "X-API-Version: ${currentVersion}" \
      --header "auth: ${sessionID}" \
      --request GET ${OneView}/rest/server-hardware/${UUID}/remoteConsoleUrl | \
      jq -r '.remoteConsoleUrl' | sed -e 's|hplocons|https|' -e 's|addr=||' \
      -e 's|^\(.*\)&amp;amp;sessionkey=\(.*\)$|\1 \2|')
   curl --silent --insecure \
      --header "X-Auth-Token: ${iLOAuth}" \
      --header "Content-Type: application/json" \
      --location --data "@snmp" \
      --request PATCH ${iLOSSO}/redfish/v1/Managers/1/networkprotocol | jq -r '.'
   curl --silent --insecure \
      --header "X-Auth-Token: ${iLOAuth}" \
      --header "Content-Type: application/json" \
      --location --data "@snmpv1" \
      --request PATCH ${iLOSSO}/redfish/v1/Managers/1/SnmpService | jq -r '.'
   curl --silent --insecure \
      --header "X-Auth-Token: ${iLOAuth}" \
      --header "Content-Type: application/json" \
      --location --data "@resetiLO" \
      --request PATCH ${iLOSSO}/redfish/v1/Managers/1/Actions/Manager.Reset | jq -r '.'
done&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 09:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/ilo-redfish/m-p/7166080#M177903</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2022-05-11T09:02:16Z</dc:date>
    </item>
  </channel>
</rss>

