SNAP Command Virtual I/O Server VIOS as admin user

SNAP Command Virtual I/O Server VIOS as admin user


SNAP command collects the VIOS / LPAR Configuration information, in case of VIOS restricted admin user there is another snap command. The command provides custom log collection by registering the script written by user and can be added to snap command before or during log collection. When the user does not require custom script it can de registered at any time.




Below is the command usage.


$ snap
    To start collecting all system config and general information

$ snap -general
    Collects system general information

$ snap -general -dev /dev/hdisk0
        Collects configuration information related to device hdisk1

$ snap -copy
    Copies the last collected snap from /tmp/ibmsupt to home directory

$ snap -z ADD "product_name=vios" "class=snapi" "command_path=/home/<admin>/sc.ksh"
    Registers the custom log collection script /home/<admin>/sc.ksh that should run when snap collection is started.

$ snap -z DELETE "product_name=vios"
    De registers the custom log collection script /home/<admin>/sc.ksh.

$ snap "script1" "script2" "script3 script_argument1 script_argument2" "script4"
        Running a script with out registering with arguments, collects the log in /tmp/ibmsupt/snapscripts/script1, /tmp/ibmsupt/snapscripts/script2, /tmp/ibmsupt/snapscripts/script3, /tmp/ibmsupt/snapscripts/script4

$ snap -z ALL
        Similar to snap collects all system config, general information and custom script logs if any registered.

$ snap -z ALL -M 600
        M specifies the time out for per custom script.

$ snap [-general] [-z ALL | "product_name=Product1, ..." | "class=Class1,..."] [-dev DeviceName] [-M Timeout]
    Here is the usage of combination of snap arguments.

The snap file will be compressed and available in /tmp/ibmsupt/ directory and after collection of logs is complete it will copy automatically to home directory it will be named as snap.pax.Z, if adequate space is not available in home directory it will not be copied then need to make space in home directory and copy it using snap -copy command.

Post a Comment

0 Comments