Professional Documents
Culture Documents
0 InfoDoc
Useful commands to administer the T5120/T5220 from the ILOM including setting up user accounts ( factory default root:changeme) By default the server is configured to operate under an ILOM shell. You can create an ALOM compatibility shell if you prefer to use commands that resemble ALOM commands to administer the server Logon using default credentials of (root:changeme)
-> create /SP/users/admin then -> set /SP/users/admin role=Administrator then ->set /SP/users/admin cli_mode=alom Or alternatively on one line.... -> create /SP/users/admin role=Administrator cli_mode=alom -> exit (wallop you have the sc>) Log into the ALOM shell as indicated now by the sc> In the ALOM compatibility shell (with a few exceptions) you can use commands that resemble the commands of ALOM. Remember that the ALOM compatibility shell is an ILOM interface, ENJOY!!!!!!!!
-> set /HOST/bootmode script=value i.e -> set /HOST/bootmode state=reset_nvram script="setenv diag-switch? true" After the server resets and OpenBoot PROM reads the values stored in the script, it sets the OBPROM variable diag-switch? to the user-requested value of true. Display the Hosts MAC Address -> show /HOST macaddress Display the Hosts OpenBoot Version -> show /HOST obp_version Display the Hosts POST Version -> show /HOST post_version Specify the Level of Diagnostics -> set /HOST/diag level=value #min or max Level of Verbosity in Diagnostic Output -> set /HOST/diag verbosity=value
none Diagnostics do not print any output on the system console when running, unless a fault is detected. min Diagnostics print a limited amount of output on the system console. normal Diagnostics print a moderate amount of output on the system console (the default value). max Diagnostics print full output on the system console, including the name and results of each test being run. debug Diagnostics print extensive debugging output on the system console, including devices being tested and debug output of each test. Enable System to Send a Break or Force Core Dump -> set /HOST send_break_action=value break Sends a break to the host. dumpcore Forces a panic core dump of the managed system OS (not supported by all OS versions). Display Host Status -> show /HOST status Reset the SP Settings to Factory Defaults -> set /SP reset_to_defaults=all
View Power Management Properties -> show /SP/powermgmt View the Total Power Consumed -> show /SYS/VPS (the same as /SP/powermgmt actual_power) Display the DHCP Servers IP Address -> show /SP/network Generate New Set of SSH Keys -> set /SP/services/ssh generate_new_key_action=true Restart SSH Server -> set /SP/services/ssh restart_sshd_action=true Enable/ Disable SSH Service -> set /SP/services/ssh state=value (enable or disable) # enable is the default Control the Virtual Keyswitch -> set /SYS keyswitch_state=value normal The system can power itself on and start the boot process (the default). standby Powers off the HOST, cannot power itself on. diag The system can power itself on using preset values of diagnostic properties (/HOST/diag level=max, /HOST/diag mode=max, /HOST/diag verbosity=max) to provide thorough fault coverage. This option overrides the values of diagnostic properties that you might have set. locked The system can power itself on, however you are prohibited from updating any of the flash devices or setting /HOST send_break_action Display Component Status -> show -o table -level all /SYS component_state or -> show components (an alias setup to make life easier)
setupsc
No equivalent in ILOM
showplatform [v]
show /HOST
showhost version
showdate
usershow [username]
ALOM CMT. The display for this command has a similar format to that of the UNIX command who.The g option pauses the display after the number of lines you specify for The version option displays the same information as the showhost command with no option. Displays status of virtual keyswitch Displays the current nonvolatile random access memory (NVRAM) configuration parameters. Displays the ALOM CMT date. ALOM CMT time is expressed in (UTC) rather than local time. The Solaris OS and ALOM CMT time are not synchronized. Displays a list of all user accounts, permission levels, and whether passwords are assigned Adds a user account to ALOM CMT Deletes a user account from ALOM CMT. The y option enables you to skip the confirmation question. Sets or changes a user password. Sets the permission level for a user account.
show /HOST
show /SP/users
show /SP/console/history
console
start /SP/console
break c
break D
bootmode [normal] [reset_nvram] [config= configname][bootscript = string] flashupdate s IPaddr f pathname [v]
Controls the host server OpenBoot PROM firmware method of booting. Downloads and updates system firmware (both host firmware and ALOM CMT firmware). For ILOM, ipaddr must be a TFTP server. If DHCP is used, ipaddr can be replaced by the name of the TFTP host. Attempts to gracefully reset the system. If that fails, this option forcefully reset the system. As above Forcefully resets the system Attempts to gracefully reset the control domain. If that fails, this option forcefully reset the control domain. Forcefully resets the control domain poweroff followed by poweron. The f option forces an immediate poweroff, otherwise the command attempts a graceful shutdown. Removes the main power from the host server. The y option enables you to skip the confirmation question. The f option forces an immediate shutdown. Applies the main power to the host server or FRU. Turns the Locator LED on the server on or off. Displays current valid system faults. Manually repairs system faults Displays the current state of the Locator LED as either on or off
dumpcore set /HOST/bootmode property=value [where property is state, config, or script] load source tftp://ipaddr/pathname
reset [c]
reset /SYS
reset -script /SYS reset -f /SYS reset /HOST/domain/control reset - f /HOST/domain/control stop /SYS start /SYS stop script /SYS start script /SYS stop force /SYS start force /SYS stop /SYS
poweroff
stop force /SYS start /SYS set /SYS/LOCATE value=value show /SP/faultmgmt set /SYS/component clear_fault_action=true show /SYS/LOCATE
userclimode
N.B. If all else fails, give up collecting your P45 on the way out, explaining to everyone you are a pitiful and weak ENGINEER!!!!!!!!!!