All Flashcards

(6 cards)

1
Q

There are 3 server
docgsvr011 can ssh password less to docgsvr001 and docgsvr002 respectively. But there are no keys between docgsvr001 and docgsvr002. How to copy files from docgsvr001 to docgsvr002 via docgavr011?

A

SSH and SCP is used

We first create a session from docgavr011 to docgsvr001 with SSH option -A and -t , and then do a SCP

i.e
ssh -A -t citops@docgsvr001 scp -rp /tmp/files_on_docgsvr001 citops@docgsvr002:/tmp

Original answer
ssh -A -t user1@remote1 scp srcpath user2@remote2:destpath

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Tcpdump by default replace the port number with text, what option need to be added to show the port number?

A

-nn

Tcpdump -vv -nn -i eth1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to check number of disk in sys?

A

PVS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do we check the logical usage on a physical volume?

A

lvs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to escape the dot in IP address while doing grep?

A

Grep -Ew ‘10.1.2.3’ log

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to escape the dot in IP address while doing grep?

A

Grep -Ew ‘10.1.2.3’ log

How well did you know this?
1
Not at all
2
3
4
5
Perfectly