Search This Blog

Thursday, January 21, 2010

All Interview questions AS400

Find out the last IPL done on the systemWhat's the easiest way to find out the last IPL done on the System?
Simply type WRKACTJOB and type option 5 against QCTL subsystem and type option 1 "Display job status attribute and look for Entered system Date and time

I'm running a weekly backup to save all my data, as there is no one on site to run the go save options. What is the best way to recover my data?
If you are using the weekly backup function of the Go Backup menu, you will need to use the individual system restore commands like Restore User Profiles (RSTUSRPRF), Restore Configuration (RSTCFG), Restore Library (RSTLIB), Restore Document Library Objects (RSTDLO) and Restore Object (RST) to recover your system.

How many users are logged into your system?
1. Enter command WRKSYSSTS (Display System Status) on command line. 2. Use function key F21 to set the value for "Assistance Level" to 1=Basic.
3. On line number 9 the number of signed on users is displayed.
SAVLIB LIB(*ALLUSR) STG(*KEEP) …This will be your backup in case a media error is encountered. You can make two backups to be doubly safe.
SAVLIB LIB(*ALLUSR) STG(*FREE) ... This deletes and frees the storage for all user libraries and the objects they contain.
RSTLIB SAVLIB(*ALLUSR) ... This restores the libraries and objects while distributing the data evenly.

Find out which IP interface a device is connected to
To find out the network interface a specific device is using to access your iSeries server, proceed as follows:
1. Enter command NETSTAT
2. Choose option ". Work with TCP/IP connection status"
3. Use function key F11 twice to see the "Local Address" column


Restarting QINTER over network
- The FTP server must be running. - The profile must have sufficient authority within the system to start QINTER. - The user must have the ability to use the command line.
Take care -- there may be a good reason why QINTER may be down in the first place - to ensure there's no prospect of interactive jobs locking any objects on the system.
FTP hostname user-d password QUOTE RCMD STRSBS SBSD(QINTER)

QUIT

Is there an easy way to run a command on another iSeries from the iSeries where I am signed in?

A: You can use DDM, but it is a bit complex. The easiest way is to use is the Run Remote Command (RUNRMTCMD) command. Most of us think of it as just a way to run a PC command from the iSeries, but it also works when you direct it to another iSeries system. All you need is a TPC/IP connection, not any type of session or DDM file, so it is good for "spur-of-the-moment" use. If the command returns output, it will be put in a spooled file on the issuing system. RUNRMTCMD can be run from the command line or placed in a CL program.
For example, the following would execute the DSPSYSVAL QSRLNBR on another system and put the serial number in a spooled file.
RunRmtCmd CMD('DSPSYSVAL QSRLNBR') +
RMTLOCNAME(system_name *IP) RMTUSER(my_user_ID) +
RMTPWD(my_password)
The connection can be TCP/IP (*IP after the system name, as shown here) or SNADS (*SNA).


Can I create more TCP/IP Telnet server ports on the iSeries?

A: Yes, key in the command WRKSRVTBLE. While in this screen, you will be able to add all the Service Table Entries with a corresponding Port and Protocol that you want to use for the Telnet Port.
See WRKSRVTBLE (Work with Service Table Entry) Command Description for more information.


Is it possible to allow case-sensitive passwords on the iSeries?
A: V5R1 allows the use of case-sensitive passwords for user profiles, although you will need to alter the setting of the QPWDLVL (password level) system value. To learn more about QPWDLVL,

1 comment: