The Answer is << A >>>
Update the MD5 checksum of the POAP script as shown using shell commands
f=poap_nexus_script.py ; cat $f | sed '/^#md5sum/d' > $f.md5 ; sed -i "s/^#md5sum=.*/#md5sum=\"$(md5sum $f.md5 | sed 's/ .*//')\"/" $f
In a Cisco Nexus 9000 Series switch, during the POAP (Power-On Auto-Provisioning) process, the switch uses an MD5 checksum to verify the integrity of the configuration script that it downloads from the TFTP server. The MD5 checksum ensures that the script has not been corrupted or tampered with during the download.
The specific MD5SUM mentioned (d41d8cd98f00b20449800998ecf8427e) would need to be added to the POAP process to verify the integrity of the script file.
Agreeing to the fact the answer is md5sum, the question that I have is, is that used to check the integrity of the script file or the python code?
Essentially, we want to make sure that the script file is not tampered with and that we are using the validated script file.
If the file's integrity is maintained, the code's integrity is also maintained.
So why not go with answer (B)?
https://github.com/datacenter/nexus9000/blob/master/nx-os/poap/poap.py
If any changes are made to this script, please run the below command
in bash shell to update the above md5sum. This is used for integrity check.
f=poap_nexus_script.py ; cat $f | sed '/^#md5sum/d' > $f.md5 ; sed -i \
"s/^#md5sum=.*/#md5sum=\"$(md5sum $f.md5 | sed 's/ .*//')\"/" $f
the required md5 update procedure refer to file, so the answer is A.
Its B!
"This procedure replaces md5sum in poap_fabric.py with a new value if there was any change in that file."
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_0100.html#:~:text=This%20procedure%20replaces%20md5sum%20in%20poap_fabric.py%20with%20a%20new%20value%20if%20there%20was%20any%20change%20in%20that%20file.
md5sum are made on behalf of configuration files or python script files and stored on the switch as .md5, this file will check the integrity while downloading the configuration or .py file, sometimes i see the number copied in the script as reference but once u add this number to the script u change the script file and because of that also the md5 number so is not valid anymore. I'll go for A, even if the wording is not 100% accurate.
I am leaning towards B...but unsure of syntax.
Every time you make a change to the configuration script, ensure that you recalculate the MD5 checksum by running # f=poap_fabric.py ; cat $f | sed '/^#md5sum/d' > $f.md5 ; sed -i "s/^#md5sum=.*/#md5sum=\"$(md5sum $f.md5 | sed 's/ .*//')\"/" $f using a bash shell.
This procedure replaces md5sum in poap_fabric.py with a new value if there was any change in that file.
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_0100.html
upvoted 2 times
...
...
This section is not available anymore. Please use the main Exam Page.350-601 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Gayan84
Highly Voted 2 years, 2 months agoRollizo
Most Recent 9 months, 4 weeks agoPacketLife
2 years, 5 months agoPacketLife
2 years, 5 months agohcsaba1982
2 years, 4 months agog_kuchima
2 years, 5 months agoC4rlos
2 years, 7 months agoHRNK
2 years, 8 months agoGuyThatTakesDumps
2 years, 9 months agomendieta
3 years, 1 month agomendieta
3 years, 1 month agomendieta
3 years, 1 month agomauchi
3 years, 2 months agocypher9
3 years, 1 month ago