Yulianto is Piyut

Sekedar Celotehan dan Ungkapan Perasaan

Archive for August, 2007

Adding Static Route on Solaris System

Posted by piyut on Friday, August 24, 2007

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

Posted in Solaris | 4 Comments »

SSH Timeout with error “Server unexpectedly closed network connection”

Posted by piyut on Wednesday, August 22, 2007

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.

Posted in HP-UX, Solaris | 6 Comments »

Restore Printer Spooler Configuration

Posted by piyut on Tuesday, August 21, 2007

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

Posted in HP-UX | Leave a Comment »