CLI Guide

Table Of Contents
Table 82. Details of setniccfg attribute (continued)
Configuration of CMC to a static IPv6 address.
racadm setniccfg -m chassis -s -6 2001:DB8::2 64 2001:DB8::1
Configuration of server to use stateless autoconfiguration address.
racadm setniccfg -m server-1 -d -6
Configuration of VLAN id and priority for a switch.
racadm setniccfg -m switch-1 -v 1000 7
Removal of VLAN configuration from a switch.
racadm setniccfg -m switch-1 -v
Configuration of redundant mode
racadm setniccfg -r 1
sshpkauth
Table 83. Details of sshpkauth attribute
Description Enables you to upload and manage up to 4 different SSH public keys for each user. You can upload a key
file or key text, view keys, or delete keys.
This command has three mutually exclusive modes determined by the options upload, view, and
delete.
To run this subcommand, you must have Configure user privilege.
NOTE: CMC accepts RSA keys up to key strength 4096, but the recommended key strength is 2048.
NOTE: CMC does not support DSA algorithm.
Synopsis
racadm sshpkauth -i svcacct -k <key_index> -p <privilege> -t
<PK_key_text>
racadm sshpkauth -i svcacct -k <key_index> -p <privilege> -f
<PK_key_text>
racadm sshpkauth -v -i svcacct -k all|<key_index>
racadm sshpkauth -d -i svcacct -k all|<key_index>
Input
-i <user_index> Index for the user. It must be svcacct for CMC.
-k [<key_index> | all] Index to assign the PK key being uploaded. all only works with the
-v or -d options. <key_index> must be between 1 to 46 or all on iDRACCMC.
-p <privilege> Level to give to user for this PK key.
-r <cmcIpAddr> Specifies the controllers remote IP address.
-u <username> Specifies the user name.
-t <PK_Key_Text> Key text for the SSH Public key.
-f <filename> File containing the key text to upload.
NOTE: The -f option is not supported on Telnet or SSH or serial RACADM.
-v View the key text for the index provided.
-d Delete the key for the index provided.
Example
116
RACADM Subcommand Details