Software Authentication Manager Commands on
Cisco IOS XR Software
This chapter describes the Cisco IOS XR software commands used to configure Software Authentication
Manager (SAM).
For detailed information about SAM concepts, configuration tasks, and examples, see the Configuring Software Authentication Manager on Cisco IOS XR Software configuration module.
Cisco IOS XR System Security Command Reference
SR-207
sam add certificate
sam add certificate
To add a new certificate to the certificate table, use the sam add certificate command in EXEC mode.
sam add certificate filepathlocation {trust | untrust}
Software Authentication Manager Commands on Cisco IOSXR Software
Syntax Description
DefaultsNo default behavior or values
Command ModesEXEC
Command History
filepath Absolute path to the source location of the certificate.
locationStorage site of the certificate. Use one of the following: root, mem, disk0, disk1,
or other flash device on router.
trustAdds the certificate to the certificate table without validation by the Software
Authentication Manager (SAM). To add a root certificate, you must use the trust
keyword. Adding a root certificate with the untrust keyword is not allowed.
untrustAdds the certificate to the certificate table after the SAM has vali dated it. Adding
a root certificate with the untrust keyword is not allowed. To add a root
certificate, you must use the trust keyword.
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Usage GuidelinesTo use this command, you must be in a user grou p associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
For security reasons, the sam add certificate command can be issued o nly from the console or au xiliary
port of the networking device; the command cannot be issued from a Telnet connection to any other
interface on the networking device.
The certificate must be copied to the network device before it can be added to the certif icate table. If the
certificate is already present in the certificate table, the SAM rejects the attempt to add it.
When adding root certificates, follow these guidelines:
• Only the certificate authority (CA) root certificate can be added to the root location.
• To add a root certificate, you must use the trust keyword. Adding the root certificate with the
untrust keyword is not allowed.
Use of the trust keyword assumes that you receiv ed the ne w certif icate from a source that you trust, and
therefore have enough confidence in its authenticity to bypass validation by the SAM. One example of
acquiring a certificate from a trusted source is downloading it from a CA server (such as Cisco. com) that
Cisco IOS XR System Security Command Reference
SR-208
Software Authentication Manager Commands on Cisco IOSXR Software
sam add certificate
requires user authentication. Another example is acquiring the certificate from a person or entity that
you can verify, such as by checking the identification badge for a person. If you bypass the validation
protection offered by the SAM, yo u must verify the id entity and integrity o f the certificat e by some other
valid process.
Certificates added to the memory (mem) location validate software installed in memory. Certificates
added to the disk0 or disk1 location validate software installed on those devices, respectively.
NoteIf the sam add certificate command fails with a message indicating that the certificate has expired, the
networking device clock may have been set incorrectly. Use the show clock command to determine if
the clock is set correctly.
ExamplesThe following example shows ho w to add the certificate found at /bootflash/ca.bin to the certificate table
in the root location without first validating the certificate:
RP/0/RP0/CPU0:router# sam add certificate /bootflash/ca.bin root trust
The following example shows how to add the certificate found at /bootflash/css.bin to the certificate
table in the memory (mem) location after validating the certificate:
RP/0/RP0/CPU0:router# sam add certificate /bootflash/css.bin mem untrust
sam delete certificateDeletes a certificate from the certificate table.
show sam certificateDisplays records in the certificate table, including the location of the
certificates.
show clockDisplays networking device clock information.
Cisco IOS XR System Security Command Reference
SR-209
sam delete certificate
sam delete certificate
T o delete a certificate from the certificate table, use the sam delete certificate command in EXEC mode.
sam delete certificate locationcertificate-index
Software Authentication Manager Commands on Cisco IOSXR Software
Syntax Description
DefaultsNo default behavior or values
Command ModesEXEC
Command History
Usage GuidelinesTo use this command, you must be in a user grou p associated with a task group that includes the proper
locationStorage site of the certificate. Use one of the following: root, mem, disk0, disk1,
or other flash device on router.
certificate-index Number in the range from 1 to 65000.
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
For security reasons, the sam delete certificate command can be issued only from the console port of
the networking device; the command cannot be is sued from a Telnet connection to any other interface
on the networking device.
Use the show sam certificate summary command to display certificates by their index numbers.
Because the certificate authority (CA) certificate must not be unknowingly deleted, the Software
Authentication Manager (SAM) prompts the user for confirmati on when an attempt is made to delete the
CA certificate.
If a certificate stored on the system is no longer valid (for example, if the certificate has expired), you
can use the sam delete certificate command to remove the certificate from the list.
ExamplesThe following example shows how to delete the certificate identified by the index number 2 from the
memory location:
RP/0/RP0/CPU0:router# sam delete certificate mem 2
SAM: Successful deleting certificate index 2
Cisco IOS XR System Security Command Reference
SR-210
Software Authentication Manager Commands on Cisco IOSXR Software
The following example sho ws how to can cel the deletion of the certificat e identified b y the index number
1 from the root location:
RP/0/RP0/CPU0:router# sam delete certificate root 1
Do you really want to delete the root CA certificate (Y/N): N
SAM: Delete certificate (index 1) canceled
The following example shows how to delete the certificate identified by the index number 1 from the
root location:
RP/0/RP0/CPU0:router# sam delete certificate root 1
Do you really want to delete the root CA certificate (Y/N): Y
SAM: Successful deleting certificate index 1
Related CommandsCommandDescription
sam add certificateAdds a new certificate to the certificate table.
show sam certificateDisplays records in the certificate table, including the location of the
certificates stored.
sam delete certificate
Cisco IOS XR System Security Command Reference
SR-211
sam prompt-interval
sam prompt-interval
To set the interval that the Software Authentication Manager (SAM) waits after prompting the user for
input when it detects an abnormal condition at boot time and to determine how the SAM responds when
it does not receive user input within the specified interval, use the sam prompt-interval command in
global configuration mode. To reset the prompt interval and response to their default values, use the no
form of this command.
sam prompt-interval time-interval {proceed | terminate}
no sam prompt-interval time-interval {proceed | terminate}
Software Authentication Manager Commands on Cisco IOSXR Software
Syntax Description
DefaultsThe default response is for the SAM to wait 10 seconds and then terminate the authentication task.
Command ModesGlobal configuration
Command History
Usage GuidelinesTo use this command, you must be in a user grou p associated with a task group that includes the proper
time-interval Prompt time, in the range from 0 to 300 s econds.
proceedCauses the SAM to respond as if it had re cei ved a “yes” when the prompt int erv al
expire s .
terminateCauses the SAM to respond as if it had received a “no” when the prompt interval
expire s .
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Use the sam prompt-interval command to control the action taken wh en the system detects an exception
condition, such as an expired certificate during initialization of the SAM at boot time. The following
message appears when the software detects the abnormal condition of a certificate authority (CA)
certificate expired:
SAM detects expired CA certificate. Continue at risk (Y/N):
SR-212
The SAM waits at the prompt until you respond or the time interval controlled by the sam
prompt-interval command exp ires, whichever is the earlier e vent. If you respond “N” to the pro mpt, the
boot process is allowed to complete, but no packages can be installed.
Cisco IOS XR System Security Command Reference
Software Authentication Manager Commands on Cisco IOSXR Software
The following message appears when the software detects the abnormal condition of a Code Signing
Server (CSS) certificate expired:
SAM detects CA certificate (Code Signing Server Certificate Authority) has expired. The
validity period is Oct 17, 2000 01:46:24 UTC - Oct 17, 2015 01:51:47 UTC. Continue at
risk? (Y/N) [Default:N w/in 10]:
If you do not respond to the prompt, the SAM waits for the specif ied interval to expire, and then it takes
the action specified in the sam prompt-interval command (either the proceed or terminate keyword).
If you enter the command with the proceed keyword, the SAM w aits for the specified interval to e xpire,
and then it proceeds as if you had given a “yes” response to the prompt.
If you enter the command with the terminate keyword, the SAM waits for the specified interval to
expire, and then it proceeds as if you had gi v en a “no” r esponse to the p rompt. This use of the command
keeps the system from waiting indefinitely when the system console is unattended.
NoteAfter the software has booted up, the time-interval argument set using this command has no effect. This
value applies at boot time only.
sam prompt-interval
ExamplesThe following example shows how to tell the SAM to wait 30 seconds for a user response to a prompt
and then terminate the requested SAM processing task:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# sam prompt-interval 30 terminate
Related CommandsCommandDescription
show sam sysinfoDisplays the current status information for the SAM.
Cisco IOS XR System Security Command Reference
SR-213
sam verify
sam verify
Software Authentication Manager Commands on Cisco IOSXR Software
T o use the Message Digest 5 (MD5) hash algorith m to verify the int egri ty of the softw are component on
a flash memory card and ensure that it has not been tampered with during transit, use the sam verify
command in EXEC mode.
sam verify {location | file-system} {MD5 | SHA [digest]}
Syntax Description
DefaultsNo default behavior or values
Command ModesEXEC
Command History
locationName of the flash memory card slot, either disk0 or disk1.
file-system Absolute path to the file to be verified.
MD5Specifies a one-way hashing algorithm to generate a 128-bit hash (or message
digest) of the specified software component.
SHASpecifies the Secure Hash Algorithm, a hashing algorithm that takes a message of
less than 264 bits in length and produces a 160-bit message digest. The large
message digest provides security against brute-force collision and inversion
attacks.
digest (Optional) Message digest generated by the hashing algorithm, to be compared in
determining the integrity of the software component.
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Usage GuidelinesTo use this command, you must be in a user grou p associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Use the sam verify command to generate a message digest for a given device. The message digest is
useful for determining whether software on a flash memory card has been tampered with d uring transit.
The command generates a hash code that can be used to compare the integrity of the software between
the time it was shipped and the time you received it.
For example, if you are given a flash memory card with preinstalled software and a pre viously generated
MD5 message digest, you can verify the integrity of the software using this command:
sam verify device MD5 digest
where device is the flash device and digest is the message digest supplied by the originator of the
software.
Cisco IOS XR System Security Command Reference
SR-214
Software Authentication Manager Commands on Cisco IOSXR Software
sam verify
If the message digest matches the message digest generated by the sam verify command, the software
component is valid.
NoteYou should calculate the hash code on the contents of the flash memory code at the destination
networking device using a different set of files from the one loaded on the flash memory card. It is
possible for an unauthorized person to use the same software version to produce the desired (matching)
hash code and thereby disguise that someone has tampered with the n ew software.
ExamplesThe following example shows how to use MD5 to generate a message digest on the entire file system on
the flash memory card in slot 0 and then use that message digest as input to perform the digest
comparison. The example shows a third sam verify command, issued with a mismatched message digest,
to show the Software Authentication Manager (SAM) response to a mismatch.
RP/0/RP0/CPU0:router# sam verify disk0: MD5
Total file count in disk0: = 813
082183cb6e65a44fd7ca95fe8e93def6
RP/0/RP0/CPU0:router# sam verify disk0: MD5 082183cb6e65a44fd7ca95fe8e93def6
Total file count in disk0: = 813
Same digest values
RP/0/RP0/CPU0:router# sam verify disk0: MD5 3216c9282d97ee7a40b78a4e401158bd
Total file count in disk0: = 813
Different digest values
The following example shows how to use MD5 to generate a message digest and then uses that messag e
digest as input to perform the digest comparison:
RP/0/RP0/CPU0:router# sam verify disk0: /crl_revoked.bin MD5
38243ffbbe6cdb7a12fa9fa6452956ac
RP/0/RP0/CPU0:router# sam verify disk0: /crl_revoked.bin MD5
38243ffbbe6cdb7a12fa9fa6452956ac
Same digest values
Cisco IOS XR System Security Command Reference
SR-215
show sam certificate
show sam certificate
To display records in the certificate table, use the show sam certificate command in EXEC mode.
show sam certificate {detail locationcertificate-index | summary {all | location}}
Software Authentication Manager Commands on Cisco IOSXR Software
Syntax Description
DefaultsNo default behavior or values
Command ModesEXEC
Command History
detailDisplays all the attributes for the selected table entry (specified by the
certificate-index argument).
locationSpecifies the certificates stored in a specific location. Use one of the following:
root, mem, disk0, disk1, or other flash device on router.
certificate-indexIndex number for the entry, in the range from 1 to 65000.
summaryDisplays selected attributes for entries in the table.
allDisplays selected attributes for all the entries in the table.
locationDisplays selected attributes for only the certificates stored in a specific location.
Use one of the following: root, mem, disk0, disk1, or other flash device on router.
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Usage GuidelinesTo use this command, you must be in a user grou p associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Use the show sam certificate command when you want to display all the certificates stored in the
system. Attributes are certificate number, certificate flag, serial number, subject name, issued by,
version, issuing algorithm, not-before and not-after dates, public key, and signature.
T o get th e certif icate nu mber , use the show sam certif icate summary all command . When used with the
summary keyword, the all keyword displays selected attributes for all the entries in the table.
When used with the summary keyword, the location argument displays selected attributes for only the
certificates stored in a specific location. Use one of the following: root, mem, disk0, disk1, or other flash device on router.
Cisco IOS XR System Security Command Reference
SR-216
Software Authentication Manager Commands on Cisco IOSXR Software
show sam certificate
ExamplesThe following sample output is from the show sam certificate summary all command. In this e xample,
the root location has one certificate, and disk0 has one certificate:
RP/0/RP0/CPU0:router# show sam certificate summary all
-------------------- SUMMARY OF CERTIFICATES -------------------
Certificate Location :root
Certificate Index :1
Certificate Flag :VALIDATED
Serial Number :32:E0:A3:C6:CA:00:39:8C:4E:AC:22:59:1B:61:03:9F
Subject Name :
cn=Code Signing Server Certificate Authority,o=Cisco,c=US
Issued By :
cn=Code Signing Server Certificate Authority,o=Cisco,c=US
Validity Start :[UTC] Tue Oct 17 01:46:24 2000
Validity End :[UTC] Sat Oct 17 01:51:47 2015
CRL Distribution Point
Certificate Location :mem
Certificate Index :1
Certificate Flag :VALIDATED
Serial Number :01:27:FE:79:00:00:00:00:00:05
Subject Name :
cn=Engineer code sign certificate
Issued By :
cn=Code Signing Server Certificate Authority,o=Cisco,c=US
Validity Start :[UTC] Tue Oct 9 23:14:28 2001
Validity End :[UTC] Wed Apr 9 23:24:28 2003
CRL Distribution Point
Table 16 describes the significant fields shown in the display.
Table 16show sam certificate summary all Field Descriptions
FieldDescription
Certificate LocationLocation of the certificate; one of the following: root, mem, disk0, or
disk1.
Certificate IndexIndex number that the Software Authentication Manager automatically
assigns to the certificate.
Certificate FlagOne of the following: TRUSTED, VALIDATED, EXPIRED, or
REVOKED.
Serial NumberUnique serial number of the certificate, assigned by its issuer.
Subject NameName of the entity for which the certificate is issued.
Issued ByName of the entity that issued the certificate.
Cisco IOS XR System Security Command Reference
SR-217
show sam certificate
Software Authentication Manager Commands on Cisco IOSXR Software
The following sample output from the show sam certificate command shows how to display particular
SAM details:
RP/0/RP0/CPU0:router# show sam certificate detail mem 1
Certificate Location :mem
Certificate Index :1
Certificate Flag :VALIDATED
----------------------- CERTIFICATE ----------------------- Serial Number :01:27:FE:79:00:00:00:00:00:05
Subject Name :
cn=Engineer code sign certificate
Issued By :
cn=Code Signing Server Certificate Authority,o=Cisco,c=US
Validity Start :[UTC] Tue Oct 9 23:14:28 2001
Validity End :[UTC] Wed Apr 9 23:24:28 2003
CRL Distribution Point
file://\\CodeSignServer\CertEnroll\Code%20Signing%20Server%20Certificate
%20Authority.crl
Version 3 certificate
Issuing Algorithm:MD5withRSA
Public Key BER (294 bytes):
Software Authentication Manager Commands on Cisco IOSXR Software
Table 17 describes the significant fields shown in the display.
Table 17show sam certificate detail mem 1 Field Descriptions
FieldDescriptions
Certificate LocationLocation of the certificate; one of the follo wing: root, mem, disk0, or disk1.
Certificate IndexIndex number that the SAM automatically assigns to the certificate.
Certificate FlagOne of the following: TRUSTED, VALIDATED, EXPIRED, or REVOKED.
Serial NumberUnique serial number of the certificate, assigned by its issuer.
Subject NameName of the entity for which the certificate is issued.
Issued ByName of the entity that issued the certificate.
VersionThe X.509 version of the certificate. The version can be 1 (X.509v1), 2
(X.509v2), or 3 (X.509v3).
Issuing AlgorithmHash and public key algorithm that the issuer uses to sign the certificate.
Public KeySubject public key for the certificate.
Certificate signatureEncrypted hash value (or signature) of the certificate. The hash value of the
certificate is encrypted using the private key of the issuer.
show sam certificate
Cisco IOS XR System Security Command Reference
SR-219
show sam crl
show sam crl
To display the records in the certificate revocation list (CRL) table, use the show sam crl command in
EXEC mode.
Software Authentication Manager Commands on Cisco IOSXR Software
show sam crl {summary | detail crl-index}
Syntax Description
summaryDisplays selected attributes for all entries in the table.
detailDisplays all the attributes for the selected table entry (specified by the crl-index
argument).
crl-indexIndex number for the entry, in the range from 1 to 65000.
DefaultsNo default behavior or values
Command ModesEXEC
Command History
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Usage GuidelinesTo use this command, you must be in a user grou p associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Use the show sam crl command when you want to display all the revoked certificates currently stored
on the system. Attributes are CRL index number, issuer, and update information.
To get the CRL index number, use the show sam crl summary command.
ExamplesThe following sample output is from the show sam crl summary command:
RP/0/RP0/CPU0:router# show sam crl summary
----------------------- SUMMARY OF CRLs --------------------------
CRL Index :1
Issuer:CN = Code Sign Server Certificate Manager, OU = Cisco HFR mc , O =
Cisco,
L = San Jose, ST = CA, C = US, EA =<16> iosmx-css-cert@cisco.com
Including updates of:
Sep 09, 2002 03:50:41 GMT
Cisco IOS XR System Security Command Reference
SR-220
Software Authentication Manager Commands on Cisco IOSXR Software
Table 18 describes the significant fields shown in the display.
Table 18show sam crl summary Field Descriptions
FieldDescription
CRL IndexIndex number for the entry, in the range from 1 to 65000. The
IssuerCertificate authority (CA) that issued this CRL.
Including updates ofVersions of CRLs from this CA that are included in the CRL
The following sample output is from the show sam crl detail 1 command:
-------------- CERTIFICATE REVOCATION LIST (CRL) -----------------
show sam crl
index is kept in the certificate revocation list table.
table.
Issuer:CN = Code Sign Server Certificate Manager, OU = Cisco HFR mc , O = Cisco,
L = San Jose, ST = CA, C = US, EA =<16> iosmx-css-cert@cisco.com
Including updates of:
Sep 09, 2002 03:50:41 GMT
Revoked certificates include:
Serial #:61:2C:5C:83:00:00:00:00:00:44, revoked on Nov 03, 2002 00:59:02 GMT
Serial #:21:2C:48:83:00:00:00:00:00:59, revoked on Nov 06, 2002 19:32:51 GMT
Table 19 describes the significant fields shown in the display.
Table 19show sam crl detail Field Descriptions
FieldDescriptions
CRL IndexIndex number for the entry, in the range from 1 to 650 00. The index is kept
in the certificate revocation list table.
IssuerCA that issued this CRL.
Including updates ofVersions of CRLs from this CA that are included in the CRL table.
Revoked certificates
include
List of certificates that have been revoked, including the certificate serial
number and the date and time the certificate was revoked.
Cisco IOS XR System Security Command Reference
SR-221
show sam log
show sam log
To display the contents of the Software Authentication Manager (SAM) log file, use the show sam log
command in EXEC mode.
Software Authentication Manager Commands on Cisco IOSXR Software
show sam log [lines-number]
Syntax Description
lines-number(Optional) Number of lines of the SAM log file to display, in the range from 0 to
200, where 0 displays all lines in the log file and 200 displays the most recent 200
lines (or as many lines as there are in the log f ile if there are fe wer than 200 lines).
DefaultsThe show sam log command without a lines-number argument displays all the lines in the log file.
Command ModesEXEC
Command History
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Usage GuidelinesTo use this command, you must be in a user grou p associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
The SAM log file records changes to the SAM tables, including any expired or re vok ed certificates, table
digest mismatches, and SAM server restarts.
ExamplesThe following sample output is from the show sam log command:
RP/0/RP0/CPU0:router# show sam log
06/16/02 12:03:44 UTC Added certificate in table root/1 CN = Certificate Manage, 0x01
06/16/02 12:03:45 UTC SAM server restarted through router reboot
06/16/02 12:03:47 UTC Added CRL in table CN = Certificate Manage, updated at Nov 10, 2001
04:11:42 GMT
06/16/02 12:03:48 UTC Added certificate in table mem:/1 CN = Certificate Manage, 0x1e
06/16/02 12:16:16 UTC SAM server restarted through router reboot
06/16/02 12:25:02 UTC SAM server restarted through router reboot
06/16/02 12:25:04 UTC Added certificate in table mem:/1 CN = Certificate Manage, 0x1e
06/16/02 12:39:30 UTC SAM server restarted through router reboot
06/16/02 12:40:57 UTC Added certificate in table mem/1 CN = Certificate Manage, 0x1e
33 entries shown
Each line of output shows a particular logged event such as a table change, expired or revoked
certificates, table digest mismatches, or SAM server restarts.
Cisco IOS XR System Security Command Reference
SR-222
Software Authentication Manager Commands on Cisco IOSXR Software
show sam package
To display information about the certificate used to authenticate the software for a particular package
installed on the networking device, use the show sam package command in EXEC mode.
show sam packagepackage-name
show sam package
Syntax Description
package-nameLocation of the software package, including the memory device (disk0:, disk1:,
mem:, and so on) and the file system path to the file. Use the show install all
command to display the Install Manager package name and location information.
DefaultsNo default behavior or values
Command ModesEXEC
Command History
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Usage GuidelinesTo use this command, you must be in a user grou p associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on
Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Use the show install all command to display the installed location and name of the software
package—for example, mem:ena-base-0.0.0 or disk1:crypto-exp-lib-0.4.0 —and then use the sho w sam
package command to display information about the certificate used to authenticate that installed
package. The show sam package command displays the same information as the show sam certificate
detaillocation certificate-index command.
ExamplesThe following sample output is from the show sam package command:
RP/0/RP0/CPU0:router# show sam package mem:12k-rp-1.0.0
cn=Code Signing Server Certificate Authority,o=Cisco,c=US
Cisco IOS XR System Security Command Reference
SR-223
show sam package
Software Authentication Manager Commands on Cisco IOSXR Software
Validity Start :[UTC] Tue Oct 9 23:14:28 2001
Validity End :[UTC] Wed Apr 9 23:24:28 2002
CRL Distribution Point
file://\\CodeSignServer\CertEnroll\Code%20Signing%20Server%20Certificate
%20Authority.crl
Version 3 certificate
Issuing Algorithm:MD5withRSA
Public Key BER (294 bytes):
8a ba ea d3 da 3e 8a 44 9b 47 35 10 ab 61 1b 4f [.....>.D.G5..a.O]
82 dd 59 16 d5 f2 1d f3 c2 08 cc 1c 7f ab be 9c [..Y.............]
be 52 73 ea e0 89 d7 6f 4d d0 d8 aa 3d 50 d6 b0 [.Rs....oM...=P..]
SR-224
Table 20 describes the significant fields shown in the display.
Table 20show sam package Field Descriptions
FieldDescription
Certificate LocationLocation of the certificate; one of the following: root, mem,
disk0, or disk1.
Certificate IndexIndex number that the Software Authentication Manager (SAM)
automatically assigns to the c ertificate.
Certificate FlagOne of the following: TRUSTED, VALIDATED, EXPIRED, or
REVOKED.
Serial NumberUnique serial number of the certificate, assigned by its issuer.
Subject NameName of the entity for which the certificate is issued.
Cisco IOS XR System Security Command Reference
Software Authentication Manager Commands on Cisco IOSXR Software
Table 20show sam package Field Descriptions (continued)
FieldDescription
Issued ByName of the entity that issued the certificate.
VersionX.509 version of the certificate. The v ersion can be 1 (X.509v1),
Issuing AlgorithmHash and public key algorithm that the issuer uses to sign the
Public KeySubject public key for the certificate.
Certificate signatureEncrypted hash value (or signature) of the certificate. The hash
show sam package
2 (X.509v2), or 3 (X.509v3).
certificate.
value of the certificate is encrypted using the private key of the
issuer.
Related Commands
CommandDescription
show install allDisplays the installed location and name of the software package.
show sam certificateDisplays records in the SAM certificate table.
Cisco IOS XR System Security Command Reference
SR-225
show sam sysinfo
show sam sysinfo
T o display current con figuration setti ngs for the Softw are Authentication Manager (SAM), use the show
sam sysinfo command in EXEC mode.
show sam sysinfo
Syntax DescriptionThis command has no arguments or keywords.
DefaultsNo default behavior or values
Command ModesEXEC
Software Authentication Manager Commands on Cisco IOSXR Software
Command History
ReleaseModification
Release 2.0This command was introduced on the Cisco CRS-1.
Release 3.0No modification.
Release 3.2This command was supported on the Cisco XR 12000 Series Router.
Usage GuidelinesTo use this command, you must be in a user grou p associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Use the show sam sysinfo command to determine the configuration settings of the SAM.
The display shows the status of the SAM, current prompt interval setting, and current prompt default
response.
ExamplesThe following sample output is from the show sam sysinfo command:
RP/0/RP0/CPU0:router# show sam sysinfo
Software Authentication Manager System Information
==============================================
Status: running
Prompt Interval: 10 sec
Prompt Default Response : NO
Table 21 describes the significant fields shown in the display.
SR-226
Cisco IOS XR System Security Command Reference
Software Authentication Manager Commands on Cisco IOSXR Software
Table 21show sam sysinfo Field Descriptions
FieldDescription
StatusOne of the following: running or not running.
Prompt IntervalCurrent setting for the prompt interval. The interv al can b e set in
Prompt Default ResponseCurrent setting that specifies the action taken by the SAM if the
show sam sysinfo
If the SAM is not running, the System Manager should detect
that state and attempt to restart the SAM. If problems pre vent the
System Manager from restarting the SAM after a predefined
number of repeated attempts, the SAM will not be restarted. In
such a case, you should contact Cisco Technical Assistance
Center (TAC) personnel.
the range from 0 to 300 seconds. The value shown in the sample
output (10 seconds) is the default.
prompt interval expires before the user responds to the prompt.
If the user does not respond to the prompt, the SAM waits for the
specified interval to e xpire and th en takes the act ion specified in
the sam prompt-interval command (either proceed or terminate).
Related Commands
Entering the sam prompt-interval command with the proceed
keyword causes the show sam sysinfo command to display
“Yes,” meaning that the default action taken by the SAM is to
wait for the prompt interval to expire and then respond as if it had
received a “yes” from the user.
Entering the sam prompt-interval command with the terminate
keyword causes the show sam sysinfo command to display
“No, ” meaning that the default action taken b y the SAM is to wait
for the prompt interval to expire and then respond as if it had
received a “no” from the user.
CommandDescription
sam prompt-intervalSets the interval that the SAM w ait s after pr ompting the user for inp ut when
it detects an abnormal condition and determines how the SAM responds
when it does not receive user input within the specified interval.
Cisco IOS XR System Security Command Reference
SR-227
show sam sysinfo
Software Authentication Manager Commands on Cisco IOSXR Software
SR-228
Cisco IOS XR System Security Command Reference
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.