jump to navigation

Adding Static Route on Solaris System Friday, August 24, 2007

Posted by piyut in Solaris.
add a comment

Adding static route onto solaris system using command line:

# route add -net 10.0.0.0 10.1.65.233

Add to startup script:

# vi /etc/init.d/static_routes

/usr/sbin/route add -net 10.0.0.0 10.1.65.233

# ln -s /etc/init.d/static_routes S99static_routes

SSH Timeout with error “Server unexpectedly closed network connection” Wednesday, August 22, 2007

Posted by piyut in HP-UX, Solaris.
add a comment

Login to server using ssh have an error “Server unexpectedly closed network connection”, this case is issue of sshd_config configurations related to DNS service. to solve this case, configure sshd_config to change line “UseDNS” to “no” than restart sshd daemon.

Restore Printer Spooler Configuration Tuesday, August 21, 2007

Posted by piyut in HP-UX.
add a comment

In the Source System

1. Save printer spooler configurations

# /usr/sam/lbin/lpmgr -S

–> this will save the info in the /var/sam/lp/lpinfo file

via SAM
SAM -> printer and plotters -> lp spooler -> save/restore spooler configuration.Then, Actions -> Save spooler configuration.
This will write all your printer defs to /var/sam/lp

2. Copy the configurations from source to target system

# scp -rp /var/sam/lp target_system:/var/sam/lp/./


In the Target System

1. Restore printer spooler configurations

# chmod 755 /var/sam/lp

# /usr/sam/lbin/lpmgr -R
–> this will restore the info in /var/sam/lp/* on the new system

via SAM
SAM -> printer and plotters -> lp spooler -> save/restore spooler configuration. Then, Actions -> Restore spooler configuration