Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Tuesday, 11 December 2012

VIOS Useful Commands :


VIOS Commands :

Accept all VIOS license agreements
license -accept

(Re)Start the (initial) configuration assistant
cfgassist

Shutdown the server
shutdown
›››    Optionally include -restart

List the version of the VIOS system software 
ioslevel

List the boot devices for this lpar 
bootlist -mode normal -ls

List LPAR name and ID
lslparinfo

Display firmware level of all devices on this VIOS LPAR
lsfware -all

Display the MOTD
motd

Change the MOTD to an appropriate message 
motd "*****    Unauthorized access is prohibited!    *****"

List all (AIX) packages installed on the system 
lssw
------ Equivalent to lslpp -L in AIX
Display a timestamped list of all commands run on the system 

lsgcl

   display the current date and time of the VIOS 

chdate
Change the current time and date to 3:03 PM AUGUST 4, 2012

chdate -hour 1 \
       -minute 2 \
       -month 3 \
       -day 4 \
       -year 2009

Change just the timezone to AST 
chdate -timezone AST (Visible on next login)
›››   The date command is availible and works the same as in Unix.
Brief dump of the system error log

errlog
Detailed dump of the system error log

errlog -ls | more
Remove error log events older than 30 days

errlog -rm 30
›››   The errlog command allows you to view errors by sequence, but does not give the sequence in the default format.
• errbr works on VIOS provided that the errpt command is in padmin's PATH.

No comments:

Post a Comment