'서버관리' 카테고리의 다른 글
[쉘스크립트] 윈도우 드라이브명 가져오기(CMD) (0) | 2013.08.21 |
---|---|
[쉘스크립트] 윈도우 드라이브명 가져오기 (0) | 2013.08.21 |
[쉘스크립트] user SID 가져오기 (0) | 2013.08.13 |
[쉘스크립트] 쉘에서 DB 쿼리하기 (0) | 2013.08.07 |
[레드헷 리눅스 원격 로그 서버 만들기] (0) | 2013.07.11 |
[쉘스크립트] 윈도우 드라이브명 가져오기(CMD) (0) | 2013.08.21 |
---|---|
[쉘스크립트] 윈도우 드라이브명 가져오기 (0) | 2013.08.21 |
[쉘스크립트] user SID 가져오기 (0) | 2013.08.13 |
[쉘스크립트] 쉘에서 DB 쿼리하기 (0) | 2013.08.07 |
[레드헷 리눅스 원격 로그 서버 만들기] (0) | 2013.07.11 |
python -c "import os,re;result=re.findall(r'[A-Z]+:.*$',os.popen('mountvol /').read(),re.MULTILINE);print ','.join(result)"
[명령어] 디렉토리 파일 및 사이즈 비교 (1) | 2013.11.19 |
---|---|
[쉘스크립트] 윈도우 드라이브명 가져오기 (0) | 2013.08.21 |
[쉘스크립트] user SID 가져오기 (0) | 2013.08.13 |
[쉘스크립트] 쉘에서 DB 쿼리하기 (0) | 2013.08.07 |
[레드헷 리눅스 원격 로그 서버 만들기] (0) | 2013.07.11 |
import string
from ctypes import windll
def get_drives():
drives = []
bitmask = windll.kernel32.GetLogicalDrives()
for letter in string.uppercase:
if bitmask & 1:
drives.append(letter)
bitmask >>= 1
return drives
if __name__ == '__main__':
print get_drives() # On my PC, this prints ['A', 'C', 'D', 'F', 'H']
import os, re
re.findall(r"[A-Z]+:.*$",os.popen("mountvol /").read(),re.MULTILINE)
[명령어] 디렉토리 파일 및 사이즈 비교 (1) | 2013.11.19 |
---|---|
[쉘스크립트] 윈도우 드라이브명 가져오기(CMD) (0) | 2013.08.21 |
[쉘스크립트] user SID 가져오기 (0) | 2013.08.13 |
[쉘스크립트] 쉘에서 DB 쿼리하기 (0) | 2013.08.07 |
[레드헷 리눅스 원격 로그 서버 만들기] (0) | 2013.07.11 |
id oracle | sed 's/^uid=//;s/(.*$//'
[쉘스크립트] 윈도우 드라이브명 가져오기(CMD) (0) | 2013.08.21 |
---|---|
[쉘스크립트] 윈도우 드라이브명 가져오기 (0) | 2013.08.21 |
[쉘스크립트] 쉘에서 DB 쿼리하기 (0) | 2013.08.07 |
[레드헷 리눅스 원격 로그 서버 만들기] (0) | 2013.07.11 |
[LInux Connection Check] (0) | 2013.04.08 |
#!/bin/bash
echo "SHOW SERVERS"
su - oracle -c "sqlplus '/as sysdba'" << END
set pagesize 0 feedback off ver off heading off echo off
CONN 아이디/패스워드
쿼리
exit;
END
[쉘스크립트] 윈도우 드라이브명 가져오기 (0) | 2013.08.21 |
---|---|
[쉘스크립트] user SID 가져오기 (0) | 2013.08.13 |
[레드헷 리눅스 원격 로그 서버 만들기] (0) | 2013.07.11 |
[LInux Connection Check] (0) | 2013.04.08 |
[넷백업 Active 폴리시 구하기] (0) | 2013.03.15 |
Check if there is an entry in /etc/services regarding port 514 (default for syslog).
grep 514 /etc/services
syslog 514/udp
Enable communication on this port by setting proper rule on firewall:
-A RH-Firewall-1-INPUT -p udp –dport 514 -j ACCEPT
Syslog by default is not configured to send logs to remote hosts or receive them from network. You have to change startup options in /etc/sysconfig/syslog by adding ‘-r’ to SYSLOG_OPTS.
Now we are prepared to configure syslog! Configuration is stored in /etc/syslog.conf . Entries are different on log server and log client.
You have to provide information about log client and destination where logs from client will be written. To do this you have to add two lines to the /etc/syslog.conf:
+LOG_CLIENT
log_source.log_type log_file
where:
Example:
+log_client
user.* /var/log/log_client.log
In above example logs from user subsystem from host ‘log_client‘ will be written in /var/log/log_client.log
In /etc/syslog.conf you have to specify which logs will be copied on log server:
log_source.log_type @LOG_SERVER
where:
Example:
user.* @log_server
In above example logs from user subsystem will be sent to ‘log_server’ host.
Remember to restart syslog service after making any changes in /etc/syslog.conf!
service syslog restart
[쉘스크립트] user SID 가져오기 (0) | 2013.08.13 |
---|---|
[쉘스크립트] 쉘에서 DB 쿼리하기 (0) | 2013.08.07 |
[LInux Connection Check] (0) | 2013.04.08 |
[넷백업 Active 폴리시 구하기] (0) | 2013.03.15 |
우분투 원격터미널 접속 (0) | 2013.01.04 |
서버에서 다른 서버로 특정 포트로 연결이 되는지 확인하는 방법은 아래와 같이 2개가 있습니다.
아래 첫번째 방법은 리눅스에서 nc명령어로 확인하는 방법이고 밑의 두번째는 일반적으로 telnet 명령을 이용하는 방법입니다.
참고하세요.
connection Success : 0 return
connection Fail : 1 return
[쉘스크립트] 쉘에서 DB 쿼리하기 (0) | 2013.08.07 |
---|---|
[레드헷 리눅스 원격 로그 서버 만들기] (0) | 2013.07.11 |
[넷백업 Active 폴리시 구하기] (0) | 2013.03.15 |
우분투 원격터미널 접속 (0) | 2013.01.04 |
특정디렉토리 하위디렉토리 리스트 얻어오기 (0) | 2012.10.30 |
아래와 같은 명령어를 수행하면 현재 Netbackup 마스트에 있는 폴리시 중 Active되어 있는 폴리시만 출력함.
ACTIVE 1로 조회하면 De-Active되어 있는 폴리스가 조회 됨.
cd /usr/openv/netbackup/db/class
find . -name info -exec grep -l "ACTIVE 0" {} \; | cut -f2 -d"/"
[레드헷 리눅스 원격 로그 서버 만들기] (0) | 2013.07.11 |
---|---|
[LInux Connection Check] (0) | 2013.04.08 |
우분투 원격터미널 접속 (0) | 2013.01.04 |
특정디렉토리 하위디렉토리 리스트 얻어오기 (0) | 2012.10.30 |
넷백업 빠른 백업 결과 조회 (0) | 2012.10.22 |
sudo apt-get install xrdp
이후 mstsc에서 해당 서버 접속
[LInux Connection Check] (0) | 2013.04.08 |
---|---|
[넷백업 Active 폴리시 구하기] (0) | 2013.03.15 |
특정디렉토리 하위디렉토리 리스트 얻어오기 (0) | 2012.10.30 |
넷백업 빠른 백업 결과 조회 (0) | 2012.10.22 |
[NETBACKUP] 백업대상 파일시스템 구하기 (1) | 2012.10.16 |
ls -l / | awk '/^d/{print $NF}'
[넷백업 Active 폴리시 구하기] (0) | 2013.03.15 |
---|---|
우분투 원격터미널 접속 (0) | 2013.01.04 |
넷백업 빠른 백업 결과 조회 (0) | 2012.10.22 |
[NETBACKUP] 백업대상 파일시스템 구하기 (1) | 2012.10.16 |
[AIX] 프로세스별 CPU, MEMORY 사용량 (0) | 2012.10.05 |